On 25.12.19 21:03, Maksym Zinchenko wrote:
Hello, merry Christmas.
Im trying to load chilkat (https://www.chilkatsoft.com/tcl.asp
<https://www.chilkatsoft.com/tcl.asp>) extention to my naviserver,
from global tcl libraries folder. Basically I have a simple tcl file
in tcllib folder (/opt/ns/tcl) which says load
/usr/share/tcltk/chilkat/chilkat.so, but its crashing my server at
start up without even saying why in logs. Ive tried to load it from
adp page and its working.
Any idea why i cant load it globally, i want use it across all virtual
servers im gonna run, and dont want to load it one by one.
Dear Maksym,
I can't reproduce the problem. I've tried this with the released
NaviServer 4.99.18
and from the tip version from bitbucket, all with Tcl 8.6. I've added
the following file
to /usr/local/ns/tcl
$ cat /usr/local/ns/tcl/chil.tcl
ns_log notice "============================ load /vagrant/chilkat.so "
load /vagrant/chilkat.so
ns_log notice "============================ load /vagrant/chilkat.so DONE"
... and i see no crash. This is with Ubuntu 18.04.3 LTS. Same with my macOS.
Can it be that your installation has some Tcl version mismatch (wrong
chilcat)?
Maybe chilkat loads some library, which conflicts with what's already
loaded on your OS.
Below are the log-lines from the server startup with the two debug lines
from above are included.
all the best
gn
$ /usr/local/ns/bin/nsd -u nsadmin -t /usr/local/ns/conf/nsd-config.tcl -f
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main-] Notice: OpenSSL 1.1.1 11
Sep 2018 initialized
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main-] Notice: nsmain: enable progress
statistics for uploads >= 1048576 bytes
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main-] Notice: nsmain:
NaviServer/4.99.18 (a3c8903860b5 default tip) starting
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main-] Notice: nsmain: security
info: uid=1001, euid=1001, gid=1001, egid=1001
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main-] Notice: nsmain: Tcl version:
8.6.9
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main-] Notice: nsmain: max files:
soft limit 1048576, hard limit 1048576
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main-] Warning: nsmain: rl_cur
(1048576) > FD_SETSIZE (1024), select() calls should not be used
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: pool
default: queueLength 0 low water 0 high water 0
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: nsd/init.tcl[default]:
booting virtual server: Tcl system encoding: "utf-8"
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: modload:
loading module nscp from file nscp
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main-] Notice: binder: started
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice:
nscp[default]: listening on [::1]:4080
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: nscp[default]: added
user: ""
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: modload:
loading module nslog from file nslog
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: nslog:
opened '/usr/local/ns/logs/access.log'
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: modload:
loading module nscgi from file nscgi
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: nscgi: GET
/cgi-bin -> /usr/local/ns/cgi-bin
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: nscgi: POST
/cgi-bin -> /usr/local/ns/cgi-bin
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice:
nx::serializer version 2.3
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: XOTcl 2.3
loaded featuring: memcount 0 profile 0 memtrace 0 assertions 1 dtrace 0
development 0
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice: Using
ns_cache based on NX 2.3
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice:
============================ load /vagrant/chilkat.so
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice:
============================ load /vagrant/chilkat.so DONE
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice:
adp[default]: mapped {GET HEAD POST} /*.adp
[26/Dec/2019:10:42:50][20504.7f7d44ebf740][-main:default-] Notice:
tcl[default]: enabletclpages for {GET HEAD POST} requests
...
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel