Skip to content

[Linux] Segmentation fault on start xr_3da with AMD/ATI GPU #295

@ivan3182

Description

@ivan3182

Система: ArchLinux
Версия игры: GOG
Коммит: 06bb765

Версии пакетов:

glew 2.1.0-1
freeimage 3.18.0-2
liblockfile 1.14_1.1-1
openal 1.19.1-1
intel-tbb 2019-1
crypto++ 7.0.0-1
pugixml 1.9-1
libtheora 1.1.1-4
libogg 1.3.3-3
sdl 1.2.15-10
sdl2 2.0.9-1
lzo 2.10-2
libjpeg-turbo 2.0.1-1

Лог:

> $ ./xr_3da.sh -fsltx ../fsgame.ltx                                                                                                                                                           
free(): invalid pointer
./xr_3da.sh: строка 29: 14851 Аварийный останов         (стек памяти сброшен на диск) ${DEBUGGER} "${GAMEROOT}"/"${GAMEEXE}" "$@"

GDB:

> $ DEBUGGER="gdb --ex=r --args" ./xr_3da.sh -fsltx ../fsgame.ltx
GNU gdb (GDB) 8.2
Copyright (C) 2018 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /data/games/wine64/drive_c/CoP_GOG/bin-linux-debug/xr_3da...done.
Starting program: /data/games/wine64/drive_c/CoP_GOG/bin-linux-debug/xr_3da -fsltx ../fsgame.ltx
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
free(): invalid pointer

Program received signal SIGABRT, Aborted.
0x00007ffff5c35d7f in raise () from /usr/lib/libc.so.6
(gdb) break /data/build/xray-16/src/xrEngine/splash.cpp:32
Breakpoint 1 at 0x7ffff7f6bb50: file /data/build/xray-16/src/xrEngine/splash.cpp, line 32.
(gdb) start
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Temporary breakpoint 2 at 0x5555555562e0: file /data/build/xray-16/src/xr_3da/entry_point.cpp, line 77.
Starting program: /data/games/wine64/drive_c/CoP_GOG/bin-linux-debug/xr_3da -fsltx ../fsgame.ltx
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Temporary breakpoint 2, main (argc=3, argv=0x7fffffffe008) at /data/build/xray-16/src/xr_3da/entry_point.cpp:77
77      {
(gdb) continue
Continuing.

Breakpoint 1, splash::show (topmost=true) at /data/build/xray-16/src/xrEngine/splash.cpp:32
32      {
(gdb) s
33          if (logoWindow)
(gdb) s
45          SDL_CreateWindowAndRenderer(320, 240, SDL_WINDOW_RESIZABLE | SDL_WINDOW_BORDERLESS | SDL_WINDOW_HIDDEN, &logoWindow, &logoRenderer);
(gdb) s
free(): invalid pointer

Program received signal SIGABRT, Aborted.
0x00007ffff5c35d7f in raise () from /usr/lib/libc.so.6
(gdb)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions