Project

General

Profile

Actions

Bug #1140

closed

bus error with mod_proxy_core and osx.

Added by Anonymous about 17 years ago. Updated over 15 years ago.

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

Description

After adding the mod_proxy_core server module I get a bus error when starting lighttpd.

$ gdb sbin/lighttpd

GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul 19 05:10:58 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.

There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ........ done

(gdb) r -D -f /tmp/lsvn/lighttpd.conf

Starting program: /private/tmp/lsvn/sbin/lighttpd -D -f /tmp/lsvn/lighttpd.conf

Reading symbols for shared libraries .+.+.....++++ done

Reading symbols for shared libraries .. done

Reading symbols for shared libraries . done

Reading symbols for shared libraries . done

Reading symbols for shared libraries . done

Reading symbols for shared libraries . done

Reading symbols for shared libraries . done

Reading symbols for shared libraries . done

Reading symbols for shared libraries . done

Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.

Reason: KERN_PROTECTION_FAILURE at address: 0x00000014

0x0060d75b in array_get_index (a=0x0, key=0x4a3fbc "proxy-core.requests", keylen=20, rndx=0x0) at array.c:91

91 for (i = pos = a->next_power_of_2 / 2; ; i >>= 1) {

(gdb) bt

#0 0x0060d75b in array_get_index (a=0x0, key=0x4a3fbc "proxy-core.requests", keylen=20, rndx=0x0) at array.c:91

#1 0x0060d81b in array_get_element (a=0x0, key=0x4a3fbc "proxy-core.requests", keylen=19) at array.c:122

#2 0x006121df in status_counter_get_counter (s=0x4a3fbc "proxy-core.requests", len=19) at status_counter.c:35

#3 0x0049e0ae in mod_proxy_core_init (srv=0x1801200) at mod_proxy_core.c:89

#4 0x00059e48 in plugins_call_init (srv=0x1801200) at plugin.c:535

#5 0x000040c7 in main (argc=4, argv=0xbffffba8, envp=0xbffffbbc) at server.c:1410

-- quellhorst

Actions #1

Updated by darix about 17 years ago

jan, i looked into it a bit. as first patch i added:


Index: src/array.c
===================================================================
--- src/array.c (revision 1820)
+++ src/array.c (working copy)
@@ -85,6 +85,7 @@
    int ndx = -1;
    int i, pos = 0;

+       if (a == NULL) return -1;
    if (key == NULL) return -1;

    /* try to find the string */

the real issue is imho that after


array *status = status_counter_get_array();

the array is null. it seems status_counter_init isnt called. could it be a threading issue?

Actions #2

Updated by Anonymous about 17 years ago

appears to be fixed in latest svn

-- quellhorst

Actions #3

Updated by stbuehler over 15 years ago

  • Status changed from New to Fixed
  • Pending set to No
  • Patch available set to No
Actions

Also available in: Atom