Follow-up Comment #15, bug #22180 (project freeciv):

OS X Mavericks doesn't seem to be using GDB anymore so I used LLDB with a
different command to produce the backtrace:

dhall: '/save'
Process 57532 stopped
* thread #1: tid = 0x234bc, 0x0000000100062eb8 freeciv-server`sg_save_players
[inlined] sg_save_player_main(saving=0x0000000102606190,
plr=0x0000000101837200) + 290 at savegame2.c:4081, queue =
'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000100062eb8 freeciv-server`sg_save_players [inlined]
sg_save_player_main(saving=0x0000000102606190, plr=0x0000000101837200) + 290
at savegame2.c:4081
   4078     int j;
   4079 
   4080     for (tr = trait_begin(), j = 0; tr != trait_end(); tr =
trait_next(tr), j++) {
-> 4081       secfile_insert_int(saving->file, plr->ai_common.traits[tr].val,
   4082                          "player%d.trait.val%d", plrno, j);
   4083       secfile_insert_int(saving->file, plr->ai_common.traits[tr].mod,
   4084                          "player%d.trait.mod%d", plrno, j);

(lldb) bt all
* thread #1: tid = 0x234bc, 0x0000000100062eb8 freeciv-server`sg_save_players
[inlined] sg_save_player_main(saving=0x0000000102606190,
plr=0x0000000101837200) + 290 at savegame2.c:4081, queue =
'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000100062eb8 freeciv-server`sg_save_players [inlined]
sg_save_player_main(saving=0x0000000102606190, plr=0x0000000101837200) + 290
at savegame2.c:4081
    frame #1: 0x0000000100062d96
freeciv-server`sg_save_players(saving=0x0000000102606190) + 3430 at
savegame2.c:3527
    frame #2: 0x0000000100061387 freeciv-server`savegame2_save [inlined]
savegame2_save_real + 1793 at savegame2.c:606
    frame #3: 0x0000000100060c86
freeciv-server`savegame2_save(file=<unavailable>, save_reason=<unavailable>,
scenario=<unavailable>) + 470 at savegame2.c:505
    frame #4: 0x000000010007f5e1
freeciv-server`save_game(orig_filename=<unavailable>,
save_reason=0x000000010020ea2f, scenario=false) + 529 at srv_main.c:1291
    frame #5: 0x0000000100087f3a freeciv-server`handle_stdin_input_real
[inlined] save_command(caller=<unavailable>, arg=0x0000000000000000) + 52 at
stdinhand.c:744
    frame #6: 0x0000000100087f06
freeciv-server`handle_stdin_input_real(caller=<unavailable>,
str=<unavailable>, check=<unavailable>, read_recursion=<unavailable>) + 5414
at stdinhand.c:4314
    frame #7: 0x00000001000204b1
freeciv-server`handle_chat_msg_req(pconn=0x0000000100247d10,
message=<unavailable>) + 513 at handchat.c:343
    frame #8: 0x0000000100020ec8
freeciv-server`server_handle_packet(type=<unavailable>, packet=<unavailable>,
pplayer=<unavailable>, pconn=<unavailable>) + 72 at hand_gen.c:40
    frame #9: 0x0000000100080169
freeciv-server`server_packet_input(pconn=0x0000000100247d10,
packet=0x000000010183e600, type=26) + 617 at srv_main.c:1672
    frame #10: 0x0000000100074f06 freeciv-server`server_sniff_all_input
[inlined] incoming_client_packets(pconn=0x0000000100247d10) + 60 at
sernet.c:450
    frame #11: 0x0000000100074eca freeciv-server`server_sniff_all_input + 5386
at sernet.c:855
    frame #12: 0x00000001000826f5 freeciv-server`srv_main [inlined]
srv_running + 62 at srv_main.c:2409
    frame #13: 0x00000001000826b7 freeciv-server`srv_main + 5351 at
srv_main.c:2887
    frame #14: 0x0000000100001a76 freeciv-server`main(argc=<unavailable>,
argv=<unavailable>) + 1718 at civserver.c:454
(lldb) 


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22180>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to