#2 crash when configuration is not writable

open
nobody
None
5
2012-07-24
2012-07-24
No

When key_mapping.conf (and possibly configuration.conf) is not writable the game crashes on exit:

Saving configuration
terminate called after throwing an instance of 'char const*'

Program received signal SIGABRT, Aborted.
0x00007ffff6780c35 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00007ffff6780c35 in raise () from /lib/libc.so.6
#1 0x00007ffff67820b8 in abort () from /lib/libc.so.6
#2 0x00007ffff7057c6d in __gnu_cxx::__verbose_terminate_handler() ()
from /usr/lib/libstdc++.so.6
#3 0x00007ffff7055d76 in ?? () from /usr/lib/libstdc++.so.6
#4 0x00007ffff7055da3 in std::terminate() () from /usr/lib/libstdc++.so.6
#5 0x00007ffff7055fce in __cxa_throw () from /usr/lib/libstdc++.so.6
#6 0x0000000000534db2 in Configuration::SauvegarderKeyMapping (
this=this@entry=0x7872d0)
at /var/abs/local/src/holyspirit-svn/src/holyspirit-build/Source/configuration.cpp:642
#7 0x0000000000535e96 in Configuration::Sauvegarder (this=0x7872d0)
at /var/abs/local/src/holyspirit-svn/src/holyspirit-build/Source/configuration.cpp:561
#8 0x000000000042c4e0 in main ()
at /var/abs/local/src/holyspirit-svn/src/holyspirit-build/Source/main.cpp:91

Discussion

  • When configuration.conf is not writable it is:

    #6 0x0000000000535ed4 in Configuration::Sauvegarder (this=0x7872d0)
    at /var/abs/local/src/holyspirit-svn/src/holyspirit-build/Source/configuration.cpp:611

    I found this bug in revision 2381 of the trunk.