Closed wzdev-ci closed 15 years ago
Buginator commented
Can you try trunk or branches/2.1, and see if you have the same issue?
That backtrace isn't that helpful...
Also, list your hardware specs.
arthur.huillet@... commented
Hi,
sorry for the delay. I'm the original reporter of this bug and will look into what you ask during the weekend.
Hardware specs: Nvidia Geforce 4Ti with binary drivers (96xx), Athlon XP 2GHz, 1GB RAM.
anonymous commented
Hi,
further investigation won't be possible in the forthcoming days after all (bad automake version that I cannot/do not wish to change), sorry for the incomplete bug report.
Note that I "worked around" the crash by commenting out the call to createHeader in dbgDumpInit() (lib/exceptionhandler/dumpinfo.cpp), and the game seems to work fine like that.
Giel edited the issue description
Giel commented
Wrapped the backtrace in a code block
anonymous commented
Hi,
Replying to Warzone2100/old-trac-import#65 (comment:1):
Can you try trunk or branches/2.1, and see if you have the same issue?
That backtrace isn't that helpful...
I have just tried with rev. 6126, I have the exact same problem:
#0 0xa7911d7b in std::locale::operator= () from /usr/i486-slackware-linux/lib/libstdc++.so.5
#1 0xa790aab1 in std::ios_base::_M_init () from /usr/i486-slackware-linux/lib/libstdc++.so.5
#2 0xa7908d94 in std::basic_ios<char, std::char_traits<char> >::init () from /usr/i486-slackware-linux/lib/libstdc++.so.5
#3 0x08244e66 in createHeader (argc=2, argv=0xafa8bed4) at /usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../include/c++/4.2.4/sstream:414
#4 0x08243c43 in setupExceptionHandler (argc=2, argv=0xafa8bed4) at exceptionhandler.c:708
#5 0x0810c46e in main (argc=2, argv=0xafa8bed4) at main.c:830
What extra information will you need?
Buginator commented
If you can, compile a debug build (should be the default), then run it under gdb, and post the 'bt full' output.
You may also want to update to beta 5.
anonymous commented
Hi,
(gdb) bt full
#0 0xa798ed7b in std::locale::operator= () from /usr/i486-slackware-linux/lib/libstdc++.so.5
No symbol table info available.
#1 0xa7987ab1 in std::ios_base::_M_init () from /usr/i486-slackware-linux/lib/libstdc++.so.5
No symbol table info available.
#2 0xa7985d94 in std::basic_ios<char, std::char_traits<char> >::init () from /usr/i486-slackware-linux/lib/libstdc++.so.5
No symbol table info available.
#3 0x08244e66 in createHeader (argc=1, argv=0xafe69ab4) at /usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../include/c++/4.2.4/sstream:414
os = <incomplete type>
physfs_version # {major 153 '\231', minor # 230 'æ', patch 175 '¯'}
__FUNCTION__ = "createHeader"
#4 0x08243c43 in setupExceptionHandler (argc=1, argv=0xafe69ab4) at exceptionhandler.c:708
programCommand = 0x0
currentTime = 136594832
__PRETTY_FUNCTION__ = "setupExceptionHandler"
#5 0x0810c46e in main (argc=1, argv=0xafe69ab4) at main.c:830
__FUNCTION__ = "main"
__PRETTY_FUNCTION__ = "main"
As I said this is with rev. 6126, isn't that more recent than beta5 ?
Giel changed operating_system which not transferred by tractive
Giel changed milestone from ` to
2.1`
Giel uploaded file 0001-Force-using-the-C-compiler-as-linker.patch
(1.1 KiB)
Force using the C++ compiler as linker
Giel commented
Can you try applying attachment:0001-Force-using-the-C-compiler-as-linker.patch to see whether it fixes your problem?
Giel commented
Also looking at this line:
#3 0x08244e66 in createHeader (argc=1, argv=0xafe69ab4) at /usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../include/c++/4.2.4/sstream:414
It appears that something goes wrong in your compiler, because that function is found in [browser:trunk/lib/exceptionhandler/dumpinfo.cpp lib/exceptionhandler/dumpinfo.cpp] not in
PS [6126] is newer indeed.
anonymous commented
Hi,
yes, this does fix the problem.
Could you please explain what this changes and why it works? I'd like to understand the issue. I am quite puzzled :)
anonymous commented
(note that the game starts but segfaults later on, below is a backtrace, I can post that as a separate ticket if you feel this is completely unrelated)
(the crash is inside freetype, the backtrace is useless:)
(gdb) bt full
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
Thanks!
Giel changed status from new
to accepted
Giel changed owner from ` to
Giel`
Giel commented
Replying to Warzone2100/old-trac-import#65 (comment:12):
(note that the game starts but segfaults later on, below is a backtrace, I can post that as a separate ticket if you feel this is completely unrelated)
(the crash is inside freetype, the backtrace is useless:)
Yes on both accounts, please open a separate ticket for this issue as its unrelated, and the back trace is indeed useless (please include it in the ticket though, if only to demonstrate its uselessness).
Giel changed status from accepted
to closed
Giel changed resolution from ` to
fixed`
Giel changed component from other
to Build system
Giel changed title from Wz2100 2.1beta4 crashes on startup
to warzone crashes on startup when initializing the exception handler
Giel commented
Replying to Warzone2100/old-trac-import#65 (comment:11):
yes, this does fix the problem.
Nice, that confirms my suspicions of the cause.
Could you please explain what this changes and why it works? I'd like to understand the issue. I am quite puzzled :)
That patch forces automake to use the C++ linker instead of the C linker. The C++ linker should include some initialisation code which the C++ library requires. Not including this can cause some nasty and strange problems, as you yourself experienced.
Fixed in [6142] and [6143].
Buginator removed milestone (was 2.1
)
Buginator commented
Milestone 2.1 deleted
Per Inge Mathisen per.mathisen@... commented
In https://github.com/Warzone2100/warzone2100/commit/dee354faa76b931719cf255bf8a09759c81e4d6b:
#CommitTicketReference repository="" revision="dee354faa76b931719cf255bf8a09759c81e4d6b"
Merge pull request #65 from ckorn/missing_arg
Add format to snprintf
resolution_fixed
type_bug
| by arthur.huillet@...Hello,
warzone2100 crashes immediately with a segfault whenever I try to start it.
$ warzone2100 Segmentation fault
Here is the backtrace:
Issue migrated from trac:65 at 2022-04-15 17:41:45 -0700