Hi,
I've done a build of NaviServer 4.99.20 rc1 and am hitting issues with the
ns_proxy command seg faulting.

I have a full backtrace of the seg fault here from our development
environment:
https://gist.github.com/davidqc/e41f7852de831de4b4b49f5d03f165b7

I can reproduce what looks like the same segfault from a basic build (at
the brand new rc2 level) also.

Fairly stumped at this - any ideas what's causing this?

The recreation steps are (from a fresh Debian Stretch install):

$ uname -a
Linux stretch 4.9.0-14-amd64 #1 SMP Debian 4.9.246-2 (2020-12-17) x86_64
GNU/Linux
$ sudo apt-cache policy tcl8.6
tcl8.6:
  Installed: 8.6.6+dfsg-1+b1
  Candidate: 8.6.6+dfsg-1+b1
  Version table:
 *** 8.6.6+dfsg-1+b1 500
        500 http://cdn-aws.deb.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status
$ sudo apt-cache policy openssl
openssl:
  Installed: 1.1.0l-1~deb9u2
  Candidate: 1.1.0l-1~deb9u2
  Version table:
 *** 1.1.0l-1~deb9u2 500
        500 http://security.debian.org/debian-security stretch/updates/main
amd64 Packages
        100 /var/lib/dpkg/status
     1.1.0l-1~deb9u1 500
        500 http://cdn-aws.deb.debian.org/debian stretch/main amd64 Packages


# apt-get install build-essential git automake tcl8.6-dev libssl-dev
# git clone https://bitbucket.org/naviserver/naviserver.git
# cd naviserver
# ./autogen.sh --disable-ipv6 --with-tcl=/usr/lib/tcl8.6 --enable-rpath
--enable-threads --enable-symbols
# make
# sudo make install
# sudo useradd nsadmin
# sudo chown -R nsadmin:nsadmin /usr/local/ns/logs

Add nsproxy to /usr/local/ns/conf/nsd-config.tcl:

ns_section ns/server/default/modules {
    ns_param    nscp                nscp
    ns_param    nslog               nslog
    ns_param    nscgi               nscgi
    ns_param    nsproxy    nsproxy.so
}

Then..

# sudo /usr/local/ns/bin/nsd -u nsadmin -t
/usr/local/ns/conf/nsd-config.tcl -c

% ns_proxy get test_pool
Segmentation fault


-- 

*David Osborne | Software Engineer*
Qcode Software, Castle House, Fairways Business Park, Inverness, IV2 6AA
*Email:* da...@qcode.co.uk | *Phone:* 01463 896 484
www.qcode.co.uk
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to