Issue information

Issue ID
#1018
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Feb 21, 2008 4:09
Last Post
Hercules Elf Bot
Feb 21, 2008 4:09
Confirmation
N/A

Hercules Elf Bot - Feb 21, 2008 4:09

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

After 17 hours on-line, I had a problem with the map-server that crashed 3 times followed.
Below the stackdump

CODE
Program terminated with signal 8, Arithmetic exception.

warning: svr4_current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libmysqlclient.so.15...done.
Loaded symbols for /usr/lib/libmysqlclient.so.15
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0  0x08061f38 in clif_charnameack (fd=235, bl=0xad0b3210) at clif.c:7166
7166                                            str_p += sprintf(str_p, "HP: %d%% | ",
(gdb) quit


This cause map-server crash.
code.22931
CODE
#0  0x08061f38 in clif_charnameack (fd=399, bl=0xad077198) at clif.c:7166
7166                                            str_p += sprintf(str_p, "HP: %d%% | ",

core.31939
CODE
#0  0x08061f38 in clif_charnameack (fd=235, bl=0xad0b3210) at clif.c:7166
7166                                           str_p += sprintf(str_p, "HP: %d%% | ",

core.31993
CODE
#0  0x08061f38 in clif_charnameack (fd=208, bl=0xad1032b0) at clif.c:7166
7166                                           str_p += sprintf(str_p, "HP: %d%% | ",


My config
// Display some mob info next to their name? (add as needed)
// (does not works on guardian or emperium)
// 1: Display mob HP (Hp/MaxHp format)
// 2: Display mob HP (Percent of full life format)
// 4: Display mob's level
show_mob_info: 6

Now put the option to 5, to see if the bug continues, as the error happens on the option of percentage.

CODE
                if (battle_config.show_mob_info&2)
                    str_p += sprintf(str_p, "HP: %d%% | ",
                        md->status.max_hp > 10000?
                        md->status.hp/(md->status.max_hp/100):
                        100*md->status.hp/md->status.max_hp);
                //Even thought mobhp ain't a name, we send it as one so the client
                //can parse it. [Skotlex]


This post has been edited by cyberking: Feb 21 2008, 12:07 AM