Bug #1550

segfault

Added by Anonymous over 6 years ago. Updated over 6 years ago.

Status:FixedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:core
Target version:1.4.20
Missing in 1.5.x:

Description


chudak:~/src/lighttpd-1.4.18# src/lighttpd -t -f /tmp/test
lighttpd: ./configparser.y:19: configparser_push: Assertion `dc->context_ndx > ctx->current->context_ndx' failed.
Aborted
chudak:~/src/lighttpd-1.4.18# cat /tmp/test
$HTTP["host"] == "dev2.rtvslo.si" {
        server.document-root = "/var/www" 
        global {
                fastcgi.server = ( ".php" => ((
                             "bin-path" => "/usr/bin/php4-cgi",
                             "socket" => "/tmp/php.socket" 
                                ))
                 )

        $HTTP["url"] =~ "^/" {
          proxy.server = ("/trac" => ( "trac" => ( "host" => "127.0.0.1", "port" => 9000 )))
          }

        }
        $HTTP["url"] =~ "\.(jpg|gif|png)$" {
                expire.url = ( "" => "access 2 hours" )
        }

}

that is compiled with no ./configure args lighttpd 1.4.18, 1.4.13-4etch4 and 1.4.11-2bpo1 simply segfault with no error message.

i also noticed if i comment out the conditional around the proxy url no seg fault occurs.

-- almir

History

#1 Updated by stbuehler over 6 years ago

Workaround for now:

Just don't use conditionals in global { } (i think global shouldn't be used at all ;-) )

#2 Updated by stbuehler over 6 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

Fixed in r2277

Also available in: Atom