Project

General

Profile

Actions

Bug #2762

closed

lighttpd version 1.4.43 crashes with active scgi mapping

Added by flynn over 7 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_scgi
Target version:
ASK QUESTIONS IN Forums:

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 1 (0 open1 closed)

Has duplicate Bug #2764: mod_scgi regression; NULL ptr deference in 1.4.43Duplicate2016-11-04Actions
Actions #1

Updated by stbuehler over 7 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100
Actions #2

Updated by flynn over 7 years ago

I have tested it, works without segfault now!

Actions #3

Updated by stbuehler over 7 years ago

Thanks for reporting and testing!

Actions #4

Updated by stbuehler over 7 years ago

  • Has duplicate Bug #2764: mod_scgi regression; NULL ptr deference in 1.4.43 added
Actions

Also available in: Atom