Issue information

Issue ID
#2966
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Apr 14, 2009 6:08
Last Post
Hercules Elf Bot
Apr 14, 2009 6:08
Confirmation
N/A

Hercules Elf Bot - Apr 14, 2009 6:08

Originally posted by [b]Jguy[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2966

Well, I'm not sure if this might be related to any custom stuff I've added, but they were working fine before I upgraded from 13509 to 13669 source.

I logged in with my GM character, and the server crashes. Here is the trace:

CODE
$ gdb map-server_sql map-server_sql.core
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...
Core was generated by `map-server_sql'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.16...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.16
Reading symbols from /lib/libcrypt.so.4...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  clif_guild_emblem (sd=0x2ebca018, g=0x301acd0c) at clif.c:6516
6516    clif.c: No such file or directory.
        in clif.c
(gdb) bt full
#0  clif_guild_emblem (sd=0x2ebca018, g=0x301acd0c) at clif.c:6516
        fd = 8
#1  0x08065a13 in clif_parse (fd=8) at clif.c:13130
        cmd = 337
        packet_ver = 22
        packet_len = 6
        err = 128
        sd = (TBL_PC *) 0x2ebca018
        pnum = 0
#2  0x08133803 in do_sockets (next=Variable "next" is not available.
) at socket.c:761
        rfd = {__fds_bits = {256, 0 <repeats 31 times>}}
        timeout = {tv_sec = 0, tv_usec = 82000}
        ret = 0
        i = 8
#3  0x081323f6 in main (argc=1, argv=0xbfbfed3c) at core.c:254
        next = Variable "next" is not available.
(gdb) quit
$ uname -a
FreeBSD server.myst-online.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     [email protected]:/usr/obj/usr/src/sys/GENERIC  i386


And here is what the server kicks back...

CODE
[Info]: GM 'Jguy' logged in. (AID/CID: '2000000/150000', Packet Ver: '22', IP: '*.*.*.*', GM Level '99').
[Info]: mail load complete from DB - id: 150000 (total: 0)
[Error]: intif: guild info : data size error Gid: 7 recv size: 11788 Expected size: 11068
[Status]: set users Myst : 1
[Error]: _mmalloc: -2147483648
[Error]: Server received crash signal! Attempting to save all online characters!
[Status]: set users Myst : 0
[Status]: Map-server 0 (session #7) has disconnected.


If it is relating to my source changes, please point me in the right direction, and I'll move this out of here. I don't think it's my source changes/additions, because I haven't touched any of those lines, and I've never touched socket.c....

This post has been edited by Jguy: Apr 13 2009, 11:12 PM