steveyen / moxi

a memcached proxy with energy and pep
BSD 3-Clause "New" or "Revised" License
135 stars 33 forks source link

moxi will core dump when listing customers #12

Closed ingenthr closed 15 years ago

ingenthr commented 15 years ago

When running a remote mcprb command to list customers, I can get moxi to core dump.

$ git describe 0.1.0-347-gf071b1e

gdb moxi core.28494 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"...

warning: Can't read pathname for load map: Input/output error. Reading symbols from /usr/lib/libevent-1.3e.so.1...done. Loaded symbols for /usr/lib/libevent-1.3e.so.1 Reading symbols from /lib/tls/i686/cmov/libm.so.6...done. Loaded symbols for /lib/tls/i686/cmov/libm.so.6 Reading symbols from /usr/lib/libsqlite3.so.0...done. Loaded symbols for /usr/lib/libsqlite3.so.0 Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libdl.so.2 Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done. Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0 Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2 Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...done. Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8 Reading symbols from /usr/lib/libglib-2.0.so.0...Reading symbols from /usr/lib/debug/usr/lib/libglib-2.0.so.0.1800.2...done. done. Loaded symbols for /usr/lib/libglib-2.0.so.0 Reading symbols from /lib/tls/i686/cmov/libc.so.6...done. Loaded symbols for /lib/tls/i686/cmov/libc.so.6 Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done. Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1 Reading symbols from /lib/tls/i686/cmov/librt.so.1...done. Loaded symbols for /lib/tls/i686/cmov/librt.so.1 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done. Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/libpcre.so.3...done. Loaded symbols for /lib/libpcre.so.3 Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2 Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2 Core was generated by `./moxi -vvv -z rob-test@memscale.ec2.northscale.net%letme1n'. Program terminated with signal 11, Segmentation fault. [New process 28500] [New process 28499] [New process 28497] [New process 28498] [New process 28496] [New process 28495] [New process 28494]

0 free_kvpair (pair=0x0) at kvpair.c:51

51 if (pair->next) { (gdb) bt

0 free_kvpair (pair=0x0) at kvpair.c:51

1 0x08073ce8 in process_stats (cmd=0x83ed3d0 "client_stats",

cmd_stanza=0x83ed288, conn=0x83ecb38, stanza=0x83e8ca8, 
userdata=0x83df150, direct=true) at xmpp.c:456

2 0x080734c2 in command_dispatch (conn=0x83ecb38, stanza=0x83e8ca8,

userdata=0x83df150, cmd=0x83ed3d0 "client_stats", req=0x83ed288, 
direct=<value optimized out>) at xmpp.c:780

3 0x080745bc in command_handler (conn=0x83ecb38, stanza=0x83e8ca8,

userdata=0x83df150) at xmpp.c:800

4 0x080785fe in handler_fire_stanza (conn=0x83ecb38, stanza=0x83e8ca8)

at src/handler.c:109

5 0x0807736f in _handle_stream_stanza (stanza=0x83e8ca8, userdata=0x83ecb38)

at src/conn.c:759

6 0x0807d45b in _end_element (userdata=0x83e9d08, name=0x83e8c80 "iq")

at src/parser_expat.c:116

7 0x08084f0b in doContent (parser=0x83ea800, startTagLevel=0, enc=0x80aac60,

s=0x83ed88b "</iq>\005", end=0x83ed890 "\005", nextPtr=0x83ea818, 
haveMore=1 '\001') at expat/lib/xmlparse.c:2449

8 0x08083ec0 in contentProcessor (parser=0x83ea800,

start=0x83ed7b7 "<iq to=\"rob-test@memscale.ec2.northscale.net/tigase-1\" from=\"mcp@memscale.ec2.northscale.net/bot\" type=\"get\" id=\"H_17\"><command xmlns=\"http://jabber.org/protocol/commands\" node=\"client_stats\" status=\""..., end=0x83ed890 "\005", endPtr=0x83ea818) at expat/lib/xmlparse.c:2023

---Type to continue, or q to quit---

9 0x08083396 in XML_ParseBuffer (parser=0x83ea800, len=217, isFinal=0)

at expat/lib/xmlparse.c:1573

10 0x080832a6 in XML_Parse (parser=0x83ea800,

s=0xb520a35c "<iq to=\"rob-test@memscale.ec2.northscale.net/tigase-1\" from=\"mcp@memscale.ec2.northscale.net/bot\" type=\"get\" id=\"H_17\"><command xmlns=\"http://jabber.org/protocol/commands\" node=\"client_stats\" status=\""..., 
len=217, isFinal=0) at expat/lib/xmlparse.c:1544

11 0x0807d67d in parser_feed (parser=0x83e9d08,

chunk=0xb520a35c "<iq to=\"rob-test@memscale.ec2.northscale.net/tigase-1\" from=\"mcp@memscale.ec2.northscale.net/bot\" type=\"get\" id=\"H_17\"><command xmlns=\"http://jabber.org/protocol/commands\" node=\"client_stats\" status=\""..., len=217) at src/parser_expat.c:201

12 0x08078177 in xmpp_run_once (ctx=0x83dd7d0, timeout=1) at src/event.c:273

13 0x080782f8 in xmpp_run (ctx=0x83dd7d0) at src/event.c:325

14 0x08073e6f in run_conflate (arg=0x83df150) at xmpp.c:1019

15 0xb7e7850f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0

16 0xb7ce3a0e in clone () from /lib/tls/i686/cmov/libc.so.6

ingenthr commented 15 years ago

fixed by Dustin