On Fri, Jul 12, 2002 at 08:35:00AM -0700, Jeffrey Hobbs wrote:
>
> I assume this was 8.4b1, or the most recent CVS?  You have to compile
> that with --enable-threads, and then you will get the new threaded
> allocator which is based off the one from AOL.  8.3.2 should also have
> had --enable-threads ... but perhaps if that was the special AOL
> version, that aspect was hard-coded on because it was required.  That
> might also indicate why 8.4 would crash where 8.3 doesn't, because IIUC,
> AOLserver *requires* a threaded Tcl.  You can find out by starting Tcl
> and doing 'parray tcl_platform'.  If the 'thread' key shows up == 1,
> then it is threaded.

Tried compiling Tcl with the following configure flags:
./configure $(ENABLE_GCC) --enable-symbols --disable-shared --enable-threads 
--disable-langinfo

zippy:~$ gdb /usr/lib/aolserver/bin/nsd
GNU gdb 2002-04-01-cvs
...
This GDB was configured as "i386-linux"...
(gdb) run -u www-data -g www-data -ft /etc/aolserver/gt.tcl
Starting program: /usr/lib/aolserver/bin/nsd8x -u www-data -g www-data -ft 
/etc/aolserver/gt.tcl
[New Thread 1024 (LWP 20515)]
[New Thread 2049 (LWP 20518)]
[New Thread 1026 (LWP 20519)]
[12/Jul/2002:18:47:54][20515.1024][-main-] Notice: nsd.tcl: starting to read config 
file...
[12/Jul/2002:18:47:54][20515.1024][-main-] Warning: nsd.tcl: nsssl not loaded because 
key/cert files do not exist.
[12/Jul/2002:18:47:54][20515.1024][-main-] Notice: nsd.tcl: finished reading config 
file.
[12/Jul/2002:18:47:54][20515.1024][-main-] Notice: nsmain: AOLserver/3.3.1+ad13 
starting
[12/Jul/2002:18:47:54][20515.1024][-main-] Notice: nsmain: security info: uid=33, 
euid=33, gid=33, egid=33
[12/Jul/2002:18:47:54][20515.1024][-main-] Notice: nsmain: max files: FD_SETSIZE = 
1024, rl_cur = 1024, rl_max = 1024
[New Thread 2051 (LWP 20520)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 20515)]
0x400c4bdd in free () from /lib/libc.so.6
(gdb) bt
#0  0x400c4bdd in free () from /lib/libc.so.6
#1  0x400c4aa3 in free () from /lib/libc.so.6
#2  0x0813c36c in ns_free (ptr=0x817ab88) at memory.c:141
#3  0x080871ec in NsTclInit () at tclinit.c:570
#4  0x08079e1c in Ns_Main (argc=7, argv=0xbffff804, initProc=0x807705c <ServerInit>) 
at nsmain.c:632
#5  0x0807704c in main (argc=7, argv=0xbffff804) at main.c:64

> I would make sure that all that is kosher and no crashes are occuring
> before analyzing the tests (which seem so close together as to be
> statistically insignificant).

That's what I'm trying to do. Appreciate any insight.

-Roberto

--
+----| http://fslc.usu.edu/ USU Free Software & GNU/Linux Club |------+
  Roberto Mello - Computer Science, USU - http://www.brasileiro.net/
       http://www.sdl.usu.edu/ - Space Dynamics Lab, Developer
How do you want to reboot today?

Reply via email to