relay2 gives backtrace on linux (async_connect problem)
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3127
Reported by Marcus Wellhardh wellhard@roxen.com
This is written to the debug log if I try to access a relayed page:
| Stdio.File(): not open.
| module.File: Stdio.File("socket", "community.roxen.com:80", 777 /* fd=-1
*/)->_disable_callbacks()
| /home/wellhard/projects/pike-7.2/lib/modules/Stdio.pmod/module.pmod
(version 1.115):966: Stdio.File("socket", "community.roxen.com:80", 777 /*
fd=-1 */)->set_nonblocking(0,0,0,0,0)
| /home/wellhard/projects/pike-7.2/lib/modules/Stdio.pmod/module.pmod
(version 1.115):371: Stdio.File("socket", "community.roxen.com:80", 777 /*
fd=-1 */)->_async_check_cb(0)
| : Cannot access global variables in destructed object.
| : protocols/http.pike (version 1.369):1916: unknown function()
| : base_server/roxen.pike (version 1.795):588: roxen->handler_thread(3)
The problem disappears if a change:
| #if 1
| fd->async_connect( host, port, connected );
| #else
to:
| #if 0
| fd->async_connect( host, port, connected );
| #else
in the relay2.pike module