Further troubleshooting on this ,


using again gdb on core

(gdb) list
412     #if PTHREAD_TEST
413         pthread_t tids[10];
414     #endif
415
416     #if (STATIC_BUILD == 1)
417         extern void NsthreadsInit();
418         NsthreadsInit();
419     #endif
420
421         Ns_ThreadSetName("-main-");

It pointed me to nsthread/nsthreadtest.c   , i don't understand the code well but i can see that it runs when the built is static , so i compiled again aolserver with --enable-static and i stopped getting core dumps and nsthreadtest works fine . is there a difference in building it static , will there be any issue if i build aolserver static but than compile modules against it .

Can any one explain above .

Thanks




-------- Original Message --------
Subject: nsthreadtest segmentation fault
Date: Thu, 30 Aug 2007 16:58:37 +0400
From: aT <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: AOLSERVER@LISTSERV.AOL.COM
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>


Aolserver 4.0.10 compiled fine on x86 fedora core 4  , but running 
nsthreadtest gives segmentation fault .

aolserver cvs version and tcl 8.4.15 both compiled with enable-threads  
and --enable-symbols

gdb core produces this

[EMAIL PROTECTED] /xyz/software/aol/aol411]$ gdb ./bin/nsthreadtest core.27853
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host 
libthread_db library "/lib/libthread_db.so.1".

Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xf8a000
Core was generated by `./bin/nsthreadtest'.
Program terminated with signal 11, Segmentation fault.

warning: svr4_current_sos: Can't read pathname for load map: 
Input/output error

Reading symbols from /xyz/software/aol/aol411/lib/libnsthread.so...done.
Loaded symbols for /xyz/software/aol/aol411/lib/libnsthread.so
Reading symbols from /xyz/software/tcl/lib/libtcl8.4g.so...done.
Loaded symbols for /xyz/software/tcl/lib/libtcl8.4g.so
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x00000001 in ?? ()
(gdb) bt
#0  0x00000001 in ?? ()


Any idea ? can I just ignore this for nsthreadtest , could it also 
affect the nds process ?



Regards





-- 
Syed Atif Ali
D. +971 4 3911914
F. +971 4 3911915
___________________________________________ 
"2001 was the warmest year since 1653 (or thereabouts) which begs the question, exactly who or what was emitting CO2 at present day levels back then?"



-- 
Syed Atif Ali
D. +971 4 3911914
F. +971 4 3911915
___________________________________________ 
When I came back to Dublin I was courtmartialed in my absence and sentenced to death in my absence, so I said they could shoot me in my absence.
                -- Brendan Behan

-- AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

Reply via email to