Topic: widelands crash on x86_64 AMD Phenom(tm) II X4 945
uhai Topic Opener |
Posted at: 2010-05-23, 08:40
This is the output from "strace widelands": poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLIN}]) read(5, "\1\1\"\1\0\0\0\0 \0 \3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32 read(5, 0x20086a4, 4096) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}]) writev(6, [{"<\3\2\0\0\0@\5+\0\1\0", 12}, {NULL, 0}, {"", 0}], 3) = 12 poll([{fd=6, events=POLLIN}], 1, -1) = 1 ([{fd=6, revents=POLLIN}]) read(6, "\1\1\366\5\0\0\0\0 \0 \3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32 read(6, 0x201a294, 4096) = -1 EAGAIN (Resource temporarily unavailable) close(6) = 0 poll([{fd=5, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=5, revents=POLLIN|POLLOUT}]) read(5, "\34\0\"\1\3\0\0\5\246\1\0\0\350x&\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32 writev(5, [{"<\5\2\0\0\0\0\5+\1\1\0", 12}, {NULL, 0}, {"", 0}], 3) = 12 poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLIN}]) read(5, "\1\1$\1\0\0\0\0 \0 \3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32 read(5, 0x20086a4, 4096) = -1 EAGAIN (Resource temporarily unavailable) close(5) = 0 munmap(0x7feef0b59000, 2130312) = 0 munmap(0x7feef0f6c000, 2169416) = 0 rt_sigaction(SIGSEGV, NULL, {SIG_DFL, [SEGV], SA_RESTORER|SA_RESTART, 0x7feef2e583a0}, = 0 rt_sigaction(SIGBUS, NULL, {0x7feef524ed40, [], SA_RESTORER, 0x7feef5038df0}, = 0 rt_sigaction(SIGBUS, {SIG_DFL, [], SA_RESTORER, 0x7feef5038df0}, NULL, = 0 rt_sigaction(SIGFPE, NULL, {0x7feef524ed40, [], SA_RESTORER, 0x7feef5038df0}, = 0 rt_sigaction(SIGFPE, {SIG_DFL, [], SA_RESTORER, 0x7feef5038df0}, NULL, = 0 rt_sigaction(SIGQUIT, NULL, {0x7feef524ed40, [], SA_RESTORER, 0x7feef5038df0}, = 0 rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7feef5038df0}, NULL, = 0 tgkill(7396, 7396, SIGSEGV) = 0 rt_sigreturn(0x1ce4) = 7455824 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Speicherzugriffsfehler und das gibt uname -a: Linux Tux 2.6.31-gentoo-r10 #2 SMP Sun Apr 4 22:15:33 CEST 2010 x86_64 AMD Phenom(tm) II X4 945 Processor AuthenticAMD GNU/Linux Der Editor läuft... ? Nach Auswahl des Spiels ist die Karte kurz zu sehen, dann crash! Mein System ist aktuell, revdep-rebuild hat auch ncihts gebracht. Was kann ich tun? Welche Info braucht Ihr noch? uhai Top Quote |
ixprefect |
Posted at: 2010-05-23, 14:05
Wichtiger ist, welche Version von Widelands du verwendest. Abstuerze dieser Art liegen sehr oft daran, dass Inkompatibilitaeten bei den gelinkten Shared Libraries existieren. Also: verwendest du ein binaeres Paket, oder kompilierst du selber? In beiden Faellen: genau welche Datei hast du heruntergerladen? Von wo? Ausserdem: ein Backtrace (mit gdb) hilft in der Regel mehr als ein strace. Auch waere hilfreich zu wissen, was du genau gemachst hast, bevor der Fehler aufgetreten ist. Edited: 2010-05-23, 14:05
Top Quote |
uhai Topic Opener |
Posted at: 2010-05-23, 14:26
uhai@Tux ~ $ eix -I widelands [I] games-strategy/widelands Available versions: (~)0.0.14 Installed versions: 0.0.14(23:18:55 24.01.2010) Homepage: http://www.widelands.org/ Description: A game similar to Settlers 2 Ich habe widelands mit emerge aus dem Portage-tree installiert, d.h. auf meinem Rechner kompiliert. gdb widelands warning: Can not parse XML syscalls information; XML support was disabled at compile time. GNU gdb (Gentoo 7.0.1 p1) 7.0.1 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: http://bugs.gentoo.org/... Reading symbols from /usr/games/bin/widelands...(no debugging symbols found)...done. (gdb) Hilft das so schon weiter?, oder muss ich widelands mit USE=debug neu emergen? uhai Top Quote |
ixprefect |
Posted at: 2010-05-23, 14:59
Angesichts der Tatsache, dass build15 schon seit einer Weile veroeffentlich ist, koenntest du den einmal ausprobieren? Mit Backtrace in gdb meinte ich: $ gdb widelands ... (gdb) run ... das Spiel spielen (wichtig: im windowed mode, nicht fullscreen!) bis du zu dem Absturz kommst. Dann.. (gdb) bt Dann wird dir der Backtrace des Absturzes angezeigt. Top Quote |
uhai Topic Opener |
Posted at: 2010-05-23, 19:59
ok, here we go: uhai@Tux ~ $ gdb widelands warning: Can not parse XML syscalls information; XML support was disabled at compile time.
GNU gdb (Gentoo 7.0.1 p1) 7.0.1 hw avail:0Graphics: flags: 0
[New Thread 0x7ffff1b86910 (LWP 6492)]
[] Section [global], key 'EXENAME' not used (did you spell the name correctly?)
Sound_Handler: loaded song "music/intro_00.ogg" hw avail:0Graphics: flags: 0
No version file found Program received signal SIGSEGV, Segmentation fault. 0x0000000000000031 in ?? () und der Backtrace: (gdb) bt 0 0x0000000000000031 in ?? ()1 0x000000000052d7d0 in ?? ()2 0x000000000050ea80 in ?? ()3 0x0000000000529db5 in ?? ()4 0x0000000000503a71 in ?? ()5 0x000000000052694a in ?? ()6 0x00000000004f97c0 in ?? ()7 0x0000000000557982 in ?? ()8 0x0000000000545a2b in ?? ()9 0x00000000006ac546 in ?? ()10 0x00000000006adcc9 in ?? ()11 0x00000000004f78e9 in ?? ()12 0x0000000000455909 in ?? ()13 0x0000000000455e6e in ?? ()14 0x000000000045629a in ?? ()15 0x0000000000456805 in ?? ()16 0x000000000040b302 in ?? ()17 0x00007ffff5775a26 in ?? ()18 0x0000000000000000 in ?? ()Viel Spielen ist da nicht.. aber immerhin bleibt das Startbild auf dem Schirm, so dass ich die Landschaft auch mal ansehen kann Ich verwende halt das Build aus portage für Gentoo. Was handele ich mir ein, wenn ich abseits von Portage aktualisiere? uhai Top Quote |
ixprefect |
Posted at: 2010-05-23, 22:14
Ein paar Dinge:
Ansonsten kann dir vielleicht jemand anderes weiterhelfen, der sich mit Gentoo auskennt. Ein Stochern im Dunkeln waere auch: probiere mal unterschiedliche Einstellungen bzgl. Grafikaufloesung und Sound an/aus. Vielleicht bist du mit einer davon erfolgreicher. Top Quote |
uhai Topic Opener |
Posted at: 2010-05-24, 09:52
Danke ixprefect, für Deine Tips. USE=debug veranlasst den Compiler die Debuginformationen mit zu übersetzen. Das werde ich machen. Ich versuche irgendein Spiel zu starten. Alle Einstellmöglichkeiten (Auflösung, Ton, Schrift etc.) habe ich ausprobiert. Widelands crasht zuverlässig nach dem Laden des Spiels in dem Moment, wo die Karte auf dem Monitor erscheint. Build15 habe ich geholt, das übersetze ich jetzt mal und teste. Aber eigentlich möchte ich nicht außerhalb meines Paketmanagers (Portage) basteln... uhai <edit> build15 läuft, schon seit 10 Minuten... Danke schön, ich will mal sehen, ob ich dafür ein ebuild hinbekomme...</edit> Edited: 2010-05-24, 11:40
Top Quote |
timowi |
Posted at: 2010-05-24, 11:03
There was a serious bug in build 14: In picture.h boost was included with threads disabled but in the rest of the project without this option. This lead to crashes with x86_64 and optimizations enabled. The best way is to use build15. If you wan to use build14 you can compile with "-DBOOST_SP_DISABLE_THREADS" or remove the define BOOST_SP_DISABLE_THREADS from picture.h or compile without optimization. Timo Top Quote |
cami |
Posted at: 2010-06-06, 14:18
I modified the build14 ebuild until it worked (FOR ME) with build 15. The result is too crude to file it on gentoo, but it may help. For users new to gentoo:
============= Ebuild contents follow ==============
Edited: 2010-06-06, 14:20
Top Quote |
ixprefect |
Posted at: 2010-06-06, 16:01
Thank you, cami. Though why did you post that in this thread? I think it would be more useful to post it in a thread of its own, where people who are looking for Gentoo-related information will actually find it when they search for it. Top Quote |