Menu

#91 ns_accesslog extendedheaders

Bug
closed-fixed
nobody
5
2022-08-07
2022-07-14
Khy Huang
No

Tested on Naviserver 4.99.23 and 4.99.24

Calling ns_accesslog extendedheaders to dynamically to set the value results in the server shutting down.

Here is the log message after executing "ns_accesslog extendedheaders Host"

*** Error in `/web/dev/openacs510/httpd/bin/nsd': free(): invalid next size (fast): 0x00000000008d3260 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81359)[0x7f460745c359]
/usr/local/naviserver4924-86/lib/libnsthread.so(ns_free+0x18)[0x7f46087cc808]
/web/dev/openacs510/httpd/bin/nslog.so(+0x2b6c)[0x7f45ff089b6c]
/web/dev/openacs510/httpd/bin/nslog.so(+0x315e)[0x7f45ff08a15e]
/usr/local/naviserver4924-86/lib/libtcl8.6.so(+0x49861)[0x7f46083da861]
/usr/local/naviserver4924-86/lib/libtcl8.6.so(TclNRRunCallbacks+0x8b)[0x7f46083da8ee]
/usr/local/naviserver4924-86/lib/libtcl8.6.so(Tcl_EvalObjv+0x5d)[0x7f46083da052]
/usr/local/naviserver4924-86/lib/libtcl8.6.so(+0x4b7df)[0x7f46083dc7df]
/usr/local/naviserver4924-86/lib/libtcl8.6.so(Tcl_EvalEx+0x3f)[0x7f46083dbb8f]
/usr/local/naviserver4924-86/lib/libnsd.so(Ns_TclEvalCallback+0x230)[0x7f4608eadaff]
/usr/local/naviserver4924-86/lib/libnsd.so(NsTclRequestProc+0x5d)[0x7f4608ec8b48]
/usr/local/naviserver4924-86/lib/libnsd.so(Ns_ConnRunRequest+0x1d9)[0x7f4608e92a67]
/usr/local/naviserver4924-86/lib/libnsd.so(+0x7a706)[0x7f4608e99706]
/usr/local/naviserver4924-86/lib/libnsd.so(NsConnThread+0x689)[0x7f4608e98bc8]
/usr/local/naviserver4924-86/lib/libnsthread.so(NsThreadMain+0x95)[0x7f46087ce271]
/usr/local/naviserver4924-86/lib/libnsthread.so(+0x69cb)[0x7f46087cf9cb]
/lib64/libpthread.so.0(+0x7e75)[0x7f4606dc0e75]
/lib64/libc.so.6(clone+0x6d)[0x7f46074d9a2d]
======= Memory map: ========

Discussion

  • gustafn

    gustafn - 2022-07-16

    Hi Khy,

    Thanks for the report, this is fixed by
    https://bitbucket.org/naviserver/naviserver/commits/b50875f5dea00dc1c7c00ceed77e1fbacb7a6c1f

    Setting the extendedheaders via configuration file was ok, we use e.g.

    ns_section ns/server/${server}/module/nslog {
        ...
         ns_param   extendedheaders    "Host X-User-Id X-Mobile_p"
         ...
    }
    

    all the best
    -g

     
  • gustafn

    gustafn - 2022-08-07
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB