Jump to content
  • 0
KohakuSan

@time crashes map server

Question

No errors on console, only "Map-server #0 disconnected"

 

As soon as I type @time and hit enter I get the time and a window saying Disconnected from server as well as the entire map server crashing...

 

Any ideas what it could be? Something related to timezone perhaps?

Edited by KohakuSan

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

No errors on console, only "Map-server #0 disconnected"

 

As soon as I type @time and hit enter I get the time and a window saying Disconnected from server as well as the entire map server crashing...

 

Any ideas what it could be? Something related to timezone perhaps?

If map server is crashing, try to get a gdb coredump report.

Share this post


Link to post
Share on other sites
  • 0

I'm trying to, but the core file isn't generated...
Already followed the instructions on http://herc.ws/wiki/GDB but nothing.

./configure --enable-debug=gdb

 

Recompiled, even tried again with make clean, no changes.

 

There is actually a console "error". It says map-server sent a crash signal and will be closed, saving all characters.

 

Sorry I never worked on linux and gdb.

Share this post


Link to post
Share on other sites
  • 0

./configure --enable-debug=gdb

 

this just enables it

after the crash, there is a file "core.xxxx" (example, core.5213)

simply check with dir, then:

gdb map-server core.xxxxbt full
Edited by Ridley

Share this post


Link to post
Share on other sites
  • 0

 

./configure --enable-debug=gdb

 

this just enables it

after the crash, there is a file "core.xxxx" (example, core.5213)

simply check with dir, then:

gdb map-server core.xxxxbt full

 

As I said, there is no core file generated after the crash.

Share this post


Link to post
Share on other sites
  • 0

 

 

 

./configure --enable-debug=gdb

 

 

this just enables it

after the crash, there is a file "core.xxxx" (example, core.5213)

simply check with dir, then:

gdb map-server core.xxxxbt full
 

As I said, there is no core file generated after the crash.

Run map server via gdb from:
gdb map-serverrun
And then it will display the dump when it crashes,

Share this post


Link to post
Share on other sites
  • 0

Thank you, now it worked however the core file isn't generated there is a new message on the map-server console

It seems I need to install this stuff it's saying but I tried using debuginfo-install glibc-2.12-1.149.el6.i686 but there's no debuginfo-install command...

 

Program received signal SIGSEGV, Segmentation fault.0xb7a4d9ef in __strlen_ia32 () from /lib/libc.so.6Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.149.el6.i686 keyutils-libs-1.4-5.el6.i686 krb5-libs-1.10.3-33.el6.i686 libcom_err-1.41.12-21.el6.i686 libselinux-2.0.94-5.8.el6.i686 mysql-libs-5.1.73-3.el6_5.i686 nss-softokn-freebl-3.14.3-18.el6_6.i686 openssl-1.0.1e-30.el6_6.4.i686 pcre-7.8-6.el6.i686 zlib-1.2.3-29.el6.i686

Share this post


Link to post
Share on other sites
  • 0

Thank you, now it worked however the core file isn't generated there is a new message on the map-server console

It seems I need to install this stuff it's saying but I tried using debuginfo-install glibc-2.12-1.149.el6.i686 but there's no debuginfo-install command...

 

 

Program received signal SIGSEGV, Segmentation fault.0xb7a4d9ef in __strlen_ia32 () from /lib/libc.so.6Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.149.el6.i686 keyutils-libs-1.4-5.el6.i686 krb5-libs-1.10.3-33.el6.i686 libcom_err-1.41.12-21.el6.i686 libselinux-2.0.94-5.8.el6.i686 mysql-libs-5.1.73-3.el6_5.i686 nss-softokn-freebl-3.14.3-18.el6_6.i686 openssl-1.0.1e-30.el6_6.4.i686 pcre-7.8-6.el6.i686 zlib-1.2.3-29.el6.i686
After crash appear, you should use

bt full

So that it get full dump, and copy paste whole dump here.

Share this post


Link to post
Share on other sites
  • 0

There we go.

 

 

(gdb) bt full#0  0xb7a4d9ef in __strlen_ia32 () from /lib/libc.so.6No symbol table info available.#1  0xb7a1823f in vfprintf () from /lib/libc.so.6No symbol table info available.#2  0xb7a376cc in vsprintf () from /lib/libc.so.6No symbol table info available.#3  0xb7a1f28b in sprintf () from /lib/libc.so.6No symbol table info available.#4  0x0807f3af in txt_time (duration=<value optimized out>) at atcommand.c:4258        days = <value optimized out>        hours = 1        minutes = 59        seconds = 41        temp1 = '000' <repeats 255 times>        tlen = 0#5  0x08097da8 in atcommand_servertime (fd=11, sd=0x935eca0,     command=0xbffff2a4 "@time", message=0xbffff36c "", info=0xb772a744)    at atcommand.c:4293        timer_data = 0xb779db48        timer_data2 = 0xb779db2c        time_server = 1421368771        datetime = <value optimized out>        temp = "Tempo no servidor (tempo normal): Thursday, January 15 2015 20:3---Type <return> to continue, or q <return> to quit---9:31.", '000' <repeats 186 times>#6  0x0807f903 in atcommand_exec (fd=11, sd=0x935eca0,     message=<value optimized out>, player_invoked=true) at atcommand.c:9901        charname = "a000000000314031|b313031|b313031|ba000000000,372065t"        params = '000' <repeats 99 times>        charname2 = "344363377277@210n264030364377277276n020bJ210n264006000000"        params2 = "001000000000L363377277026000000000022000000000001000000000232000000000226000000000320363377277250363377277275261017b000064017b253000000000226000000000232000000000262000000000266000000000001000000000320363377277034000000000334025365263005000000000tv9265004000000000000000000000250363377277"        command = "@time", '000' <repeats 94 times>        output = "200360377277u", '000' <repeats 15 times>"304, 377377377v000000000340L266267034000000000001000000000211#%b000000000000206271262267000000000000000000000000264364377277000000000000304377377377274364377277304377377377000000000000000000000000001000000000000000000000240c266267000000000000v", '000' <repeats 15 times>"344, 363377277216265262267n000000000377377377377000001000000001000000000001000000000200360377277377377377377v000000000034000000000034000000000335032%b0260000000000220---Type <return> to continue, or q <return> to quit---00000000001000000000v000000000034000000000320363377277250362377277222064017bv000000000320363377277034000000000200353070bd354365263006000000000370362377277L363377277266000000000000000000000350362377277000000000000001000000"        atcmd_msg = "@time", '000' <repeats 24 times>, '001' <repeats 26 times>, "000000000000000000", '001' <repeats 26 times>, '000' <repeats 117 times>"213, 265262267310363377277bT242267344363377277064000000000344363377277310361377277335032%bv000000000000000000000310361377277375036%bv000000"        ssd = <value optimized out>        info = <value optimized out>        __FUNCTION__ = "atcommand_exec"#7  0x080ffeec in clif_parse_GlobalMessage (fd=11, sd=0x935eca0) at clif.c:9883        text = 0xb40a8840 "fasdasd : @time"        textlen = 16        name = 0xb40a8840 "fasdasd : @time"        message = 0xb40a884a "@time"        fakename = 0x0        namelen = 7        messagelen = <value optimized out>        is_fake = <value optimized out>        __FUNCTION__ = "clif_parse_GlobalMessage"#8  0x080e0555 in clif_parse (fd=11) at clif.c:18741---Type <return> to continue, or q <return> to quit---        parse_cmd_func = <value optimized out>        cmd = <value optimized out>        packet_len = 20        sd = 0x935eca0        pnum = <value optimized out>#9  0x0825396e in do_sockets (next=100) at socket.c:869        rfd = {fds_bits = {2048, 0 <repeats 31 times>}}        timeout = {tv_sec = 0, tv_usec = 34000}        ret = <value optimized out>        i = <value optimized out>#10 0x08250217 in main (argc=1, argv=0xbffff7c4) at core.c:256        next = <value optimized out>        retval = 0

 

 

Edited by KohakuSan

Share this post


Link to post
Share on other sites
  • 0

There we go.

 

 

(gdb) bt full#0  0xb7a4d9ef in __strlen_ia32 () from /lib/libc.so.6No symbol table info available.#1  0xb7a1823f in vfprintf () from /lib/libc.so.6No symbol table info available.#2  0xb7a376cc in vsprintf () from /lib/libc.so.6No symbol table info available.#3  0xb7a1f28b in sprintf () from /lib/libc.so.6No symbol table info available.#4  0x0807f3af in txt_time (duration=<value optimized out>) at atcommand.c:4258        days = <value optimized out>        hours = 1        minutes = 59        seconds = 41        temp1 = '000' <repeats 255 times>        tlen = 0#5  0x08097da8 in atcommand_servertime (fd=11, sd=0x935eca0,     command=0xbffff2a4 "@time", message=0xbffff36c "", info=0xb772a744)    at atcommand.c:4293        timer_data = 0xb779db48        timer_data2 = 0xb779db2c        time_server = 1421368771        datetime = <value optimized out>        temp = "Tempo no servidor (tempo normal): Thursday, January 15 2015 20:3---Type <return> to continue, or q <return> to quit---9:31.", '000' <repeats 186 times>#6  0x0807f903 in atcommand_exec (fd=11, sd=0x935eca0,     message=<value optimized out>, player_invoked=true) at atcommand.c:9901        charname = "a000000000314031|b313031|b313031|ba000000000,372065t"        params = '000' <repeats 99 times>        charname2 = "344363377277@210n264030364377277276n020bJ210n264006000000"        params2 = "001000000000L363377277026000000000022000000000001000000000232000000000226000000000320363377277250363377277275261017b000064017b253000000000226000000000232000000000262000000000266000000000001000000000320363377277034000000000334025365263005000000000tv9265004000000000000000000000250363377277"        command = "@time", '000' <repeats 94 times>        output = "200360377277u", '000' <repeats 15 times>"304, 377377377v000000000340L266267034000000000001000000000211#%b000000000000206271262267000000000000000000000000264364377277000000000000304377377377274364377277304377377377000000000000000000000000001000000000000000000000240c266267000000000000v", '000' <repeats 15 times>"344, 363377277216265262267n000000000377377377377000001000000001000000000001000000000200360377277377377377377v000000000034000000000034000000000335032%b0260000000000220---Type <return> to continue, or q <return> to quit---00000000001000000000v000000000034000000000320363377277250362377277222064017bv000000000320363377277034000000000200353070bd354365263006000000000370362377277L363377277266000000000000000000000350362377277000000000000001000000"        atcmd_msg = "@time", '000' <repeats 24 times>, '001' <repeats 26 times>, "000000000000000000", '001' <repeats 26 times>, '000' <repeats 117 times>"213, 265262267310363377277bT242267344363377277064000000000344363377277310361377277335032%bv000000000000000000000310361377277375036%bv000000"        ssd = <value optimized out>        info = <value optimized out>        __FUNCTION__ = "atcommand_exec"#7  0x080ffeec in clif_parse_GlobalMessage (fd=11, sd=0x935eca0) at clif.c:9883        text = 0xb40a8840 "fasdasd : @time"        textlen = 16        name = 0xb40a8840 "fasdasd : @time"        message = 0xb40a884a "@time"        fakename = 0x0        namelen = 7        messagelen = <value optimized out>        is_fake = <value optimized out>        __FUNCTION__ = "clif_parse_GlobalMessage"#8  0x080e0555 in clif_parse (fd=11) at clif.c:18741---Type <return> to continue, or q <return> to quit---        parse_cmd_func = <value optimized out>        cmd = <value optimized out>        packet_len = 20        sd = 0x935eca0        pnum = <value optimized out>#9  0x0825396e in do_sockets (next=100) at socket.c:869        rfd = {fds_bits = {2048, 0 <repeats 31 times>}}        timeout = {tv_sec = 0, tv_usec = 34000}        ret = <value optimized out>        i = <value optimized out>#10 0x08250217 in main (argc=1, argv=0xbffff7c4) at core.c:256        next = <value optimized out>        retval = 0

 

 

I believe its conf/messages.conf problem

Can you search for

 

224: 

search that 224 number, and please say the output of that line here :)

Normally it should be like

 

224: %d minutes

If there's %s or %(Anything Here except d) , it would most likely be crashed.

Share this post


Link to post
Share on other sites
  • 0

Oh I forgot I used the import to edit it, there's a %s in there... and all the others around it for hours, days etc

I copied it from cronus I believe for the portuguese translation...

 

I'll fix it using the hercules one as template.

 

EDIT: It worked! Thank you very much Dastgir.

Edited by KohakuSan

Share this post


Link to post
Share on other sites
  • 0

Oh I forgot I used the import to edit it, there's a %s in there... and all the others around it for hours, days etc

I copied it from cronus I believe for the portuguese translation...

 

I'll fix it using the hercules one as template.

 

EDIT: It worked! Thank you very much Dastgir.

Its nice to know that the crash is solved :D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.