Memcached crashing on FreeBSD

Jason Coene jcoene at
Wed Apr 13 13:51:15 PDT 2005

Well guys, some bad news - "ax" didn't fix the crash!

Code I added to main():

#ifdef __FreeBSD__
    _malloc_options = "ax";

The ifdef block is definitely getting picked up, I tested with a printf

Backtrace from latest crash:

(gdb) bt
#0  0x280c5d4f in kill () from /lib/
#1  0x280ba7f8 in raise () from /lib/
#2  0x28132f02 in abort () from /lib/
#3  0x2813167e in tcflow () from /lib/
#4  0x28131f1b in tcflow () from /lib/
#5  0x281322d6 in malloc () from /lib/
#6  0x0804b595 in slabs_newslab (id=5) at slabs.c:111
#7  0x0804b62d in slabs_alloc (size=66981) at slabs.c:161
#8  0x0804ba1a in item_alloc (
    key=0xbfbfe6f0 "cache_comments_data_threads_119059_1", flags=0,
    nbytes=66909) at items.c:56
#9  0x08049f40 in process_command (c=0x8055600,
    command=0x8e5f000 "set cache_comments_data_threads_119059_1 1 1113423405
66907") at memcached.c:513
#10 0x0804a557 in try_read_command (c=0x8055600) at memcached.c:736
#11 0x0804a7dc in drive_machine (c=0x8055600) at memcached.c:836
#12 0x0804ac2d in event_handler (fd=0, which=2, arg=0x8055600)
    at memcached.c:1079
#13 0x0804cba0 in event_process_active () at event.c:210
#14 0x0804cd4b in event_loop (flags=0) at event.c:296
#15 0x0804b2bd in main (argc=1024, argv=0xbfbfe948) at memcached.c:1464
#16 0x080491a2 in _start ()

Any thoughts?



More information about the memcached mailing list