Issue information

Issue ID
#2988
Status
Unable to Fix
Severity
None
Started
Hercules Elf Bot
Apr 19, 2009 12:53
Last Post
Hercules Elf Bot
Apr 19, 2009 12:53
Confirmation
N/A

Hercules Elf Bot - Apr 19, 2009 12:53

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

Like the title says, @ii, @iteminfo, @whodrops, @idsearch makes my server crash @_@ it happens when it search for item names, not the id itself, kind of weird to explain...
Not sure why this all started to happen, but i know it never did before.

CODE
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210431280 (LWP 12760)]
0x08148f94 in stristr (haystack=0x5060237 <Address 0x5060237 out of bounds>, needle=0xbfd7d478 "apple") at strlib.c:201
201             for (; *haystack; ++haystack )
(gdb) bt full
#0  0x08148f94 in stristr (haystack=0x5060237 <Address 0x5060237 out of bounds>, needle=0xbfd7d478 "apple") at strlib.c:201
No locals.
#1  0x080ab066 in itemdb_searchname_array (data=0xbfd7d16c, size=20, str=0xbfd7d478 "apple") at itemdb.c:116
        item = (struct item_data *) 0x5060201
        i = 13730
        count = 13
#2  0x08114a00 in atcommand_iteminfo (fd=10, sd=0xf2591b8, command=0xbfd7d3b0 "@ii", message=0xbfd7d478 "apple")
    at atcommand.c:7384
        itype = {0x8163270 "Potion/Food", 0x816327c "BUG!", 0x8163281 "Usable", 0x8163288 "Etc", 0x816328c "Weapon",
  0x8163293 "Protection", 0x816329e "Card", 0x81632a3 "Egg", 0x81632a7 "Pet Acessory", 0x816327c "BUG!", 0x81632b4 "Arrow", 0x0}
        item_data = <value optimized out>
        item_array = {0xb69b425c, 0xb69b5bdc, 0xb6981be4, 0xb68ecc3c, 0xb680be14, 0xb67dca34, 0xb67b383c, 0xb67a78a4, 0xb67a8324,
  0xb67aa124, 0xb665b78c, 0xb6740db4, 0xb67066a4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
        i = <value optimized out>
        count = 1
#3  0x080fd23a in is_atcommand (fd=10, sd=<value optimized out>, message=0xb3d6574e "@ii apple", type=1) at atcommand.c:9162
        charname = "hÖ׿�0�0�0�0HWÖ³\r�0�0�0�3�0�0�0\n�0�0"
        params = "apple", '\' <repeats 94 times>
        charname2 = "èÎ�5\bNWÖ³\n�0�0�0�3�0�0�0Ù)24\b�1�0�0"
        params2 = "\231�0�0�0�0�0�0�0\204:\216\b\200\a17�0\t�0�0�0�5�0�0�0�4�0�0�0\a", '\' <repeats 11 times>, "J¯�6\b�5�0�0�0\t�0�0�0�0�0�0�0\231�0�0�0¤�0�0�0µ�0�0�0�1�0�0�0-�0�0�020�0�0�0�3�0�0�0\bÕ׿J¯�6\bpÀ�5\b0�1�0"
        command = "@ii", '\' <repeats 96 times>
        output = '\' <repeats 64 times>, "XÓ׿Z�424\b\n", '\' <repeats 11 times>, "9�0�0�0`�1�0�0\200�2�0�0\201�1�0�0L8׳L8׳\n�0�0�0\230Ó׿°2024\b\n�0�0�0\a@�0�037�2�0�0¿�1�0�0ß�1�0�0\202�1�0�0»�2�0�0ý�2�0�033�3�0�0¼�2�0�0}�2�0�020R*17¸\221%17\n�0�0�0ÈÓ׿¶Á�5\b\n�0�0�0\a�0�0�0\a�0�0�0tM\r¶"
        x = 0
        y = <value optimized out>
        z = 0
        atcmd_msg = "@ii apple", '\' <repeats 190 times>
        ssd = (TBL_PC *) 0x0
        info = (AtCommandInfo *) 0x8177bd0
        __FUNCTION__ = "is_atcommand"
#4  0x0807048e in clif_parse_GlobalMessage (fd=10, sd=0xf2591b8) at clif.c:8521
        text = <value optimized out>
        textlen = <value optimized out>
        name = 0xb3d65748 "Jin : @ii apple"
        message = 0xb3d6574e "@ii apple"
        namelen = 3
        messagelen = 10
#5  0x08066b4c in clif_parse (fd=10) at clif.c:13319
        cmd = 243
        packet_ver = 22
        packet_len = 20
        err = 128
        sd = (TBL_PC *) 0xf2591b8
        pnum = 0
#6  0x08140f70 in do_sockets (next=100) at socket.c:761
        rfd = {__fds_bits = {1024, 0 <repeats 31 times>}}
        timeout = {tv_sec = 0, tv_usec = 70000}
        ret = 0
        i = <value optimized out>
#7  0x0813f9f6 in main (argc=1, argv=0xbfd7d834) at core.c:254
        next = 97
(gdb)



CODE
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210365744 (LWP 12886)]
0x08148f94 in stristr (haystack=0x5060237 <Address 0x5060237 out of bounds>, needle=0xbf9f7da8 "apple") at strlib.c:201
201             for (; *haystack; ++haystack )
(gdb) bt full
#0  0x08148f94 in stristr (haystack=0x5060237 <Address 0x5060237 out of bounds>, needle=0xbf9f7da8 "apple") at strlib.c:201
No locals.
#1  0x080ab066 in itemdb_searchname_array (data=0xbf9f7e0c, size=20, str=0xbf9f7da8 "apple") at itemdb.c:116
        item = (struct item_data *) 0x5060201
        i = 13730
        count = 13
#2  0x08101af2 in atcommand_idsearch (fd=11, sd=0xef491b8, command=0xbf9f8020 "@idsearch", message=0xbf9f80e8 "apple")
    at atcommand.c:3891
        item_name = "apple", '\' <repeats 94 times>
        i = <value optimized out>
        match = <value optimized out>
        item_array = {0xb69c425c, 0xb69c5bdc, 0xb6991be4, 0xb68fcc3c, 0xb681be14, 0xb67eca34, 0xb67c383c, 0xb67b78a4, 0xb67b8324,
  0xb67ba124, 0xb666b78c, 0xb6750db4, 0xb67166a4, 0x71, 0xbf9f8021, 0xbf9f7e68, 0x80fc418, 0x816352d, 0xbf9f8021, 0x8162658}
        __FUNCTION__ = "atcommand_idsearch"
#3  0x080fd23a in is_atcommand (fd=11, sd=<value optimized out>, message=0xb3d7574e "@idsearch apple", type=1) at atcommand.c:9162
        charname = "Ø\202\237¿�0�0�0�0HW׳23�0�0�0�3�0�0�0\v�0�0"
        params = "apple", '\' <repeats 94 times>
        charname2 = "èÎ�5\bNW׳20�0�0�0�3�0�0�0Ù)24\b�1�0�0"
        params2 = "¡UÈ�0x�5�0�0\204:\216\b\200\a17�0\v�0�0�0\a�0�0�0�4�0�0�0ÈÓÕ�0�0�0�0�0�0�0�0�0X7Ô�0�5�0�0�0\t�0�0�0�0�0�0�0mcß·30ï2\vô¿Õ�0@ÑÕ�0<�0�0�020�0�0�0�3�0�0�0x\201\237¿J¯�6\bpÀ�5\b0�1�0"
        command = "@idsearch", '\' <repeats 90 times>
        output = '\' <repeats 84 times>, "35�0�0�0ÿ�1�0�0ß�2�0�0þ�1�0�0[�2�0�035�2�0�0Þ�2�0�0d�2�0�0{�2�0�0�1�3�0�0à�1�0�0\234�2�0�0�3�3�0�0�2�3�0�0¤�2�0�033�2�0�034�2�0�0Ý�2�0�0�0�3�0�0;�2�0�0ÿ�2�0�0ß�1�0�0¼�2�0�0½�2�0�0�4�3�0�0ä�2�0�0Ä�2�0�0\233�2�0�0ý�1�0"
        x = 0
        y = <value optimized out>
        z = 0
        atcmd_msg = "@idsearch apple", '\' <repeats 184 times>
        ssd = (TBL_PC *) 0x0
        info = (AtCommandInfo *) 0x8177450
        __FUNCTION__ = "is_atcommand"
#4  0x0807048e in clif_parse_GlobalMessage (fd=11, sd=0xef491b8) at clif.c:8521
        text = <value optimized out>
        textlen = <value optimized out>
        name = 0xb3d75748 "Jin : @idsearch apple"
        message = 0xb3d7574e "@idsearch apple"
        namelen = 3
        messagelen = 16
#5  0x08066b4c in clif_parse (fd=11) at clif.c:13319
        cmd = 243
        packet_ver = 22
        packet_len = 26
        err = 128
        sd = (TBL_PC *) 0xef491b8
        pnum = 0
#6  0x08140f70 in do_sockets (next=95) at socket.c:761
        rfd = {__fds_bits = {2048, 0 <repeats 31 times>}}
        timeout = {tv_sec = 0, tv_usec = 18000}
        ret = 0
        i = <value optimized out>
#7  0x0813f9f6 in main (argc=1, argv=0xbf9f84a4) at core.c:254
        next = 97
(gdb)


This post has been edited by AquaWolf: Apr 19 2009, 06:30 AM