NebbieArcane / Server

Codice del server
Other
4 stars 0 forks source link

3.3.7-59-gd62baf9 (r3.3.7): SIGSEGV in /home/nebbie/Server/release/src/handler.cpp:874 #173

Closed NebbieArcaneBot closed 6 years ago

NebbieArcaneBot commented 6 years ago

Core file: /var/log/dumps/1522854952.myst_release.22231.core Quick dump: [New LWP 22231] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/home/nebbie/Run/release/myst_release -v6 -D -L -M 4000'. Program terminated with signal SIGSEGV, Segmentation fault.

0 0x000000000050a5d4 in Alarmud::affected_by_spell (ch=0x18dd610, skill=1) at /home/nebbie/Server/release/src/handler.cpp:874

874 for (hjp = ch->affected; hjp; hjp = hjp->next) {

Thread 1 (Thread 0x7f01568187c0 (LWP 22231)):

0 0x000000000050a5d4 in Alarmud::affected_by_spell (ch=0x18dd610, skill=1) at /home/nebbie/Server/release/src/handler.cpp:874

1 0x00000000005ea636 in Alarmud::cleric (ch=0x18dd610, cmd=0, arg=0x6d71ac "", mob=0x18dd610, type=1) at /home/nebbie/Server/release/src/spec_procs2.cpp:1276

2 0x000000000057fad3 in Alarmud::mobile_activity (ch=0x18dd610) at /home/nebbie/Server/release/src/mobact.cpp:425

3 0x00000000006730dc in Alarmud::TeleportPulseStuff (pulse=35724) at /home/nebbie/Server/release/src/utility.cpp:2639

4 0x00000000004a4027 in Alarmud::game_loop (s=0) at /home/nebbie/Server/release/src/comm.cpp:717

5 0x00000000004a1b8a in Alarmud::run_the_game (port=4000) at /home/nebbie/Server/release/src/comm.cpp:332

6 0x00000000004a0bd3 in Alarmud::run (port=4000, dir=0x7ffe75caa950 "lib") at /home/nebbie/Server/release/src/comm.cpp:304

7 0x000000000055df67 in Alarmud::main (argc=6, argv=0x7ffe75caae98) at /home/nebbie/Server/release/src/main.cpp:138

8 0x000000000055e5ba in main (argc=6, argv=0x7ffe75caae98) at /home/nebbie/Server/release/src/main.cpp:143

Thread 1 (Thread 0x7f01568187c0 (LWP 22231)):

0 0x000000000050a5d4 in Alarmud::affected_by_spell (ch=0x18dd610, skill=1) at /home/nebbie/Server/release/src/handler.cpp:874

1 0x00000000005ea636 in Alarmud::cleric (ch=0x18dd610, cmd=0, arg=0x6d71ac "", mob=0x18dd610, type=1) at /home/nebbie/Server/release/src/spec_procs2.cpp:1276

2 0x000000000057fad3 in Alarmud::mobile_activity (ch=0x18dd610) at /home/nebbie/Server/release/src/mobact.cpp:425

3 0x00000000006730dc in Alarmud::TeleportPulseStuff (pulse=35724) at /home/nebbie/Server/release/src/utility.cpp:2639

4 0x00000000004a4027 in Alarmud::game_loop (s=0) at /home/nebbie/Server/release/src/comm.cpp:717

5 0x00000000004a1b8a in Alarmud::run_the_game (port=4000) at /home/nebbie/Server/release/src/comm.cpp:332

6 0x00000000004a0bd3 in Alarmud::run (port=4000, dir=0x7ffe75caa950 "lib") at /home/nebbie/Server/release/src/comm.cpp:304

7 0x000000000055df67 in Alarmud::main (argc=6, argv=0x7ffe75caae98) at /home/nebbie/Server/release/src/main.cpp:138

8 0x000000000055e5ba in main (argc=6, argv=0x7ffe75caae98) at /home/nebbie/Server/release/src/main.cpp:143

Long dump: [New LWP 22231] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/home/nebbie/Run/release/myst_release -v6 -D -L -M 4000'. Program terminated with signal SIGSEGV, Segmentation fault.

0 0x000000000050a5d4 in Alarmud::affected_by_spell (ch=0x18dd610, skill=1) at /home/nebbie/Server/release/src/handler.cpp:874

874 for (hjp = ch->affected; hjp; hjp = hjp->next) {

Thread 1 (Thread 0x7f01568187c0 (LWP 22231)):

0 0x000000000050a5d4 in Alarmud::affected_by_spell (ch=0x18dd610, skill=1) at /home/nebbie/Server/release/src/handler.cpp:874

1 0x00000000005ea636 in Alarmud::cleric (ch=0x18dd610, cmd=0, arg=0x6d71ac "", mob=0x18dd610, type=1) at /home/nebbie/Server/release/src/spec_procs2.cpp:1276

2 0x000000000057fad3 in Alarmud::mobile_activity (ch=0x18dd610) at /home/nebbie/Server/release/src/mobact.cpp:425

3 0x00000000006730dc in Alarmud::TeleportPulseStuff (pulse=35724) at /home/nebbie/Server/release/src/utility.cpp:2639

4 0x00000000004a4027 in Alarmud::game_loop (s=0) at /home/nebbie/Server/release/src/comm.cpp:717

5 0x00000000004a1b8a in Alarmud::run_the_game (port=4000) at /home/nebbie/Server/release/src/comm.cpp:332

6 0x00000000004a0bd3 in Alarmud::run (port=4000, dir=0x7ffe75caa950 "lib") at /home/nebbie/Server/release/src/comm.cpp:304

7 0x000000000055df67 in Alarmud::main (argc=6, argv=0x7ffe75caae98) at /home/nebbie/Server/release/src/main.cpp:138

8 0x000000000055e5ba in main (argc=6, argv=0x7ffe75caae98) at /home/nebbie/Server/release/src/main.cpp:143

Thread 1 (Thread 0x7f01568187c0 (LWP 22231)):

0 0x000000000050a5d4 in Alarmud::affected_by_spell (ch=0x18dd610, skill=1) at /home/nebbie/Server/release/src/handler.cpp:874

    hjp = 0x20
    __PRETTY_FUNCTION__ = "bool Alarmud::affected_by_spell(Alarmud::char_data*, short int)"

1 0x00000000005ea636 in Alarmud::cleric (ch=0x18dd610, cmd=0, arg=0x6d71ac "", mob=0x18dd610, type=1) at /home/nebbie/Server/release/src/spec_procs2.cpp:1276

    vict = 0x5ad90c <Alarmud::SetStatus(char const*, char const*)+45>
    lspell = 0 '\000'
    healperc = 0 '\000'

2 0x000000000057fad3 in Alarmud::mobile_activity (ch=0x18dd610) at /home/nebbie/Server/release/src/mobact.cpp:425

    nRetVal = 0
    tmp_ch = 0x0
    k = 6
    __PRETTY_FUNCTION__ = "void Alarmud::mobile_activity(Alarmud::char_data*)"

3 0x00000000006730dc in Alarmud::TeleportPulseStuff (pulse=35724) at /home/nebbie/Server/release/src/utility.cpp:2639

    ch = 0x18dd610
    next = 0x18dd100
    tick = 1
    tm = 12
    rp = 0xf675f0
    dest = 0x0
    obj_object = 0x0
    temp_obj = 0x7f015491cff0 <__GI__IO_padn+160>
    apTeleportRoom = {0x7ffe75ca8510, 0x7ffe75ca8450, 0x100, 0x7ffe75ca86f8, 0x7ffe75ca7fa6, 0x7ffe75ca7fac, 0x7ffe75ca7fa8, 0x18, 0x7f01549b8384 <mcount+52>, 0x7ffe75ca7f54, 0x1b71801, 0x1b71800, 0x1b71800, 0x7ffe75ca7f54, 0x7f015574f160, 0x7f015468a618 <apr_vformatter+232>, 0x41529d <std::char_traits<char>::to_char_type(int const&)+13>, 0x7f015496a7b2 <parse_tzname+226>, 0x1, 0x43, 0x7ffe75ca82b0, 0x27, 0x75ca8058, 0xbfec80, 0xbfec90, 0x1796c80, 0x7ffe75ca8480, 0x7ffe75ca8480, 0xbff1e0, 0x7f015493253c <__GI___libc_free+76>, 0x7ffe75ca8480, 0x7ffe75ca8480, 0x4, 0x35, 0x7ffe75ca8058, 0x7ffe75ca81f0, 0x26, 0x7ffe75ca8200, 0x0, 0x1c, 0x1b04bf0, 0x69, 0x0, 0x1c, 0xbff200, 0x7f0154932184 <__GI___libc_malloc+84>, 0xbff1e0, 0x7f0155a6131e <log4cxx::helpers::LocaleCharsetEncoder::encode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, log4cxx::helpers::ByteBuffer&)+158>, 0x26, 0x7ffe75ca81f0, 0x7ffe75ca8200, 0x1b3b790, 0xbfcf60, 0xbff230, 0xbff220, 0x7f015493253c <__GI___libc_free+76>, 0xbfcf60, 0x7ffe75ca81f0, 0x31, 0x7ffe75ca8200, 0x7ffe75ca8280, 0x7f01549b8384 <mcount+52>, 0x2, 0x14, 0x2, 0x2, 0x2, 0x10, 0x14, 0x5888e0 <Alarmud::CountBits(int)+17>, 0x31, 0x7f0154693e1e <apr_file_write+270>, 0x30, 0x0, 0x7ffe75ca81b0, 0xbff6d0, 0x7ffe75ca81d0, 0x7ffe75ca8130, 0x7ffe75ca81a0, 0x7f0155a80e88 <log4cxx::helpers::FileOutputStream::write(log4cxx::helpers::ByteBuffer&, log4cxx::helpers::Pool&)+120>, 0x0, 0xc6738f3667016b00, 0x30, 0xbff5e0, 0x7ffe75ca81b0, 0xbfcf20, 0x7ffe75ca88c0, 0xbfcf40, 0x7ffe75ca81a0, 0x7f0155ac8e16 <log4cxx::rolling::CountingOutputStream::write(log4cxx::helpers::ByteBuffer&, log4cxx::helpers::Pool&)+22>, 0x7ffe75ca81b0, 0x7ffe75ca81b0, 0x7ffe75ca8630, 0x7f0155ab3d17 <log4cxx::helpers::OutputStreamWriter::write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, log4cxx::helpers::Pool&)+279>, 0x1aca2f4, 0xffffffffffffffff, 0x7ffe75ca81d0, 0x0, 0x0, 0x400, 0x2d34302d38313032, 0x35313a3531203430, 0x203633362e30353a, 0x7361656c2e2e2e5b, 0x62642f6372732f65, 0x207461207070632e, 0x2d205d3033323320, 0x204b434548434c20, 0x20676e6965657246, 0x6f6c472072616863, 0x412820726168746e, 0x317830203a524444, 0x202c306536636361, 0x323120636967616d, 0x7ffe0a293433, 0x0, 0x11, 0x100, 0xffffffffffffffff, 0x0, 0x1acc6e0, 0x125, 0xffff8001ffffffff, 0x7ffe75ca82cf, 0x4, 0x7f0154c717a0 <_IO_str_jumps>, 0x0, 0x0, 0x6e0000005b, 0x7ffe75ca83d8, 0x7ffe75ca83ec, 0xbffdab, 0x7ffe75ca83e8, 0x7f01549296ce <__GI__IO_default_xsputn+158>, 0x7ffe75ca8890, 0x7ffe75ca8880, 0x6e3960, 0x7ffe75ca89f8, 0x0, 0x7f01548fb92d <_IO_vfprintf_internal+1981>, 0x7ffe75ca83e6, 0x7ffe75ca83ec, 0x7ffe75ca83e8, 0x7ffe75ca83f8, 0x7ffe75ca83e8, 0x7ffe00000000, 0x0, 0x7ffe75ca8400, 0x0, 0x7ffe75ca8430, 0x0, 0x0, 0x23, 0x0, 0x7ffe75ca8410, 0x0, 0x6e395f, 0x7ffe00000000, 0x0, 0x23, 0x6e3965, 0x200000000, 0x7ffe75ca8460, 0x0, 0xffffffffffffffff, 0x200000000, 0x7ffe75ca88c0, 0x6e3965, 0xbff1e0, 0x35, 0x7ffe75ca8498, 0x7ffe75ca8630, 0x26, 0x7ffe75ca8640, 0x0, 0x3000000018, 0x7ffe75ca8ad0, 0x7ffe75ca8a10, 0xe, 0xd1, 0x7ffe75ca84c0, 0x7f0154932184 <__GI___libc_malloc+84>, 0xbff1e0, 0x7ffe75ca8630, 0xffff80018a357b41, 0x7ffe75ca84bf, 0x3, 0x330000000e, 0x0, 0x0, 0x6e0000005b, 0x0, 0x0, 0x7c00000077, 0x31, 0x7ffe75ca8630, 0x3a, 0x7ffe75ca8640, 0x0, 0x39...}
    iMaxTeleportRoom = 0
    __PRETTY_FUNCTION__ = "void Alarmud::TeleportPulseStuff(long unsigned int)"

4 0x00000000004a4027 in Alarmud::game_loop (s=0) at /home/nebbie/Server/release/src/comm.cpp:717

    input_set = {fds_bits = {0 <repeats 16 times>}}
    output_set = {fds_bits = {98304, 0 <repeats 15 times>}}
    exc_set = {fds_bits = {0 <repeats 16 times>}}
    last_time = {tv_sec = 1522854952, tv_usec = 136043}
    now = {tv_sec = 1522854951, tv_usec = 886421}
    timespent = {tv_sec = 0, tv_usec = 378}
    timeout = {tv_sec = 0, tv_usec = 0}
    null_time = {tv_sec = 0, tv_usec = 0}
    opt_time = {tv_sec = 0, tv_usec = 250000}
    comm = "memo 'energy drain'\000t\000e\000in\000o?\000e posso poisonarti\000nei\000maghi?\000i?\000ta\000proprio loro lol\000\000\000\000\000\000\300̼\000\000\000\000\000\020п\000\000\000\000\000\000\243\312u\376\177\000\000\360\242\312u\376\177\000\000\260̼\000\000\000\000\000\360\242\312u\376\177\000\000\001", '\000' <repeats 15 times>, "\360\242\312u\376\177\000"
    promptbuf = "Ambra H274 M82 V96 X-2011908 [T] */*>> \000>> \000\000/squarciato>> \000\000\000\071\071 $$c00112141640 $$c0001[*/* vs */*] $$c0015T $$c0007-\000\060\060\061\065$$c0007\000\000o roccia/sanguinante) ST\000iato) ST\000\000\000\000\360\243\312u\376\177\000\000 \245\312u\376\177\000\000\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000"...
    point = 0x0
    next_point = 0x0
    mask = 12614147
    idx = 36
    __PRETTY_FUNCTION__ = "void Alarmud::game_loop(int)"

5 0x00000000004a1b8a in Alarmud::run_the_game (port=4000) at /home/nebbie/Server/release/src/comm.cpp:332

    s = 0
    __PRETTY_FUNCTION__ = "void Alarmud::run_the_game(int)"

6 0x00000000004a0bd3 in Alarmud::run (port=4000, dir=0x7ffe75caa950 "lib") at /home/nebbie/Server/release/src/comm.cpp:304

    __PRETTY_FUNCTION__ = "int Alarmud::run(int, const char*)"
    fd = 0xbfdf00

7 0x000000000055df67 in Alarmud::main (argc=6, argv=0x7ffe75caae98) at /home/nebbie/Server/release/src/main.cpp:138

    port = 4000
    dir = "lib"
    server_name = "starting"
    comment = ""
    debug_level = 6
    opt = {static m_default_line_length = 80, m_caption = "Allowed options", m_line_length = 80, m_min_description_length = 40, m_options = std::vector of length 13, capacity 16 = {{px = 0xbfba10, pn = {pi_ = 0xbca440}}, {px = 0xbfba90, pn = {pi_ = 0xbca850}}, {px = 0xbfbb40, pn = {pi_ = 0xbca9f0}}, {px = 0xbfbc40, pn = {pi_ = 0xbcad30}}, {px = 0xbfbcc0, pn = {pi_ = 0xbcafe0}}, {px = 0xbfbdd0, pn = {pi_ = 0xbcb250}}, {px = 0xbfbe50, pn = {pi_ = 0xbcb590}}, {px = 0xbfbed0, pn = {pi_ = 0xbcb830}}, {px = 0xbfbf90, pn = {pi_ = 0xbcbaa0}}, {px = 0xbfbd40, pn = {pi_ = 0xbcbd10}}, {px = 0xbfc150, pn = {pi_ = 0xbcbed0}}, {px = 0xbfc1d0, pn = {pi_ = 0xbcc070}}, {px = 0xbfc280, pn = {pi_ = 0xbcc210}}}, belong_to_group = std::vector<bool> of length 13, capacity 64 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, groups = std::vector of length 0, capacity 0}
    positional = {m_names = std::vector of length 1, capacity 1 = {"port"}, m_trailing = ""}
    all = {static m_default_line_length = 80, m_caption = "All", m_line_length = 80, m_min_description_length = 40, m_options = std::vector of length 13, capacity 16 = {{px = 0xbfba10, pn = {pi_ = 0xbca440}}, {px = 0xbfba90, pn = {pi_ = 0xbca850}}, {px = 0xbfbb40, pn = {pi_ = 0xbca9f0}}, {px = 0xbfbc40, pn = {pi_ = 0xbcad30}}, {px = 0xbfbcc0, pn = {pi_ = 0xbcafe0}}, {px = 0xbfbdd0, pn = {pi_ = 0xbcb250}}, {px = 0xbfbe50, pn = {pi_ = 0xbcb590}}, {px = 0xbfbed0, pn = {pi_ = 0xbcb830}}, {px = 0xbfbf90, pn = {pi_ = 0xbcbaa0}}, {px = 0xbfbd40, pn = {pi_ = 0xbcbd10}}, {px = 0xbfc150, pn = {pi_ = 0xbcbed0}}, {px = 0xbfc1d0, pn = {pi_ = 0xbcc070}}, {px = 0xbfc280, pn = {pi_ = 0xbcc210}}}, belong_to_group = std::vector<bool> of length 13, capacity 64 = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, groups = std::vector of length 1, capacity 1 = {{px = 0xbfc370, pn = {pi_ = 0xbcc3b0}}}}
    vm = <incomplete type>
    __PRETTY_FUNCTION__ = "int Alarmud::main(int, char**)"
    fd = 0xbfd1b0

8 0x000000000055e5ba in main (argc=6, argv=0x7ffe75caae98) at /home/nebbie/Server/release/src/main.cpp:143

No locals.

alar77 commented 6 years ago

Controllando con gdb, nella catena di affected c'è in effeti un elemento che ha un next invalido: (gdb) print *ch->affected->next->next $10 = {type = 19168, duration = 434, modifier = 0, location = 28305616, bitvector = 0, next = 0x20}

0x20 è uno spazio, peraltro, forse questo aiuta a capire quando ci viene messo

alar77 commented 6 years ago

Btw, tutte quest liste linkate andrebbero trasformate in container.. vector o list