cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl-7.41.0 hangs on test 0815 on Solaris 10 Sparc

From: dev <dev_at_cor0.com>
Date: Sat, 21 Mar 2015 15:23:03 -0400 (EDT)

curl'ers :

    Not sure if this is a bug already or even if it has been seen
before. I built curl as per usual and then ran the tests as per usual
and for some odd reason the tests just seems to go on forever. I tend to
output all terminal traffic to a file so I can review later and the
thing just hung there, for a day or so. Something is clearly wrong.

I checked ps -ef and saw a massive pile of "defunct" process ids and the
output from the tests was stuck at test 0815. After a few CTRL-C's I see
:

mimas # tail ../curl-7.41.0_SunOS5.10_sparcv9.001.check.log
test 0810...OK (492 out of 971, remaining: 623:49)
test 0811...OK (493 out of 971, remaining: 621:15)
test 0812...OK (494 out of 971, remaining: 618:43)
test 0813...OK (495 out of 971, remaining: 616:11)
test 0814...OK (496 out of 971, remaining: 613:40)
test 0815...Somebody sent me a SIGINT at ./runtests.pl line 336.
OK (497 out of 971, remaining: 611:09)
test 0816...runtests.pl received SIGINT, exiting
gmake[1]: *** [quiet-test] Error 2
gmake: *** [test] Interrupt

So .. oops.

Compiler is Oracle Studio 12.4 and I have all the same usual things I
always have and never see this.

Digging through the output from ps -ef I see pid 15217 :

     UID PID PPID C STIME TTY TIME CMD
   root 15217 12371 0 08:29:10 pts/2 0:00 perl -I.
./ftpserver.pl --pidfile .ftp_server.pid --logfile log/ftp_server.log

That pid has a ton of <defunct> children. Just a slew of them :

    root 18085 15217 0 - ? 0:00 <defunct>
    root 18079 15217 0 - ? 0:00 <defunct>
    root 18083 15217 0 - ? 0:00 <defunct>
    root 18081 15217 0 - ? 0:00 <defunct>
    root 18091 15217 0 - ? 0:00 <defunct>
    root 18087 15217 0 - ? 0:00 <defunct>
    root 18089 15217 0 - ? 0:00 <defunct>

Pages of that.

So not sure what's up here.

Compiler and basic env stuff is :

mimas # which cc
/opt/solarisstudio12.4/bin/cc
mimas # cc -V
cc: Sun C 5.13 SunOS_sparc 2014/10/20
mimas #
mimas # echo $CFLAGS
-errfmt=error -erroff=%none -errshort=full -xstrconst -xildoff -m64
-xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc
-g -xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1
-xtarget=ultra2 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE
mimas #

mimas # env | sort | grep LD
LD=/usr/ccs/bin/sparcv9/ld
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib
LD_OPTIONS=-64
-R/usr/local/lib/$ISALIST:/usr/local/ssl/lib/$ISALIST:/usr/local/lib:/usr/local/ssl/lib
-L/usr/local/lib/$ISALIST:/usr/local/ssl/lib/$ISALIST:/usr/local/lib:/usr/local/ssl/lib
LD_RUN_PATH=/usr/local/lib:/usr/local/ssl/lib

My previous rev of curl works great :

mimas # which curl
/usr/local/bin/curl

mimas # curl --version
curl 7.40.0 (sparc-sun-solaris2.10) libcurl/7.40.0 OpenSSL/1.0.2a
zlib/1.2.8 libidn/1.29 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets

mimas # file /usr/local/bin/curl
/usr/local/bin/curl: ELF 64-bit MSB executable SPARCV9 Version 1,
UltraSPARC1 Extensions Required, dynamically linked, stripped
mimas # ldd /usr/local/bin/curl
        libcurl.so.4 => /usr/local/lib/libcurl.so.4
        libidn.so.11 => /usr/local/lib/libidn.so.11
        libintl.so.8 => /usr/local/lib/libintl.so.8
        libc.so.1 => /lib/64/libc.so.1
        libiconv.so.2 => /usr/local/lib/libiconv.so.2
        libssh2.so.1 => /usr/local/lib/libssh2.so.1
        libssl.so.1.0.0 => /usr/local/ssl/lib/libssl.so.1.0.0
        libcrypto.so.1.0.0 => /usr/local/ssl/lib/libcrypto.so.1.0.0
        libldap.so.5 => /usr/lib/64/libldap.so.5
        libz.so.1 => /usr/local/lib/libz.so.1
        librt.so.1 => /lib/64/librt.so.1
        libsocket.so.1 => /lib/64/libsocket.so.1
        libnsl.so.1 => /lib/64/libnsl.so.1
        libdl.so.1 => /lib/64/libdl.so.1
        libz.so.1 (SUNW_1.1) => (version not found)
        libsasl.so.1 => /usr/lib/64/libsasl.so.1
        libmd.so.1 => /lib/64/libmd.so.1
        libnspr4.so => /usr/lib/mps/64/libnspr4.so
        libplc4.so => /usr/lib/mps/64/libplc4.so
        libnss3.so => /usr/lib/mps/64/libnss3.so
        libssl3.so => /usr/lib/mps/64/libssl3.so
        libaio.so.1 => /lib/64/libaio.so.1
        libmp.so.2 => /lib/64/libmp.so.2
        libscf.so.1 => /lib/64/libscf.so.1
        libpthread.so.1 => /lib/64/libpthread.so.1
        libnssutil3.so => /usr/lib/mps/sparcv9/libnssutil3.so
        libplds4.so => /usr/lib/mps/sparcv9/libplds4.so
        libthread.so.1 => /lib/64/libthread.so.1
        libdoor.so.1 => /lib/64/libdoor.so.1
        libuutil.so.1 => /lib/64/libuutil.so.1
        libgen.so.1 => /lib/64/libgen.so.1
        libm.so.2 => /lib/64/libm.so.2
        /platform/SUNW,UltraAX-i2/lib/sparcv9/libc_psr.so.1
        /platform/SUNW,UltraAX-i2/lib/sparcv9/libmd_psr.so.1

mimas # elfdump -devl /usr/local/bin/curl

ELF Header
  ei_magic: { 0x7f, E, L, F }
  ei_class: ELFCLASS64 ei_data: ELFDATA2MSB
  ei_osabi: ELFOSABI_SOLARIS ei_abiversion: EAV_SUNW_CURRENT
  e_machine: EM_SPARCV9 e_version: EV_CURRENT
  e_type: ET_EXEC
  e_flags: [ EF_SPARCV9_TSO EF_SPARC_SUN_US1 ]
  e_entry: 0x100003660 e_ehsize: 64 e_shstrndx: 22
  e_shoff: 0x2d348 e_shentsize: 64 e_shnum: 23
  e_phoff: 0x40 e_phentsize: 56 e_phnum: 5

Version Needed Section: .SUNW_version
     index file version
       [2] libc.so.1 SUNW_0.7
       [3] librt.so.1 SUNW_0.7

Dynamic Section: .dynamic
     index tag value
       [0] NEEDED 0xa41 libcurl.so.4
       [1] NEEDED 0xa4e libidn.so.11
       [2] NEEDED 0xa5b libintl.so.8
       [3] NEEDED 0xa23 libc.so.1
       [4] NEEDED 0xa68 libiconv.so.2
       [5] NEEDED 0xa76 libssh2.so.1
       [6] NEEDED 0xa83 libssl.so.1.0.0
       [7] NEEDED 0xa93 libcrypto.so.1.0.0
       [8] NEEDED 0xaa6 libldap.so.5
       [9] NEEDED 0xab3 libz.so.1
      [10] NEEDED 0xa36 librt.so.1
      [11] NEEDED 0xabd libsocket.so.1
      [12] NEEDED 0xacc libnsl.so.1
      [13] INIT 0x100012e80
      [14] FINI 0x100012e90
      [15] RUNPATH 0xad8
              /usr/local/lib/$ISALIST:/usr/local/ssl/lib/$ISALIST:/usr/local/lib:/usr/local/ssl/lib:/usr/local/lib
      [16] RPATH 0xad8
              /usr/local/lib/$ISALIST:/usr/local/ssl/lib/$ISALIST:/usr/local/lib:/usr/local/ssl/lib:/usr/local/lib
      [17] HASH 0x100000178
      [18] STRTAB 0x100001dc8
      [19] STRSZ 0xd3d
      [20] SYMTAB 0x100000898
      [21] SYMENT 0x18
      [22] CHECKSUM 0x2262
      [23] VERNEED 0x100002b08
      [24] VERNEEDNUM 0x2
      [25] PLTRELSZ 0x918
      [26] PLTREL 0x7
      [27] JMPREL 0x100002d40
      [28] RELA 0x100002d10
      [29] RELASZ 0x948
      [30] RELAENT 0x18
      [31] DEBUG 0
      [32] FLAGS 0 0
      [33] FLAGS_1 0 0
      [34] SUNW_STRPAD 0x200
      [35] SUNW_LDMACH 0x2b EM_SPARCV9
      [36] PLTGOT 0x100125f00
   [37-47] NULL 0

Any pointers or input is wonderfully accepted.

Dennis

ps: sorry, day after a birthday and I fall on this.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-21