cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: compile question Solaris 5.8, curl 7.15.4

From: Kevin Martin <kevintm_at_ameritech.net>
Date: Wed, 09 Aug 2006 18:15:32 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here's some gdb output. I'm not sure what I'm supposed to be looking for or if there is more I should provide.

> $C
ffbee9e8 0x7d78b774(ffbeeb04, 1becd8, 1bdf30, 1becf4, 1bf4f0, 1bdf28)
ffbeea48 nss_search+0xcc(18e770, 18ed64, 1a6630, ffbeeb20, 1bdf30, 1bdf21)
ffbeeac0 _switch_getipnodebyname_r+0x40(1a9cb8, 1be388, 1be39c, 920, ffbeeccc, 3a)
ffbeeb50 _get_hostserv_inetnetdir_byname+0x8c8(ffbeec4c, ffbeec54, 0, ffbeec54, ffbeebe4, 1bdee0)
ffbeebe8 getipnodebyname+0x350(0, 0, 1b4cb0, ffbeeccc, 1a9cb8, 1bdee0)
ffbeec68 get_addr+0xb8(0, 1a9cb8, ffbeee40, 1, 50, 50)
ffbeede0 getaddrinfo+0x538(1a187c, 1a9cb8, 50, ffbeeec4, ffbeee40, ffbeee40)
ffbeee60 Curl_getaddrinfo+0xc4(1bdb40, 1a9cb8, 50, ffbeeec8, 81010100, 1b4d28)
ffbeef98 Curl_resolv+0x1d4(ffffffff, 1a9cb8, ffffffff, 0, 4, 0)
ffbef020 Curl_connect+0x1580(10, ffbef86c, ffbef7ef, ffbef7ee, 8384, 0)
ffbef788 Curl_connect_host+0x58(1b4d28, ffbef86c, 4c3bc1, 13cef8, 81010100, 32d28)
ffbef800 Curl_perform+0x74(0, 8b, 0, 0, 0, 0)
ffbef880 main+0x128c(1b4d28, 0, 0, 0, 0, 2400)
ffbefe28 _start+0x5c(0, 0, 0, 0, 0, 0)
> $?
no process
SIGSEGV: Segmentation Fault
%g0 = 0x00000000 %l0 = 0x0010aabc SO_per_src_lookup
%g1 = 0x00000001 %l1 = 0x001becc8
%g2 = 0x00000000 %l2 = 0xffbeeb04
%g3 = 0x00000000 %l3 = 0x0018ee30 curl`SO_per_src
%g4 = 0x00000000 %l4 = 0x00000000
%g5 = 0x00000000 %l5 = 0x00000000
%g6 = 0x00000000 %l6 = 0x00000000
%g7 = 0x00000000 %l7 = 0x00000000

%o0 = 0x00178f08 %i0 = 0xffbeeb04
%o1 = 0x001a7ac0 %i1 = 0x001becd8
%o2 = 0x00000000 %i2 = 0x001bdf30
%o3 = 0xffbee9a8 %i3 = 0x001becf4
%o4 = 0x001becf4 %i4 = 0x001bf4f0
%o5 = 0x00178f08 %i5 = 0x001bdf28
%o6 = 0xffbee9e8 %i6 = 0xffbeea48
%o7 = 0xffbee9ac %i7 = 0x00108950 nss_search+0xcc

 %psr = 0xfe901004 impl=0xf ver=0xe icc=NzvC
                   ec=0 ef=4096 pil=0 s=0 ps=0 et=0 cwp=0x4
   %y = 0x00000000
  %pc = 0x7d78b774
 %npc = 0x7d588f5c
  %sp = 0xffbee9e8
  %fp = 0xffbeea48

 %wim = 0x00000000
 %tbr = 0x00000000

Thanks.

Kevin

Kevin Martin wrote:
> I suspect it's something to do with my trying to build it to be statically linked so that I can put it on any Solaris 8 machine
> without having to have the necessary libraries preinstalled.
>
> I'll run the core thru a debugger and see if I can come up with anything.
>
> Kevin
>
> Daniel Stenberg wrote:
>>> On Wed, 9 Aug 2006, Kevin Martin wrote:
>>>
>>>> Ok, so now it all compiles (after adding the dlstub stuff) but when I
>>>> run it it segfaults! Trussing the run shows this:
>>>>
>>>> truss ./curl http://www.yahoo.com
>>> ...
>>>
>>>> So this stinks!!! ideas welcome!
>>> Try using a debugger on the core file or run curl with it to figure out
>>> details on the crash. truss really doesn't offer much clues.
>>>
>>> curl runs and builds fine on Solaris for quite a large number of people
>>> so I would suspect something in your environment or build to start with.
>>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE2myUaXZlxDxYaM4RArZlAKDZaGwqdl811NtJKsDK3As2dd2AEACfXWsg
oOHHhKA4Cd4ddxuSo4Y30So=
=FA7Q
-----END PGP SIGNATURE-----
Received on 2006-08-10