Project

General

Profile

Bug #2762

lighttpd version 1.4.43 crashes with active scgi mapping

Added by flynn 6 months ago. Updated 6 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_scgi
Target version:
Start date:
2016-11-01
Due date:
% Done:

100%

Missing in 1.5.x:

Description

The current version 1.4.43 crashes if
- scgi module is loaded

server.modules   += ( "mod_scgi" )

- at least one mapping of an url to scgi is configured:
scgi.server    = ( "/abcd/" => 

Lighttpd segfaults on any url, even if the requsted url is not the for scgi configured one (e.g. /abcd/).

The same configuration worked (ant still works) with version 1.4.42 and lower.

GDB backtrace:

Program received signal SIGSEGV, Segmentation fault.
scgi_check_extension (srv=0x5555557a3c20, con=0x55555587fde0, p_d=0x555555861a50, uri_path_handler=<optimized out>) at mod_scgi.c:2702
2702    mod_scgi.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  scgi_check_extension (srv=0x5555557a3c20, con=0x55555587fde0, p_d=0x555555861a50, uri_path_handler=<optimized out>) at mod_scgi.c:2702
#1  0x0000555555575e23 in plugins_call_handle_uri_clean (srv=srv@entry=0x5555557a3c20, con=con@entry=0x55555587fde0) at plugin.c:330
#2  0x0000555555561713 in http_response_prepare (srv=srv@entry=0x5555557a3c20, con=con@entry=0x55555587fde0) at response.c:401
#3  0x0000555555563f0a in connection_state_machine (srv=0x5555557a3c20, con=0x55555587fde0) at connections.c:1180
#4  0x000055555555f256 in main (argc=<optimized out>, argv=<optimized out>) at server.c:1817


Related issues

Duplicated by Bug #2764: mod_scgi regression; NULL ptr deference in 1.4.43 Duplicate 2016-11-04

Associated revisions

Revision 5e3653dc (diff)
Added by stbuehler 6 months ago

[mod_scgi] fix segfault (fixes #2762)

History

#1 Updated by stbuehler 6 months ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#2 Updated by flynn 6 months ago

I have tested it, works without segfault now!

#3 Updated by stbuehler 6 months ago

Thanks for reporting and testing!

#4 Updated by stbuehler 6 months ago

  • Duplicated by Bug #2764: mod_scgi regression; NULL ptr deference in 1.4.43 added

Also available in: Atom