From: Andrew P. <at...@pi...> - 2014-10-16 20:38:24
|
On Thu, Oct 16, 2014 at 08:14:09AM +0200, Gustaf Neumann wrote: > i can look into the issue, but i am right now quite busy. For what purpose > do you need nsthreadtest? is out of curiosity, do you want to check, if > "everything works", or is there an application need? I only care about nsthreadtest in order to debug the Naviserver code. Now nsthreadtest is working on all the combinations of platform and versionf of Tcl I tried, great. Unfortunately, nsd itself has some problems. In my very limited testing, nsd linked with Tcl 8.5 appears to run mostly ok on both Linux and Windows. However, at least on Windows, it has buggy behavior - ns_cond silently does nothing. I have no idea why. I haven't tested yet whether Linux has the same problem. Linked with Tcl 8.4, nsd immediately crashes on startup, on both Linux (backtrace below) and Windows. This surprises me... Any ideas? Does this suggest some sort of incorrect linking in my build, or a bug somewhere in the Naviserver code? Has anybody actually been using Tcl 8.4 with Naviserver lately? Staring it up with "nsd -c" threw a whole bunch Tcl errors because the "namespace ensemble" command only exists in Tcl 8.5, not 8.4. I fixed that here: https://bitbucket.org/apiskors/naviserver/history-node/bfbb7d1dcfa5/tcl/nstrace.tcl warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/local/nsd-t84-atp-1/bin/nsd -f -t /usr/local/nsd-t84-atp-1/conf/nsd-config'. Program terminated with signal 6, Aborted. #0 0x00007fc8e754f425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007fc8e754f425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007fc8e7552b8b in __GI_abort () at abort.c:91 #2 0x00007fc8e791c4d9 in Panic (fmt=<optimized out>) at log.c:616 #3 0x00007fc8e6c7129d in Tcl_PanicVA () from /usr/lib/libtcl8.4.so.0 #4 0x00007fc8e6c71409 in Tcl_Panic () from /usr/lib/libtcl8.4.so.0 #5 <signal handler called> #6 0x00007fc8e6c54b89 in Tcl_CreateHashEntry () from /usr/lib/libtcl8.4.so.0 #7 0x00007fc8e7934382 in Ns_TclDestroyInterp (interp=0x1453730) at tclinit.c:521 #8 0x00007fc8e790b3ac in NsConfigEval ( config=0x146b160 "#set", ' ' <repeats 13 times>, "home", ' ' <repeats 16 times>, "/usr/local/ns\nset", ' ' <repeats 13 times>, "home", ' ' <repeats 16 times>, "[file dirname [file dirname [info nameofexecutable]]]\n\nns_section \"ns/server/default/modules\"\nns_param "..., argc=4, argv=<optimized out>, optind=4) at config.c:717 #9 0x00007fc8e791e8ac in Ns_Main (argc=4, argv=0x7fff4d205348, initProc=0x400750 <ServerInit>) at nsmain.c:449 #10 0x00007fc8e753a76d in __libc_start_main (main=0x400660 <main>, argc=4, ubp_av=0x7fff4d205348, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4d205338) at libc-start.c:226 #11 0x0000000000400695 in _start () (gdb) -- Andrew Piskorski <at...@pi...> |