Btw, simply running all the tests with "make test" sometimes crashes
Naviserver while it is shutting down; see below.

Or just running this one test (which is fast) several times works
pretty well for triggering a crash.  Other tests do it too though, not
just this one:

  make test TCLTESTARGS='-file ns_nsv.test'


[18/Oct/2014:05:27:59][18593.2ac57b648240][-main-] Notice: nsmain: 
NaviServer/4.99.6 stopping
[18/Oct/2014:05:27:59][18593.2ac57b648240][-main-] Notice: [driver:nssock]: 
stopping
[18/Oct/2014:05:27:59][18593.2ac57b648240][-main-] Notice: server [test]: 
stopping
[18/Oct/2014:05:27:59][18593.2ac57b648240][-main-] Notice: server [testvhost]: 
stopping
[18/Oct/2014:05:27:59][18593.2ac57b648240][-main-] Notice: server [testvhost2]: 
stopping
[18/Oct/2014:05:27:59][18593.2ac5a4200700][-driver:nssock-] Notice: exiting
[18/Oct/2014:05:27:59][18593.2ac588c10700][-conn:test:1] Notice: exiting: 
shutdown pending
[18/Oct/2014:05:27:59][18593.2ac588e11700][-conn:testvhost:0] Notice: exiting: 
shutdown pending
[18/Oct/2014:05:27:59][18593.2ac589012700][-conn:testvhost2:0] Notice: exiting: 
shutdown pending
[18/Oct/2014:05:27:59][18593.2ac588a0f700][-conn:test:0] Notice: exiting: 
shutdown pending
[18/Oct/2014:05:27:59][18593.2ac58880e700][-conn:test:emergency:0] Notice: 
exiting: shutdown pending
called Tcl_FindHashEntry on deleted table
Aborted (core dumped)
make: *** [test] Error 134


Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./nsd/nsd -u root -c -d -t 
/usr/local/web/ns-fork/nv-tcl85-linux/tests/test.nsc'.
Program terminated with signal 6, Aborted.
(gdb) bt
#0  0x00002ac57a22d425 in __GI_raise (sig=<optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00002ac57a230b8b in __GI_abort () at abort.c:91
#2  0x00002ac57acb634e in Tcl_PanicVA () from /usr/lib/libtcl8.5.so.0
#3  0x00002ac57acb640c in Tcl_Panic () from /usr/lib/libtcl8.5.so.0
#4  0x00002ac57ac8e079 in ?? () from /usr/lib/libtcl8.5.so.0
#5  0x00002ac57acd12fa in ?? () from /usr/lib/libtcl8.5.so.0
#6  0x00002ac57accff5e in Tcl_GetThreadData () from /usr/lib/libtcl8.5.so.0
#7  0x00002ac57acb3cfa in TclFreeObj () from /usr/lib/libtcl8.5.so.0
#8  0x00002ac57acb5d45 in ?? () from /usr/lib/libtcl8.5.so.0
#9  0x00002ac57ac8db82 in Tcl_DeleteHashTable () from /usr/lib/libtcl8.5.so.0
#10 0x00002ac57ac730b8 in ?? () from /usr/lib/libtcl8.5.so.0
#11 0x00002ac57acb3d59 in TclFreeObj () from /usr/lib/libtcl8.5.so.0
#12 0x00002ac57acb222d in ?? () from /usr/lib/libtcl8.5.so.0
#13 0x00002ac57ac3b995 in Tcl_DeleteCommandFromToken ()
   from /usr/lib/libtcl8.5.so.0
#14 0x00002ac57acac0dc in TclTeardownNamespace () from /usr/lib/libtcl8.5.so.0
#15 0x00002ac57ac3a3dc in ?? () from /usr/lib/libtcl8.5.so.0
#16 0x00002ac579f9062e in DeleteInterps (arg=0x20be470) at tclinit.c:1861
#17 0x00002ac57aa0c814 in NsCleanupTls (slots=0x31ac220) at tls.c:186
#18 0x00002ac57aa0d16a in CleanupTls (arg=<optimized out>) at pthread.c:816
#19 0x00002ac57b135c83 in __nptl_deallocate_tsd () at pthread_create.c:156
#20 0x00002ac57b135ea8 in start_thread (arg=0x2ac58880e700)
    at pthread_create.c:315
#21 0x00002ac57a2eb3fd in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#22 0x0000000000000000 in ?? ()
(gdb) 

-- 
Andrew Piskorski <a...@piskorski.com>

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to