Forum OpenACS Q&A: Naviserver upgrade issue on RHEL 7.9

Hi all,

Upgrading an older installation running on RHEL 7.9 from OpenACS 5.8 to 5.10 and in the process upgrading Naviserver/Tcl. Using the latest install-ns script, we were able to build Naviserver 4.99.31 with the defaults for dependencies (Tcl 8.6.16, etc.).

When trying to start the server, even with the included simple config, the output looks like this:

$ sudo /usr/local/ns/bin/nsd -u nsadmin -g nsadmin -f -t /usr/local/ns/conf/simple-config.tcl
[-main:conf-] Notice: OpenSSL 1.0.2k-fips 26 Jan 2017 initialized (pid 23963)
[-main:conf-] Notice: initialized locale en_US.UTF-8 from environment variable LANG
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:conf-] Notice: nsmain: NaviServer/4.99.31 (tar-4.99.31) starting
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:conf-] Notice: nsmain: security info: uid=1002, euid=1002, gid=1002, egid=1002
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:conf-] Notice: nsmain: Tcl version: 8.6.16
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:conf-] Notice: nsmain: max files: soft limit 4096, hard limit 4096
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:conf-] Warning: nsmain: current limit of maximum number of files > FD_SETSIZE (1024), select() calls should not be used
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:default-] Notice: init server default: using zlib version 1.2.7
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:default-] Notice: pool default: queueLength 90 low water 9 high water 72
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:default-] Notice: nsd/init.tcl[default]: booting virtual server: Tcl system encoding: "utf-8"
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:default-] Notice: modload: loading module nslog from file nslog
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:default-] Notice: nslog: opened '/usr/local/ns/logs/access.log'
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:default-] Notice: modload: loading module nssock from file nssock
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:default-] Notice: nssock:0: enable 0 spooler thread(s)
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:default-] Notice: nssock:0: enable 0 writer thread(s)
[30/Apr/2025:13:23:36][23963.7f58bdf0b980][-main:default-] Fatal: received fatal signal 11
Aborted

strace and gdb have not helped turn up any clues.

Any suggestions?

Thanks.

Collapse
Posted by Gustaf Neumann on

Hi Michael,

My first guess is that this comes from a binary mismatch (C based components compiled with a different Tcl version).

Compile with debug enabled in a fresh build dir, such as e.g. with the following command:

sudo with_debug_flags=1 build_dir=/usr/local/ns-src \
     bash install-ns.sh build

If you still see a crash, run nsd under gdb and show me the backtrace. If there is then still some problem, i will try to install somewhere a VM with RHEL 7.9.

all the best
-g