Project

General

Profile

Actions

Bug #800

closed

using %0 in url.rewrite-once makes lighttpd segfault whenever a url is about to be rewritten

Added by Anonymous over 18 years ago. Updated over 16 years ago.

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

Description

When I try and do something like the following:


url.rewrite-once = (    
    "^(/css/.*)$" => "/media/%0$1"    
)

Then lighttpd segfaults. If I replace %0 with something hardcoded, then it works fine.

I'm using lighttpd version 1.4.11-3ubuntu3 on ubuntu dapper amd64. I tried the 32bit version in a chroot and got the same thing. I checked out the latest code and tried to compile it manually, but got a compile error. Then I checked out revision 1116 because it looked like that was a checkin that fixed a problem that I thought might be the same thing and compiled it, but it gave the same error.

Attached, please find my lighttpd configuration, gdb output and valgrind output

-- Le Roux Bodenstein


Files

lighttpd.log.8590 (25.1 KB) lighttpd.log.8590 valgrind log -- Le Roux Bodenstein Anonymous, 2006-08-04 14:09
gdb.txt (1.62 KB) gdb.txt gdb output -- Le Roux Bodenstein Anonymous, 2006-08-04 14:10
lighttpd.conf (4.94 KB) lighttpd.conf lighttpd configuration file -- Le Roux Bodenstein Anonymous, 2006-08-04 14:10
Actions #1

Updated by Anonymous about 18 years ago

ok.. just changed the following:


url.rewrite-once = (
        "^/((files|css|images|js|flash|cache)/.*)$" => "/media/%0/$1",
        "^(.*)$" => "/main.fcgi$1",
    )

to:


$HTTP["host"] =~ ".*" {
    url.rewrite-once = (
        "^/((files|css|images|js|flash|cache)/.*)$" => "/media/%0/$1",
        "^(.*)$" => "/main.fcgi$1",
    )
}

and now it works. In my opinion it should still not have crashed, though ;)

-- Le Roux Bodenstein

Actions #2

Updated by jan over 17 years ago

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

fixed in r1735

Actions #3

Updated by Anonymous almost 17 years ago

Adult Dating With Real People. Free Registration.

-- James

Actions

Also available in: Atom