Closed NebbieArcaneBot closed 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
Btw, tutte quest liste linkate andrebbero trasformate in container.. vector o list
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
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
No locals.