#169 Dangling symlink in save/ crashes multiplayer

closed
nobody
None
3
2005-12-31
2005-10-12
Dennis Brakhane
No

I finally found the reason for the multiplayercrash:

Under Linux, when there exists a dangling symlink in
save, for example:

cd save
ln -s foo.sav bar.sav

and bar.sav doesn't exist, freeorion crashes when
multiplayer is chosen and the game is about to begin:

1129121590 ERROR : main() caught
exception(std::exception):
boost::filesystem::is_directory: "save/aa.sav": No such
file or directory
1129121590 ERROR : main() caught
exception(std::exception):
boost::filesystem::is_directory: "save/aa.sav": No such
file or directory
1129121590 FATAL : Initiating Exit (code 1 - error
termination)
./freeorion[0x806c66b]
[0xffffe420]
/usr/local/lib/libGiGiNet.so(NET2_TCPClose+0x87)[0xb79e0687]
./freeorion[0x82188bd]
./freeorion[0x8068674]
./freeorion[0x806e24b]
./freeorion[0x8092c86]
/lib/tls/libc.so.6(__libc_start_main+0xd0)[0xb762bec0]
./freeorion(_ZN2GG7ListBox12LDoubleClickERKNS_2PtEj+0x69)[0x8067f71]
pure virtual method called
terminate called without an active exception

Discussion

  • Zach Laine
    Zach Laine
    2005-10-13

    Logged In: YES
    user_id=729903

    I just tried to reproduce this and cannot. I don't see how
    .sav files can even be an issue in mutiplayer execution
    anyway. Did you mean .mps multiplayer save files?

     
  • Logged In: YES
    user_id=26932

    No, I mean a .sav file. As you can see in the errormessage,
    it seems like boost::filesystem::is_directory is called for
    each entry in the directory; and if this file does not
    exist, hell breaks loose.

     
    • priority: 5 --> 3
     
  • Zach Laine
    Zach Laine
    2005-12-09

    Logged In: YES
    user_id=729903

    I have never been able to reproduce this. Can you try again
    with the latest CVS?

     
  • Zach Laine
    Zach Laine
    2005-12-31

    • status: open --> closed
     
  • Zach Laine
    Zach Laine
    2005-12-31

    Logged In: YES
    user_id=729903

    I still have been unable to reproduce this, and so I'm
    closing it out.