AOL Webserver - [Fwd: nsthreadtest segmentation fault]

This is Interesting: Free IT Magazines  
Home > Archive > AOL Webserver > August 2007 > [Fwd: nsthreadtest segmentation fault]





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [Fwd: nsthreadtest segmentation fault]
aT

2007-08-30, 1:11 pm

<!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&nbsp;&nbsp;&nbsp;&nbsp; #if PTHREAD_TEST<br>
413&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pthread_t tids[10];<br>
414&nbsp;&nbsp;&nbsp;&nbsp; #endif<br>
415<br>
416&nbsp;&nbsp;&nbsp;&nbsp; #if (STATIC_BUILD == 1)<br>
417&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; extern void NsthreadsInit();<br>
418&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NsthreadsInit();<br>
419&nbsp;&nbsp;&nbsp;&nbsp; #endif<br>
420<br>
421&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ns_ThreadSetName("-main-");<br>
<br>
It pointed me to nsthread/nsthreadtest.c&nbsp;&nbsp; , 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">&lt;atif.ali@gmail.com&gt;</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">&lt;46D56B8E.5020208@gmail.com&gt;</a>
<a class="moz-txt-link-rfc2396E" href="mailto:20070829144323.GE8127@panoptic.com">&lt;20070829144323.GE8127@panoptic.com&gt;</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>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com