Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1086733232 (LWP 7026)]
0x40048aef in Ns_SetFindCmp (set=0x0, key=0x40bf2953 "X-Forwarded-For",
cmp=0x401e74d0 <strcasecmp>) at set.c:228
(gdb) bt
#0 0x40048aef in Ns_SetFindCmp (set=0x0, key=0x40bf2953 "X-Forwarded-For",
cmp=0x401e74d0 <strcasecmp>) at set.c:228
#1 0x40048b82 in Ns_SetGetCmp (set=0x0, key=0x40bf2953 "X-Forwarded-For",
cmp=0x401e74d0 <strcasecmp>) at set.c:263
#2 0x40048ce6 in Ns_SetIGet (set=0x0, key=0x40bf2953 "X-Forwarded-For")
at set.c:405
#3 0x40bf1814 in LogTrace (arg=0x80a8720, conn=0x805b988) at nslog.c:282
#4 0x4003a96b in RunTraces (conn=0x805b988, tracePtr=0x81379c0)
at filter.c:277
#5 0x4003a919 in NsRunTraces (conn=0x805b988) at filter.c:262
#6 0x40042c67 in ConnRun (connPtr=0x805b988) at queue.c:727
#7 0x40042908 in NsConnThread (arg=0x829b2c0) at queue.c:589
#8 0x40078f69 in NsThreadMain (arg=0x806a1e8) at thread.c:224
#9 0x4007a89e in ThreadMain (arg=0x806a1e8) at pthread.c:730
#10 0x4013d9b4 in start_thread () from /lib/tls/libpthread.so.0
#11 0x00000000 in ?? ()
(gdb) list nslog.c:282
277 /*
278 * Append the peer address and auth user (if any).
279 * Watch for users comming from proxy servers.
280 */
281
282 if ((p = Ns_SetIGet(conn->headers, "X-Forwarded-For"))) {
283 Ns_DStringAppend(&ds, p);
284 } else {
285 Ns_DStringAppend(&ds, Ns_ConnPeer(conn));
286 }
(gdb) print *conn
$5 = {request = 0x0, headers = 0x0, outputheaders = 0x0, authUser = 0x0,
authPasswd = 0x0, contentLength = 0, flags = 17}
This is a null-pointer comparison as conn->headers is NULL.
This doesn't seem to take out the server, just create zombie threads.
It may also explain SF Bug 815850, but I'm just guessing about that.
The simple fix would be to test conn->headers, but I'm puzzled as to how
we got as far as nslog without having headers.
-- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of
your email blank.