mod_geoip on lighttpd 1.4.18

Discussion in 'Site & Server Administration' started by turiel, Nov 5, 2007.

  1. #1
    Hey,

    I'm using lighttpd 1.4.18 and mod_geoip.5.c, directly downloaded from the Lighttpd website. Compiled from source.

    I'm having a problem with lighttpd crashing on the first page request
    made, whether the page uses the geoip env variables or not. I have
    compiled and configured mod_geoip exactly as it specifies in the
    documentation on Trac/wiki. I have tried with memory cache both enabled
    and disabled.

    libGeoIP has been installed from latest source and the inbuilt tests
    succeed.

    There is no output in the error log, and the only information is in the
    kernel log:
    lighttpd[16686]: segfault at ffffffffaaac2250 rip 00002aaaac0fd08a rsp
    00007fffd6baaad0 error 4

    Any ideas?

    Thanks
     
    turiel, Nov 5, 2007 IP
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That's definitely a conflicting module or incorrect build on your system platform.
     
    agnivo007, Nov 6, 2007 IP
  3. plumsauce

    plumsauce Peon

    Messages:
    310
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you can create debug maps in your build, then it might be possible to correlate the rip(instruction pointer) and rsp(stack pointer) to the particular piece of code causing the pointer. A seg fault is *generally* a bad pointer.

    The cause of the bad pointer may be something as simple as failing to load the data module.

    DLL hell exists on Linux too :)
     
    plumsauce, Nov 6, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Oh yeah, I use mod_geoip with apache and get some segfaults too...that's passable cause that aren't huge in number. Geoip and mod_geoip coding isn't that good you see.
     
    agnivo007, Nov 6, 2007 IP