|
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Further troubleshooting on this , <br>
<br>
<br>
using again gdb on core <br>
<br>
(gdb) list<br>
412 #if PTHREAD_TEST<br>
413 pthread_t tids[10];<br>
414 #endif<br>
415<br>
416 #if (STATIC_BUILD == 1)<br>
417 extern void NsthreadsInit();<br>
418 NsthreadsInit();<br>
419 #endif<br>
420<br>
421 Ns_ThreadSetName("-main-");<br>
<br>
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 .<br>
<br>
Can any one explain above . <br>
<br>
Thanks<br>
<br>
<br>
<br>
</tt><br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">Subject: </th>
<td>nsthreadtest segmentation fault</td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">Date: </th>
<td>Thu, 30 Aug 2007 16:58:37 +0400</td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">From: </th>
<td>aT <a class="moz-txt-link-rfc2396E" href="mailto:atif.ali@gmail.com"><atif.ali@gmail.com></a></td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">Reply-To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:atif.ali@gmail.com">atif.ali@gmail.com</a></td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:AOLSERVER@LISTSERV.AOL.COM">AOLSERVER@LISTSERV.AOL.COM</a></td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">References: </th>
<td><a class="moz-txt-link-rfc2396E" href="mailto:46D56B8E.5020208@gmail.com"><46D56B8E.5020208@gmail.com></a>
<a class="moz-txt-link-rfc2396E" href="mailto:20070829144323.GE8127@panoptic.com"><20070829144323.GE8127@panoptic.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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
[nsadmin@fc4 /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?"
</pre>
<br>
<pre class="moz-signature" cols="72">--
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
</pre>
</body>
</html>
<pre>
<p>
|
|