Jump to content

crash with latest autobuild from ubuntu ppa (r12679)


luziferius
 Share

Recommended Posts

I have a problem with the latest 0ad.dev ppa autobuild (r12679) and Ubuntu 12.10

namely a Segfault whenever I try to start a singleplayer game(multiplayer not testet).

it crashes at 30% map loading state with a Segfault, whatever I try to do(launch with default settings when you click on singleplayer or some RMS without AIs, whatever)

i’ve installed the dbg package and run it in gdb with the following commands


gdb /usr/games/pyrogenesis
# gdb commands:
run
bt
info registers
disass $pc-32, $pc+32
quit

and thats the output:

first run:


gdb /usr/games/pyrogenesis
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 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-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/games/pyrogenesis...Reading symbols from /usr/lib/debug/usr/games/pyrogenesis...done.
done.
(gdb) run
Starting program: /usr/games/pyrogenesis
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Cache: 500 (total: 16049) MiB
TIMER| InitVfs: 64.632 ms
[New Thread 0x7fffcba94700 (LWP 29290)]
[Thread 0x7fffcba94700 (LWP 29290) exited]
[New Thread 0x7fffcba94700 (LWP 29291)]
[New Thread 0x7fffc7292700 (LWP 29292)]
Sound: AlcInit success, using PulseAudio Default
[New Thread 0x7fffc6a91700 (LWP 29293)]
TIMER| InitScripting: 9.6774 ms
TIMER| CONFIG_Init: 10.8071 ms
[New Thread 0x7fffc5aeb700 (LWP 29294)]
[New Thread 0x7fffc52ea700 (LWP 29295)]
TIMER| RunHardwareDetection: 19.0947 ms
TIMER| write_sys_info: 60.2797 ms
[New Thread 0x7fffb5719700 (LWP 29298)]
TIMER| InitRenderer: 4.43332 ms
TIMER| ps_console: 2.08453 ms
TIMER| ps_lang_hotkeys: 994.952 us
TIMER| common/setup.xml: 956.494 us
TIMER| common/styles.xml: 108.674 us
TIMER| common/sprite1.xml: 2.24668 ms
TIMER| common/init.xml: 1.84008 ms
TIMER| common/common_sprites.xml: 2.30779 ms
TIMER| common/common_styles.xml: 268.205 us
TIMER| pregame/sprites.xml: 446.957 us
TIMER| pregame/styles.xml: 42.404 us
TIMER| pregame/mainmenu.xml: 6.98297 ms
TIMER| common/global.xml: 398.096 us
Using Xcursor to sys_cursor_create 32 x 32 cursor
TIMER| common/setup.xml: 612.971 us
TIMER| common/styles.xml: 28.007 us
TIMER| common/sprite1.xml: 1.54549 ms
TIMER| common/common_sprites.xml: 1.91989 ms
TIMER| common/common_styles.xml: 224.458 us
TIMER| gamesetup/setup.xml: 98.885 us
TIMER| gamesetup/sprites.xml: 47.195 us
TIMER| gamesetup/styles.xml: 50.792 us
TIMER| gamesetup/gamesetup.xml: 12.7773 ms
[New Thread 0x7fffafdff700 (LWP 7170)]
[New Thread 0x7fffaefff700 (LWP 7171)]
TIMER| common/setup.xml: 680.514 us
TIMER| common/styles.xml: 30.492 us
TIMER| common/sprite1.xml: 1.39943 ms
TIMER| common/init.xml: 1.12185 ms
TIMER| common/common_sprites.xml: 1.79154 ms
TIMER| common/common_styles.xml: 215.784 us
TIMER| loading/styles.xml: 97.528 us
TIMER| loading/sprites.xml: 299.817 us
TIMER| loading/loading.xml: 1.13248 ms
TIMER| common/global.xml: 289.473 us
Using Xcursor to sys_cursor_create 32 x 32 cursor
Program received signal SIGSEGV, Segmentation fault.
tga_is_hdr (file=0x0) at ../../../source/lib/tex/tex_tga.cpp:83
83 ../../../source/lib/tex/tex_tga.cpp: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0 tga_is_hdr (file=0x0) at ../../../source/lib/tex/tex_tga.cpp:83
#1 0x000000000081d317 in tex_codec_for_header (file=0x0, file_size=<optimized out>, c=0x7fffffffd7d0) at ../../../source/lib/tex/tex_codec.cpp:88
#2 0x0000000000820600 in tex_decode (data=..., dataSize=140737488345984, t=0x7fffffffd850) at ../../../source/lib/tex/tex.cpp:720
#3 0x000000000068948b in SkyManager::LoadSkyTextures (this=0x184bb50) at ../../../source/renderer/SkyManager.cpp:120
#4 0x0000000000617a59 in CXMLReader::ReadEnvironment (this=0x4fca280, parent=...) at ../../../source/graphics/MapReader.cpp:595
#5 0x000000000061c661 in CXMLReader::ProgressiveRead (this=0x4fca280) at ../../../source/graphics/MapReader.cpp:998
#6 0x000000000061c972 in CMapReader::ReadXML (this=0x25a2400) at ../../../source/graphics/MapReader.cpp:1082
#7 0x0000000000610584 in MemFunThunk<CMapReader> (param=0x270c040) at ../../../source/ps/LoaderThunks.h:60
#8 0x0000000000550f58 in LDR_ProgressiveLoad (time_budget=<optimized out>, description=0x7fffffffdfd0 L"\xffffe020翿\x7de8f4", max_chars=100, progress_percent=0x7fffffffdfc8) at ../../../source/ps/Loader.cpp:228
#9 0x000000000041cd84 in ProgressiveLoad () at ../../../source/main.cpp:237
#10 0x000000000041dd39 in Frame () at ../../../source/main.cpp:347
#11 RunGameOrAtlas (argc=<optimized out>, argv=<optimized out>) at ../../../source/main.cpp:507
#12 0x0000000000413997 in main (argc=1, argv=0x7fffffffe5e8) at ../../../source/main.cpp:550
(gdb) info registers
rax 0x0 0
rbx 0x0 0
rcx 0x7ffff4979740 140737296963392
rdx 0x7fffffffd7d0 140737488345040
rsi 0x7fffffffdb80 140737488345984
rdi 0x0 0
rbp 0x7fffffffd780 0x7fffffffd780
rsp 0x7fffffffd770 0x7fffffffd770
r8 0x740000006e 498216206446
r9 0x640000002e 429496729646
r10 0x0 0
r11 0x4 4
r12 0x7fffffffd7d0 140737488345040
r13 0x7fffffffd950 140737488345424
r14 0x0 0
r15 0x1b 27
rip 0x820da7 0x820da7 <tga_is_hdr(uint8_t const*)+23>
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) disass $pc-32, $pc+32
Dump of assembler code from 0x820d87 to 0x820dc7:
0x0000000000820d87: nopl %cs:0x0(%rax,%rax,1)
0x0000000000820d90 <tga_is_hdr(uint8_t const*)+0>: push %rbp
0x0000000000820d91 <tga_is_hdr(uint8_t const*)+1>: mov %rsp,%rbp
0x0000000000820d94 <tga_is_hdr(uint8_t const*)+4>: sub $0x10,%rsp
0x0000000000820d98 <tga_is_hdr(uint8_t const*)+8>: mov %fs:0x28,%rax
0x0000000000820da1 <tga_is_hdr(uint8_t const*)+17>: mov %rax,-0x8(%rbp)
0x0000000000820da5 <tga_is_hdr(uint8_t const*)+21>: xor %eax,%eax
=> 0x0000000000820da7 <tga_is_hdr(uint8_t const*)+23>: cmpb $0x0,0x1(%rdi)
0x0000000000820dab <tga_is_hdr(uint8_t const*)+27>: jne 0x820db9 <tga_is_hdr(uint8_t const*)+41>
0x0000000000820dad <tga_is_hdr(uint8_t const*)+29>: movzbl 0x2(%rdi),%eax
0x0000000000820db1 <tga_is_hdr(uint8_t const*)+33>: sub $0x2,%eax
0x0000000000820db4 <tga_is_hdr(uint8_t const*)+36>: cmp $0x1,%al
0x0000000000820db6 <tga_is_hdr(uint8_t const*)+38>: setbe %al
0x0000000000820db9 <tga_is_hdr(uint8_t const*)+41>: mov -0x8(%rbp),%rdx
0x0000000000820dbd <tga_is_hdr(uint8_t const*)+45>: xor %fs:0x28,%rdx
0x0000000000820dc6 <tga_is_hdr(uint8_t const*)+54>: jne 0x820dca <tga_is_hdr(uint8_t const*)+58>
End of assembler dump.
(gdb) quit
A debugging session is active.
Inferior 1 [process 29287] will be killed.
Quit anyway? (y or n) y

and a second run:


gdb /usr/games/pyrogenesis
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 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-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/games/pyrogenesis...Reading symbols from /usr/lib/debug/usr/games/pyrogenesis...done.
done.
(gdb) run
Starting program: /usr/games/pyrogenesis
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Cache: 500 (total: 16049) MiB
TIMER| InitVfs: 56.5752 ms
[New Thread 0x7fffcba94700 (LWP 14291)]
[Thread 0x7fffcba94700 (LWP 14291) exited]
[New Thread 0x7fffcba94700 (LWP 14292)]
[New Thread 0x7fffc7292700 (LWP 14293)]
Sound: AlcInit success, using PulseAudio Default
[New Thread 0x7fffc6a91700 (LWP 14294)]
TIMER| InitScripting: 9.58469 ms
TIMER| CONFIG_Init: 7.48273 ms
[New Thread 0x7fffc5aeb700 (LWP 14295)]
[New Thread 0x7fffc52ea700 (LWP 14296)]
TIMER| RunHardwareDetection: 19.6908 ms
TIMER| write_sys_info: 133.184 ms
[New Thread 0x7fffb5719700 (LWP 14302)]
TIMER| InitRenderer: 7.20418 ms
TIMER| ps_console: 5.5749 ms
TIMER| ps_lang_hotkeys: 2.47102 ms
TIMER| common/setup.xml: 2.46552 ms
TIMER| common/styles.xml: 148.226 us
TIMER| common/sprite1.xml: 1.73454 ms
TIMER| common/init.xml: 1.32611 ms
TIMER| common/common_sprites.xml: 2.00087 ms
TIMER| common/common_styles.xml: 264.769 us
TIMER| pregame/sprites.xml: 428.555 us
TIMER| pregame/styles.xml: 40.655 us
TIMER| pregame/mainmenu.xml: 6.34291 ms
TIMER| common/global.xml: 366.545 us
Using Xcursor to sys_cursor_create 32 x 32 cursor
TIMER| common/setup.xml: 615.291 us
TIMER| common/styles.xml: 27.226 us
TIMER| common/sprite1.xml: 1.61376 ms
TIMER| common/common_sprites.xml: 1.74892 ms
TIMER| common/common_styles.xml: 224.981 us
TIMER| gamesetup/setup.xml: 100.565 us
TIMER| gamesetup/sprites.xml: 46.584 us
TIMER| gamesetup/styles.xml: 51.062 us
TIMER| gamesetup/gamesetup.xml: 12.8493 ms
[New Thread 0x7fffaffff700 (LWP 14778)]
[New Thread 0x7fffaf5ff700 (LWP 14779)]
TIMER| common/setup.xml: 724.972 us
TIMER| common/styles.xml: 25.93 us
TIMER| common/sprite1.xml: 1.54725 ms
TIMER| common/init.xml: 1.1141 ms
TIMER| common/common_sprites.xml: 1.65693 ms
TIMER| common/common_styles.xml: 200.01 us
TIMER| loading/styles.xml: 86.13 us
TIMER| loading/sprites.xml: 259.069 us
TIMER| loading/loading.xml: 1.07778 ms
TIMER| common/global.xml: 251.023 us
Using Xcursor to sys_cursor_create 32 x 32 cursor
[New Thread 0x7fffae5ff700 (LWP 14791)]
[New Thread 0x7fffaddde700 (LWP 14792)]
[Thread 0x7fffae5ff700 (LWP 14791) exited]
TIMER| ParseTerrain: 4.54619 ms
Program received signal SIGSEGV, Segmentation fault.
tga_is_hdr (file=0x0) at ../../../source/lib/tex/tex_tga.cpp:83
83 ../../../source/lib/tex/tex_tga.cpp: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0 tga_is_hdr (file=0x0) at ../../../source/lib/tex/tex_tga.cpp:83
#1 0x000000000081d317 in tex_codec_for_header (file=0x0, file_size=<optimized out>, c=0x7fffffffdaf0) at ../../../source/lib/tex/tex_codec.cpp:88
#2 0x0000000000820600 in tex_decode (data=..., dataSize=40696400, t=0x7fffffffdb70) at ../../../source/lib/tex/tex.cpp:720
#3 0x000000000068948b in SkyManager::LoadSkyTextures (this=0x184bb50) at ../../../source/renderer/SkyManager.cpp:120
#4 0x000000000061383a in CMapReader::ParseEnvironment (this=0x223b850) at ../../../source/graphics/MapReader.cpp:1329
#5 0x0000000000610584 in MemFunThunk<CMapReader> (param=0x25d4e00) at ../../../source/ps/LoaderThunks.h:60
#6 0x0000000000550f58 in LDR_ProgressiveLoad (time_budget=<optimized out>, description=0x7fffffffdfd0 L"\xffffe020翿\x7de8f4", max_chars=100, progress_percent=0x7fffffffdfc8) at ../../../source/ps/Loader.cpp:228
#7 0x000000000041cd84 in ProgressiveLoad () at ../../../source/main.cpp:237
#8 0x000000000041dd39 in Frame () at ../../../source/main.cpp:347
#9 RunGameOrAtlas (argc=<optimized out>, argv=<optimized out>) at ../../../source/main.cpp:507
#10 0x0000000000413997 in main (argc=1, argv=0x7fffffffe5e8) at ../../../source/main.cpp:550
(gdb) info registers
rax 0x0 0
rbx 0x0 0
rcx 0x7ffff4979740 140737296963392
rdx 0x7fffffffdaf0 140737488345840
rsi 0x26cfa50 40696400
rdi 0x0 0
rbp 0x7fffffffdaa0 0x7fffffffdaa0
rsp 0x7fffffffda90 0x7fffffffda90
r8 0x740000006e 498216206446
r9 0x640000002e 429496729646
r10 0x0 0
r11 0x3 3
r12 0x7fffffffdaf0 140737488345840
r13 0x7fffffffdc70 140737488346224
r14 0x0 0
r15 0x17 23
rip 0x820da7 0x820da7 <tga_is_hdr(uint8_t const*)+23>
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) disass $pc-32, $pc+32
Dump of assembler code from 0x820d87 to 0x820dc7:
0x0000000000820d87: nopl %cs:0x0(%rax,%rax,1)
0x0000000000820d90 <tga_is_hdr(uint8_t const*)+0>: push %rbp
0x0000000000820d91 <tga_is_hdr(uint8_t const*)+1>: mov %rsp,%rbp
0x0000000000820d94 <tga_is_hdr(uint8_t const*)+4>: sub $0x10,%rsp
0x0000000000820d98 <tga_is_hdr(uint8_t const*)+8>: mov %fs:0x28,%rax
0x0000000000820da1 <tga_is_hdr(uint8_t const*)+17>: mov %rax,-0x8(%rbp)
0x0000000000820da5 <tga_is_hdr(uint8_t const*)+21>: xor %eax,%eax
=> 0x0000000000820da7 <tga_is_hdr(uint8_t const*)+23>: cmpb $0x0,0x1(%rdi)
0x0000000000820dab <tga_is_hdr(uint8_t const*)+27>: jne 0x820db9 <tga_is_hdr(uint8_t const*)+41>
0x0000000000820dad <tga_is_hdr(uint8_t const*)+29>: movzbl 0x2(%rdi),%eax
0x0000000000820db1 <tga_is_hdr(uint8_t const*)+33>: sub $0x2,%eax
0x0000000000820db4 <tga_is_hdr(uint8_t const*)+36>: cmp $0x1,%al
0x0000000000820db6 <tga_is_hdr(uint8_t const*)+38>: setbe %al
0x0000000000820db9 <tga_is_hdr(uint8_t const*)+41>: mov -0x8(%rbp),%rdx
0x0000000000820dbd <tga_is_hdr(uint8_t const*)+45>: xor %fs:0x28,%rdx
0x0000000000820dc6 <tga_is_hdr(uint8_t const*)+54>: jne 0x820dca <tga_is_hdr(uint8_t const*)+58>
End of assembler dump.
(gdb) quit
A debugging session is active.
Inferior 1 [process 14287] will be killed.
Quit anyway? (y or n) y

the error


83 ../../../source/lib/tex/tex_tga.cpp: Datei oder Verzeichnis nicht gefunden.

is a file-not-found error

========================

and another small thing:

I wanted to play a round, so I tried to return to the Alpha XI package in your 0ad ppa and failed

fixing that took me a while…

I could not install the Alpha XI packages because of unmeetable dependencies

I downloaded the files from http://ppa.launchpad...tu/pool/main/0/ and installed them via dpkg

i got


dpkg: Abhängigkeitsprobleme verhindern Konfiguration von 0ad:
0ad hängt ab von libboost-filesystem1.49.0 (>= 1.49.0-1); aber:
Paket libboost-filesystem1.49.0 ist nicht installiert.
0ad hängt ab von libboost-signals1.49.0 (>= 1.49.0-1); aber:
Paket libboost-signals1.49.0 ist nicht installiert.

that says that 0ad package depends on the currently not installed libboost-filesystem1.49.0 and libboost-signals1.49.0 packages (note that the dev build does not depend on them, and the version number in the package name, a normally uncommon thing…)

however, when I tried to install those via apt-get install libboost-filesystem1.49.0 libboost-signals1.49.0, I got


Paket libboost-filesystem1.49.0 ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.

Paket libboost-signals1.49.0 ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.

E: Paket »libboost-filesystem1.49.0« hat keinen Installationskandidaten
E: Paket »libboost-signals1.49.0« hat keinen Installationskandidaten

that says that those 2 packages are referenced by a package, but are unavailable and cannot be installed

I’ve returned to the ubuntu 12.04 packages, since those work

I can play now :roman:

Link to comment
Share on other sites

that was the first thing i had done

purged everything user-related(.cache, .config, .local, etc) i could find (except for the feedback user ID)

no mods or something installed

then the only real issue is that the release package depends on non-existing packages

(at least that is what my system tells me, but idk why no-one else noticed that; I assume that it is a bug on my side)

Odd thing is that the sky manager is calling stuff related to .tga files, even though none of the sky images are tga files.

that seems to be an interesting catch… :wink2:

Edited by luziferius
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...