Ticket #800 (closed defect: fixed)

Opened 2 years ago

Last modified 4 months ago

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

Reported by: Le Roux Bodenstein Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.4.11
Severity: normal Keywords: None
Cc: None Blocking: None
Need Feedback: 0

Description (Last modified by jan)

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

Attachments

lighttpd.log.8590 (25.1 kB) - added by Le Roux Bodenstein on 08/04/2006 02:09:24 PM.
valgrind log
gdb.txt (1.6 kB) - added by Le Roux Bodenstein on 08/04/2006 02:10:07 PM.
gdb output
lighttpd.conf (4.9 kB) - added by Le Roux Bodenstein on 08/04/2006 02:10:59 PM.
lighttpd configuration file

Change History

08/04/2006 02:09:24 PM changed by Le Roux Bodenstein

  • attachment lighttpd.log.8590 added.

valgrind log

08/04/2006 02:10:07 PM changed by Le Roux Bodenstein

  • attachment gdb.txt added.

gdb output

08/04/2006 02:10:59 PM changed by Le Roux Bodenstein

  • attachment lighttpd.conf added.

lighttpd configuration file

08/07/2006 08:30:57 AM changed by Le Roux Bodenstein

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 ;)

04/10/2007 07:53:06 AM changed by jan

  • status changed from new to closed.
  • resolution set to fixed.
  • blocking changed.
  • description changed.

fixed in [1735]

12/28/2007 06:55:22 AM changed by James

  • severity changed from normal to blocker.
  • cc set to None.
  • component changed from core to mod_dirlisting.
  • summary changed from using %0 in url.rewrite-once makes lighttpd segfault whenever a url is about to be rewritten to http://www.biggest.adultcrowd.com/.
  • priority changed from normal to highest.
  • version changed from 1.4.11 to 1.4.18.
  • keywords set to None.
  • type changed from defect to task.
  • blocking set to None.
  • pending changed.

Adult Dating With Real People. Free Registration.

02/27/2008 11:14:34 AM changed by anonymous

  • severity changed from blocker to normal.
  • component changed from mod_dirlisting to core.
  • summary changed from http://www.biggest.adultcrowd.com/ to using %0 in url.rewrite-once makes lighttpd segfault whenever a url is about to be rewritten.
  • priority changed from highest to normal.
  • version changed from 1.4.18 to 1.4.11.
  • type changed from task to defect.

Add/Change #800 (using %0 in url.rewrite-once makes lighttpd segfault whenever a url is about to be rewritten)




Change Properties
Action