Same package, compiled by SunProCC, the same way works just fine.


Jorgen Lundman wrote:
>
> I have tried these versions:
>
> drwxr-xr-x 22 root root 1536 Nov 30 15:00 openssl-0.9.8b
> drwxr-xr-x 22 root root 1536 Nov 30 14:54 openssl-0.9.8c
> drwxr-xr-x 22 root root 1536 Nov 30 14:46 openssl-0.9.8d
> drwxr-xr-x 22 root root 1536 Nov 30 14:41 openssl-0.9.8e
> drwxr-xr-x 22 root root 1536 Nov 30 14:35 openssl-0.9.8f
> drwxr-xr-x 22 root root 1536 Nov 30 14:22 openssl-0.9.8g
>
>
> All behave the same. However, I did notice this peculiarity:
>
> # uname -a
> SunOS x4500.unix 5.11 snv_70b i86pc i386 i86pc
> # gcc -v
> gcc version 3.4.3 (csl-sol210-3_4-20050802)
>
> ./apps/openssl
> OpenSSL>
>
> So on this new Solaris 11-70b box it compiles and runs. But when I rsync
> that over to my original server, I find it compiled for:
>
> Configuring for solaris64-x86_64-gcc
>
> Which will not run on Solaris10. Naturally I force it to
> "solaris-x86-gcc" on the new server and recompiled, only to find:
>
> # ./apps/openssl
> Segmentation Fault
>
> So I can compile it for 64 bit it seems, but not 32 bit versions.
>
>
>
> truss if it helps:
>
> 20189: mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_PRIVATE|MAP_ANON, -1, 0) = 0xCE420000
> 20189: munmap(0xCE530000, 4096) = 0
> 20189: mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xCE530000
> 20189: getcontext(0x08047790)
> 20189: getrlimit(RLIMIT_STACK, 0x08047788) = 0
> 20189: getpid() = 20189 [20188]
> 20189: lwp_private(0, 1, 0xCE532000) = 0x000001C3
> 20189: setustack(0xCE532060)
> 20189: sigfillset(0xCE51F6E8) = 0
> 20189: sysconfig(_CONFIG_STACK_PROT) = 7
> 20189: Incurred fault #6, FLTBOUNDS %pc = 0xCE6F99D5
> 20189: siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
>
>
>
>
>
>
>
>
>
> Jorgen Lundman wrote:
>> Also happens with 0.9.8f,
>>
>> Sunfreeware version works, but I need tlsext enabled.
>>
>> Tried default gcc, then upgraded to latest gcc from sunfreeware. Then
>> tried another Solaris 10 server entirely.
>>
>> Tried with shared and without. With threads and without.
>>
>> 0.9.7 compiles, but has no tlsext
>>
>>
>> egoitz@ramattack.net wrote:
>>>> Doing certs
>>>> Segmentation Fault - core dumped
>>>> RegTP-5R.pem => .0
>>>> Segmentation Fault - core dumped
>>>> WARNING: Skipping duplicate certificate RegTP-6R.pem
>>>> Segmentation Fault - core dumped
>>>> [snip]
>>>>
>>>> # ./apps/openssl
>>>> Segmentation Fault (core dumped)
>>>>
>>>> # gdb ./apps/openssl
>>>> This GDB was configured as "i386-pc-solaris2.10"...
>>>> (gdb) break main
>>>> Breakpoint 1 at 0x8076f86
>>>> (gdb) run
>>>> Starting program: /export/nfs/src/www/openssl-0.9.8g/apps/openssl
>>>> warning: Temporarily disabling breakpoints for unloaded shared library
>>>> "/usr/lib/ld.so.1"
>>>>
>>>> Program received signal SIGSEGV, Segmentation fault.
>>>> 0x0818dc55 in _init ()
>>>> (gdb) bt
>>>> #0 0x0818dc55 in _init ()
>>>> #1 0x08076a16 in _start ()
>>>>
>>>>
>>>> Before even reaching main? I upgraded to latest gcc on Sunfreeware in
>>>> case that was the issue.
>>>>
>>>> Cores on stack, but setting it to unlimited just makes it use more disk
>>>> space for the core
>>>>
>>>
>>>
>>>
>>> have you tried with another openssl source version? or even with an
>>> openssl package for solaris? it happens only with this version?
>>>
>>> __________________________________________________ ____________________
>>> OpenSSL Project http://www.openssl.org
>>> User Support Mailing List openssl-users@openssl.org
>>> Automated List Manager majordomo@openssl.org
>>>

>>

>


--
Jorgen Lundman |
Unix Administrator | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo | +81 (0)90-5578-8500 (cell)
Japan | +81 (0)3 -3375-1767 (home)
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org