Project

General

Profile

Actions

Bug #2025

closed

mod_geoip crashes lighttpd 1.5.x on FreeBSD 7.2 AMD64

Added by flackman over 15 years ago. Updated over 8 years ago.

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

Description

The backtrace will look something like this:

#0  0x0000000801809660 in _GeoIP_addr_to_num () from /usr/local/lib/libGeoIP.so.5

Looking further into this, this function is passed the addr from mod_geoip.c:228:

                            remote_ip = inet_ntop_cache_get_ip(srv, &(con->dst_addr));

remote_ip here is what is passed to the above function that fails. I am not quite sure why we are calling inet_ntop_cache_get_ip() since this is already called in connections.c, and the dst_addr_buf field is populated with the results. Changing the above line (mod_geoip.c:228) to:

                            remote_ip = con->dst_addr_buf->ptr;

fixes this and saves a few cycles. There may be a similar problem in mod_trigger_b4_dl, but I do not use that module.


Related issues 1 (0 open1 closed)

Related to Bug #1938: lighttpd 1.4 crashes on FreeBSD 7.0 AMD64 when mod_geoip is compiled inFixed2009-03-17Actions
Actions #3

Updated by gstrauss almost 9 years ago

Actions #4

Updated by stbuehler almost 9 years ago

  • Status changed from New to Invalid
  • Target version deleted (1.5.0)

3rd party module.

Actions #5

Updated by gstrauss over 8 years ago

  • Related to Bug #1938: lighttpd 1.4 crashes on FreeBSD 7.0 AMD64 when mod_geoip is compiled in added
Actions #6

Updated by gstrauss over 8 years ago

  • Target version set to 1.4.42
Actions #7

Updated by gstrauss over 8 years ago

  • Status changed from Invalid to Fixed
Actions

Also available in: Atom