Re: [naviserver-devel] sometimes crashes on shutdown

2014-10-20 Thread Andrew Piskorski
On Sat, Oct 18, 2014 at 01:54:22PM +0200, Gustaf Neumann wrote:

> My understanding is that it happens due to varying deletion orders
> during shutdown, probably influenced by the traversal order in hash
> tables. Hard to debug, but for practical applications without much
> value.

Good to know.  Also, I've read that Tcl 8.6 has simplified its process
exit code, so with luck this will get easier to debug in the future.

Btw, is anybody running Naviserver with Tcl 8.6 yet?

I was going to try it (on Windows), but noticed that unlike the
earlier versions, ActiveTcl 8.6 ships with almost no add-on packages,
not even tcllib.

-- 
Andrew Piskorski 

--
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


Re: [naviserver-devel] sometimes crashes on shutdown

2014-10-18 Thread Gustaf Neumann
Am 18.10.14 11:45, schrieb Andrew Piskorski:
> Btw, simply running all the tests with "make test" sometimes crashes
> Naviserver while it is shutting down; see below.
Dear Andrew,

this is a known problem (see e.g. [1]) which is not nice but not 
serious, since it happens
very late in the shutdown. My understanding is that it happens due to 
varying deletion orders
during shutdown, probably influenced by the traversal order in hash 
tables. Hard to debug,
but for practical applications without much value.

-g

https://www.mail-archive.com/naviserver-devel@lists.sourceforge.net/msg02948.html



--
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


[naviserver-devel] sometimes crashes on shutdown

2014-10-18 Thread Andrew Piskorski
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  0x2ac57a22d425 in __GI_raise (sig=)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x2ac57a230b8b in __GI_abort () at abort.c:91
#2  0x2ac57acb634e in Tcl_PanicVA () from /usr/lib/libtcl8.5.so.0
#3  0x2ac57acb640c in Tcl_Panic () from /usr/lib/libtcl8.5.so.0
#4  0x2ac57ac8e079 in ?? () from /usr/lib/libtcl8.5.so.0
#5  0x2ac57acd12fa in ?? () from /usr/lib/libtcl8.5.so.0
#6  0x2ac57accff5e in Tcl_GetThreadData () from /usr/lib/libtcl8.5.so.0
#7  0x2ac57acb3cfa in TclFreeObj () from /usr/lib/libtcl8.5.so.0
#8  0x2ac57acb5d45 in ?? () from /usr/lib/libtcl8.5.so.0
#9  0x2ac57ac8db82 in Tcl_DeleteHashTable () from /usr/lib/libtcl8.5.so.0
#10 0x2ac57ac730b8 in ?? () from /usr/lib/libtcl8.5.so.0
#11 0x2ac57acb3d59 in TclFreeObj () from /usr/lib/libtcl8.5.so.0
#12 0x2ac57acb222d in ?? () from /usr/lib/libtcl8.5.so.0
#13 0x2ac57ac3b995 in Tcl_DeleteCommandFromToken ()
   from /usr/lib/libtcl8.5.so.0
#14 0x2ac57acac0dc in TclTeardownNamespace () from /usr/lib/libtcl8.5.so.0
#15 0x2ac57ac3a3dc in ?? () from /usr/lib/libtcl8.5.so.0
#16 0x2ac579f9062e in DeleteInterps (arg=0x20be470) at tclinit.c:1861
#17 0x2ac57aa0c814 in NsCleanupTls (slots=0x31ac220) at tls.c:186
#18 0x2ac57aa0d16a in CleanupTls (arg=) at pthread.c:816
#19 0x2ac57b135c83 in __nptl_deallocate_tsd () at pthread_create.c:156
#20 0x2ac57b135ea8 in start_thread (arg=0x2ac58880e700)
at pthread_create.c:315
#21 0x2ac57a2eb3fd in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#22 0x in ?? ()
(gdb) 

-- 
Andrew Piskorski 

--
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