[Linux] Trine 2 crashes on startup on 1+TB XFS partition

For discussion about Trine 2, released in December 2011 on Windows, Mac, Xbox, PlayStation Network and later on Linux and Wii U.
shmerl
Posts: 36
Joined: Sun Aug 09, 2015 9:25 pm

[Linux] Trine 2 crashes on startup on 1+TB XFS partition

Postby shmerl » Sun Aug 09, 2015 9:50 pm

I tried running GOG release of Trine 2 on Linux (Debian testing x86_64) and it's crashing on startup (see below for a backtrace).

I suspected it's related to large XFS partition (mine is 1.9TB), which affects a number of games that aren't released in 64 bits natively. So I created a small loop XFS partition for a test, and the game launched normally. I reported this very bug for a number of games already, especially it was affecting the older version of Unity. One way to avoid such problems is to compile it with

Code: Select all

-D_FILE_OFFSET_BITS=64


Alternatively, you can just stop making 32 bit releases - they are already obsolete. Just make 64 bit ones.

Code: Select all

*** buffer overflow detected ***: ./bin/trine2_linux_32bit terminated
======= Backtrace: =========
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x6c6f3)[0xf65e86f3]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__fortify_fail+0x45)[0xf66762f5]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0xf83aa)[0xf66743aa]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__strcpy_chk+0x37)[0xf6673897]
./bin/trine2_linux_32bit[0x8c71ce8]
./bin/trine2_linux_32bit[0x8ca44cc]
./bin/trine2_linux_32bit[0x8bc6974]
./bin/trine2_linux_32bit[0x8420af9]
./bin/trine2_linux_32bit[0x842135d]
./bin/trine2_linux_32bit[0x841cf00]
./bin/trine2_linux_32bit[0x8414329]
./bin/trine2_linux_32bit[0x83f005a]
./bin/trine2_linux_32bit[0x8421a2d]
./bin/trine2_linux_32bit[0x83e3605]
./bin/trine2_linux_32bit[0x8d72f69]
./bin/trine2_linux_32bit[0x80ad0a1]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf3)[0xf6595a63]
./bin/trine2_linux_32bit[0x80c1cad]
======= Memory map: ========
08048000-0992e000 r-xp 00000000 08:03 6444206228                         /opt/games/trine2/game/bin/trine2_linux_32bit
0992e000-09930000 r-xp 018e5000 08:03 6444206228                         /opt/games/trine2/game/bin/trine2_linux_32bit
09930000-09937000 rwxp 018e7000 08:03 6444206228                         /opt/games/trine2/game/bin/trine2_linux_32bit
09937000-09a06000 rwxp 00000000 00:00 0
0b865000-1e895000 rwxp 00000000 00:00 0                                  [heap]
ca63d000-cc2fe000 rwxp 00000000 00:00 0
cc2fe000-cc6fe000 rwxs 18f8db000 00:06 23587                             /dev/nvidiactl
cc6fe000-cc7ff000 rwxp 00000000 00:00 0
cc7ff000-ccbff000 rwxs 3d9e4c000 00:06 23587                             /dev/nvidiactl
ccbff000-ccfff000 rwxs 3e9e48000 00:06 23587                             /dev/nvidiactl
ccfff000-cd3ff000 rwxs 18f960000 00:06 23587                             /dev/nvidiactl
cd3ff000-cd800000 rwxp 00000000 00:00 0
cd800000-cd860000 rwxp 00000000 00:00 0
cd860000-cd900000 ---p 00000000 00:00 0
cd921000-cd9a2000 rwxp 00000000 00:00 0
cd9a2000-cd9a3000 ---p 00000000 00:00 0
cd9a3000-ce1a3000 rwxp 00000000 00:00 0
ce1a3000-ce1a4000 ---p 00000000 00:00 0
ce1a4000-ce9a4000 rwxp 00000000 00:00 0
ce9a4000-ce9a5000 ---p 00000000 00:00 0
ce9a5000-cf1a5000 rwxp 00000000 00:00 0
cf1a5000-cf1a6000 ---p 00000000 00:00 0
cf1a6000-cf9a6000 rwxp 00000000 00:00 0
cf9fb000-cfcff000 rwxp 00000000 00:00 0
cfd7b000-d0300000 rwxp 00000000 00:00 0
d0300000-d0500000 rwxs ba757000 00:06 23587                              /dev/nvidiactl
d0500000-d0521000 rwxp 00000000 00:00 0
d0521000-d0600000 ---p 00000000 00:00 0
d0640000-d0641000 ---p 00000000 00:00 0
d0641000-d0e41000 rwxp 00000000 00:00 0                                  [stack:8297]
d0e41000-d11e9000 r-xp 00000000 08:03 4300019475                         /opt/games/trine2/game/lib/lib32/libPhysXCore.so
d11e9000-d11f7000 r-xp 003a7000 08:03 4300019475                         /opt/games/trine2/game/lib/lib32/libPhysXCore.so
d11f7000-d11fc000 rwxp 003b5000 08:03 4300019475                         /opt/games/trine2/game/lib/lib32/libPhysXCore.so
d11fc000-d1200000 rwxp 00000000 00:00 0
d1200000-d1221000 rwxp 00000000 00:00 0
d1221000-d1300000 ---p 00000000 00:00 0
d1317000-d1398000 rwxp 00000000 00:00 0
d1398000-d5399000 rwxs 00000000 00:12 88555                              /dev/shm/pulse-shm-2934990427
d5399000-d539a000 ---p 00000000 00:00 0
d539a000-d5b9a000 rwxp 00000000 00:00 0                                  [stack:8296]
d5b9a000-d5bad000 r-xp 00000000 08:03 2148492705                         /lib/i386-linux-gnu/libgpg-error.so.0.15.0
d5bad000-d5bae000 r-xp 00012000 08:03 2148492705                         /lib/i386-linux-gnu/libgpg-error.so.0.15.0
d5bae000-d5baf000 rwxp 00013000 08:03 2148492705                         /lib/i386-linux-gnu/libgpg-error.so.0.15.0
d5baf000-d5c1e000 r-xp 00000000 08:03 2147823281                         /lib/i386-linux-gnu/libpcre.so.3.13.1
d5c1e000-d5c1f000 r-xp 0006f000 08:03 2147823281                         /lib/i386-linux-gnu/libpcre.so.3.13.1
d5c1f000-d5c20000 rwxp 00070000 08:03 2147823281                         /lib/i386-linux-gnu/libpcre.so.3.13.1
d5c20000-d5c9c000 r-xp 00000000 08:03 6442495285                         /usr/lib/i386-linux-gnu/libvorbisenc.so.2.0.10
d5c9c000-d5cae000 r-xp 0007b000 08:03 6442495285                         /usr/lib/i386-linux-gnu/libvorbisenc.so.2.0.10
d5cae000-d5caf000 rwxp 0008d000 08:03 6442495285                         /usr/lib/i386-linux-gnu/libvorbisenc.so.2.0.10
d5caf000-d5d0e000 r-xp 00000000 08:03 6442805104                         /usr/lib/i386-linux-gnu/libFLAC.so.8.3.0
d5d0e000-d5d10000 r-xp 0005f000 08:03 6442805104                         /usr/lib/i386-linux-gnu/libFLAC.so.8.3.0
d5d10000-d5d11000 rwxp 00061000 08:03 6442805104                         /usr/lib/i386-linux-gnu/libFLAC.so.8.3.0
d5d11000-d5dbe000 r-xp 00000000 08:03 2149753307                         /lib/i386-linux-gnu/libgcrypt.so.20.0.3
d5dbe000-d5dbf000 r-xp 000ac000 08:03 2149753307                         /lib/i386-linux-gnu/libgcrypt.so.20.0.3
d5dbf000-d5dc2000 rwxp 000ad000 08:03 2149753307                         /lib/i386-linux-gnu/libgcrypt.so.20.0.3
d5dc2000-d5e34000 r-xp 00000000 08:03 6442572408                         /usr/lib/i386-linux-gnu/libsndfile.so.1.0.25
d5e34000-d5e36000 r-xp 00071000 08:03 6442572408                         /usr/lib/i386-linux-gnu/libsndfile.so.1.0.25
d5e36000-d5e37000 rwxp 00073000 08:03 6442572408                         /usr/lib/i386-linux-gnu/libsndfile.so.1.0.25
d5e37000-d5e3b000 rwxp 00000000 00:00 0
d5e3b000-d5ec4000 r-xp 00000000 08:03 2147664999                         /lib/i386-linux-gnu/libsystemd.so.0.10.1
d5ec4000-d5ec6000 r-xp 00088000 08:03 2147664999                         /lib/i386-linux-gnu/libsystemd.so.0.10.1
d5ec6000-d5ec7000 rwxp 0008a000 08:03 2147664999                         /lib/i386-linux-gnu/libsystemd.so.0.10.1
d5ec7000-d5f1b000 r-xp 00000000 08:03 2147664357                         /lib/i386-linux-gnu/libdbus-1.so.3.8.13
d5f1b000-d5f1c000 ---p 00054000 08:03 2147664357                         /lib/i386-linux-gnu/libdbus-1.so.3.8.13
d5f1c000-d5f1d000 r-xp 00054000 08:03 2147664357                         /lib/i386-linux-gnu/libdbus-1.so.3.8.13
d5f1d000-d5f1e000 rwxp 00055000 08:03 2147664357                         /lib/i386-linux-gnu/libdbus-1.so.3.8.13
d5f1e000-d5fa3000 r-xp 00000000 08:03 10818                              /usr/lib/i386-linux-gnu/pulseaudio/libpulsecommon-6.0.so
d5fa3000-d5fa4000 ---p 00085000 08:03 10818                              /usr/lib/i386-linux-gnu/pulseaudio/libpulsecommon-6.0.so
d5fa4000-d5fa5000 r-xp 00085000 08:03 10818                              /usr/lib/i386-linux-gnu/pulseaudio/libpulsecommon-6.0.so
d5fa5000-d5fa6000 rwxp 00086000 08:03 10818                              /usr/lib/i386-linux-gnu/pulseaudio/libpulsecommon-6.0.so
d5fa6000-d5ffe000 r-xp 00000000 08:03 6442573614                         /usr/lib/i386-linux-gnu/libpulse.so.0.18.0
d5ffe000-d5fff000 r-xp 00057000 08:03 6442573614                         /usr/lib/i386-linux-gnu/libpulse.so.0.18.0
d5fff000-d6000000 rwxp 00058000 08:03 6442573614                         /usr/lib/i386-linux-gnu/libpulse.so.0.18.0
d6000000-d6042000 rwxp 00000000 00:00 0
d6042000-d6100000 ---p 00000000 00:00 0
d6107000-d6108000 ---p 00000000 00:00 0
d6108000-d6908000 rwxp 00000000 00:00 0                                  [stack:8294]
d6908000-d6909000 ---p 00000000 00:00 0
d6909000-eb200000 rwxp 00000000 00:00 0                                  [stack:8293]
eb200000-eb231000 rwxp 00000000 00:00 0
eb231000-eb300000 ---p 00000000 00:00 0
eb304000-eb32a000 r-xp 00000000 08:03 2148785980                         /lib/i386-linux-gnu/liblzma.so.5.0.0
eb32a000-eb32c000 r-xp 00026000 08:03 2148785980                         /lib/i386-linux-gnu/liblzma.so.5.0.0
eb32c000-eb32d000 rwxp 00028000 08:03 2148785980                         /lib/i386-linux-gnu/liblzma.so.5.0.0
eb32d000-eb340000 r-xp 00000000 08:03 4299074781                         /lib/i386-linux-gnu/i686/cmov/libresolv-2.19.so
eb340000-eb341000 r-xp 00012000 08:03 4299074781                         /lib/i386-linux-gnu/i686/cmov/libresolv-2.19.so
eb341000-eb342000 rwxp 00013000 08:03 4299074781                         /lib/i386-linux-gnu/i686/cmov/libresolv-2.19.so
eb342000-eb691000 rwxp 00000000 00:00 0
eb691000-eb711000 rwxs 3f2a0e000 00:06 23587                             /dev/nvidiactl
eb711000-eb791000 rwxs da3cc000 00:06 23587                              /dev/nvidiactl
eb791000-eb811000 rwxs b87e2000 00:06 23587                              /dev/nvidiactl
eb812000-eb911000 rwxp 00000000 00:00 0
eb911000-eb924000 rwxs 8cd11000 00:06 23587                              /dev/nvidiactl
eb924000-eb944000 rwxs e04e0000 00:06 22619                              /dev/nvidia0
eb944000-eb984000 rwxs bbb91000 00:06 23587                              /dev/nvidiactl
eb984000-eba37000 rwxp 00000000 00:00 0
eba48000-eba6d000 r-xp 00000000 08:03 2152182152                         /lib/i386-linux-gnu/libselinux.so.1
eba6d000-eba6e000 r-xp 00024000 08:03 2152182152                         /lib/i386-linux-gnu/libselinux.so.1
eba6e000-eba6f000 rwxp 00025000 08:03 2152182152                         /lib/i386-linux-gnu/libselinux.so.1
eba6f000-eba70000 rwxp 00000000 00:00 0
eba70000-eba74000 r-xp 00000000 08:03 6444206239                         /opt/games/trine2/lib/libuuid.so.1.3.0
eba74000-eba75000 r-xp 00003000 08:03 6444206239                         /opt/games/trine2/lib/libuuid.so.1.3.0
eba75000-eba76000 rwxp 00004000 08:03 6444206239                         /opt/games/trine2/lib/libuuid.so.1.3.0
eba76000-eba7a000 r-xp 00000000 08:03 2147567960                         /lib/i386-linux-gnu/libattr.so.1.1.0
eba7a000-eba7b000 r-xp 00003000 08:03 2147567960                         /lib/i386-linux-gnu/libattr.so.1.1.0
eba7b000-eba7c000 rwxp 00004000 08:03 2147567960                         /lib/i386-linux-gnu/libattr.so.1.1.0
eba7c000-eba81000 r-xp 00000000 08:03 6442537112                         /usr/lib/i386-linux-gnu/libasyncns.so.0.3.1
eba81000-eba82000 r-xp 00004000 08:03 6442537112                         /usr/lib/i386-linux-gnu/libasyncns.so.0.3.1
eba82000-eba83000 rwxp 00005000 08:03 6442537112                         /usr/lib/i386-linux-gnu/libasyncns.so.0.3.1
eba83000-eba8b000 r-xp 00000000 08:03 2148793589                         /lib/i386-linux-gnu/libwrap.so.0.7.6
eba8b000-eba8c000 r-xp 00007000 08:03 2148793589                         /lib/i386-linux-gnu/libwrap.so.0.7.6
eba8c000-eba8d000 rwxp 00008000 08:03 2148793589                         /lib/i386-linux-gnu/libwrap.so.0.7.6
eba8d000-ebb00000 rwxp 00000000 00:00 0
ebb00000-ebc00000 rwxp 00000000 00:00 0
ebc00000-ebc08000 r-xp 00000000 08:03 6442497079                         /usr/lib/i386-linux-gnu/libSM.so.6.0.1
ebc08000-ebc09000 r-xp 00007000 08:03 6442497079                         /usr/lib/i386-linux-gnu/libSM.so.6.0.1
ebc09000-ebc0a000 rwxp 00008000 08:03 6442497079                         /usr/lib/i386-linux-gnu/libSM.so.6.0.1
ebc0a000-ebc4a000 rwxs 3eb85f000 00:06 23587                             /dev/nvidiactl
ebc4b000-ebc51000 r-xp 00000000 08:03 6442651247                         /usr/lib/i386-linux-gnu/libXtst.so.6.1.0
ebc51000-ebc52000 r-xp 00005000 08:03 6442651247                         /usr/lib/i386-linux-gnu/libXtst.so.6.1.0
ebc52000-ebc53000 rwxp 00006000 08:03 6442651247                         /usr/lib/i386-linux-gnu/libXtst.so.6.1.0
ebc53000-ebc6c000 r-xp 00000000 08:03 6442493703                         /usr/lib/i386-linux-gnu/libICE.so.6.3.0
ebc6c000-ebc6d000 r-xp 00018000 08:03 6442493703                         /usr/lib/i386-linux-gnu/libICE.so.6.3.0
ebc6d000-ebc6e000 rwxp 00019000 08:03 6442493703                         /usr/lib/i386-linux-gnu/libICE.so.6.3.0
ebc6e000-ebc70000 rwxp 00000000 00:00 0
ebc70000-ebc71000 r-xp 00000000 08:03 6446798821                         /opt/games/trine2/lib/libX11-xcb.so.1.0.0
ebc71000-ebc72000 r-xp 00000000 08:03 6446798821                         /opt/games/trine2/lib/libX11-xcb.so.1.0.0
ebc72000-ebc73000 rwxp 00001000 08:03 6446798821                         /opt/games/trine2/lib/libX11-xcb.so.1.0.0
ebc73000-ebc77000 r-xp 00000000 08:03 2147540626                         /lib/i386-linux-gnu/libcap.so.2.24
ebc77000-ebc78000 r-xp 00003000 08:03 2147540626                         /lib/i386-linux-gnu/libcap.so.2.24
ebc78000-ebc79000 rwxp 00004000 08:03 2147540626                         /lib/i386-linux-gnu/libcap.so.2.24
ebc79000-ebc83000 r-xp 00000000 08:03 2147585277                         /lib/i386-linux-gnu/libjson-c.so.2.0.0
ebc83000-ebc84000 r-xp 00009000 08:03 2147585277                         /lib/i386-linux-gnu/libjson-c.so.2.0.0
ebc84000-ebc85000 rwxp 0000a000 08:03 2147585277                         /lib/i386-linux-gnu/libjson-c.so.2.0.0
ebcb3000-ebcb4000 rwxp 00000000 00:00 0
ebcb4000-ebcb6000 rwxs 00000000 08:03 2148730707                         /tmp/.glduy5ST (deleted)
ebcb6000-ebcbd000 r-xs 00000000 08:03 2148985200                         /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
ebcbd000-ebd81000 rwxs 3dcc19000 00:06 23587                             /dev/nvidiactl
ebd81000-ebdfe000 rwxp 00000000 00:00 0
ebdfe000-ebdff000 ---p 00000000 00:00 0
ebdff000-ec5ff000 rwxp 00000000 00:00 0                                  [stack:8291]
ec5ff000-ec600000 ---p 00000000 00:00 0
ec600000-ece00000 rwxp 00000000 00:00 0                                  [stack:8290]
ece00000-ece21000 rwxp 00000000 00:00 0
ece21000-ecf00000 ---p 00000000 00:00 0
ecf00000-ecf01000 rwxp 00000000 00:00 0
ecf01000-ecf05000 rwxs ba5d0000 00:06 23587                              /dev/nvidiactl
ecf05000-ecf25000 rwxs c4e26000 00:06 23587                              /dev/nvidiactl
ecf44000-ecf45000 rwxp 00000000 00:00 0
ecf45000-ecf4a000 r-xp 00000000 08:03 6442505347                         /usr/lib/i386-linux-gnu/libXfixes.so.3.1.0
ecf4a000-ecf4b000 r-xp 00004000 08:03 6442505347                         /usr/lib/i386-linux-gnu/libXfixes.so.3.1.0
ecf4b000-ecf4c000 rwxp 00005000 08:03 6442505347                         /usr/lib/i386-linux-gnu/libXfixes.so.3.1.0
ecf4c000-ecf4e000 r-xs 00000000 08:03 2148730707                         /tmp/.glduy5ST (deleted)
ecf4e000-ecf4f000 rwxs bba4a000 00:06 23587                              /dev/nvidiactl
ecf4f000-ecf50000 rwxs e7d67000 00:06 22619                              /dev/nvidia0
ecf50000-ecf51000 rwxs e7d67000 00:06 22619                              /dev/nvidia0
ecf51000-ecf52000 rwxs ee642000 00:06 22619                              /dev/nvidia0
ecf52000-ecf53000 rwxs 3fecce000 00:06 23587                             /dev/nvidiactl
ecf53000-ecf54000 rwxs 39c434000 00:06 23587                             /dev/nvidiactl
ecf54000-ecf59000 r-xp 00000000 08:03 6442509849                         /usr/lib/i386-linux-gnu/libXxf86vm.so.1.0.0
ecf59000-ecf5a000 r-xp 00004000 08:03 6442509849                         /usr/lib/i386-linux-gnu/libXxf86vm.so.1.0.0
ecf5a000-ecf5b000 rwxp 00005000 08:03 6442509849                         /usr/lib/i386-linux-gnu/libXxf86vm.so.1.0.0
ecf5b000-ecf5d000 r-xp 00000000 08:03 6442488210                         /usr/lib/i386-linux-gnu/libXss.so.1.0.0
ecf5d000-ecf5e000 rwxp 00001000 08:03 6442488210                         /usr/lib/i386-linux-gnu/libXss.so.1.0.0
ecf5e000-ecf67000 r-xp 00000000 08:03 6447057809                         /opt/games/trine2/lib/libXrandr.so.2.2.0
ecf67000-ecf68000 r-xp 00008000 08:03 6447057809                         /opt/games/trine2/lib/libXrandr.so.2.2.0
ecf68000-ecf69000 rwxp 00009000 08:03 6447057809                         /opt/games/trine2/lib/libXrandr.so.2.2.0
ecf69000-ecf78000 r-xp 00000000 08:03 6446798844                         /opt/games/trine2/lib/libXi.so.6.1.0
ecf78000-ecf79000 r-xp 0000e000 08:03 6446798844                         /opt/games/trine2/lib/libXi.so.6.1.0
ecf79000-ecf7a000 rwxp 0000f000 08:03 6446798844                         /opt/games/trine2/lib/libXi.so.6.1.0
ecf7a000-ecf85000 r-xp 00000000 08:03 4299076932                         /lib/i386-linux-gnu/i686/cmov/libnss_files-2.19.so
ecf85000-ecf86000 r-xp 0000a000 08:03 4299076932                         /lib/i386-linux-gnu/i686/cmov/libnss_files-2.19.so
ecf86000-ecf87000 rwxp 0000b000 08:03 4299076932                         /lib/i386-linux-gnu/i686/cmov/libnss_files-2.19.so
ecf87000-ecf91000 r-xp 00000000 08:03 4299076983                         /lib/i386-linux-gnu/i686/cmov/libnss_nis-2.19.so
ecf91000-ecf92000 r-xp 00009000 08:03 4299076983                         /lib/i386-linux-gnu/i686/cmov/libnss_nis-2.19.so
ecf92000-ecf93000 rwxp 0000a000 08:03 4299076983                         /lib/i386-linux-gnu/i686/cmov/libnss_nis-2.19.so
ecf93000-ecf94000 rwxs ee060000 00:06 22619                              /dev/nvidia0
ecf94000-ecf95000 rwxp 00000000 00:00 0
ecf95000-ecf97000 r-xp 00000000 08:03 6442453527                         /usr/lib/i386-linux-gnu/libXinerama.so.1.0.0
ecf97000-ecf98000 r-xp 00001000 08:03 6442453527                         /usr/lib/i386-linux-gnu/libXinerama.so.1.0.0
ecf98000-ecf99000 rwxp 00002000 08:03 6442453527                         /usr/lib/i386-linux-gnu/libXinerama.so.1.0.0
ecf99000-ecfa2000 r-xp 00000000 08:03 6445695491                         /opt/games/trine2/lib/libXrender.so.1.3.0
ecfa2000-ecfa3000 r-xp 00008000 08:03 6445695491                         /opt/games/trine2/lib/libXrender.so.1.3.0
ecfa3000-ecfa4000 rwxp 00009000 08:03 6445695491                         /opt/games/trine2/lib/libXrender.so.1.3.0
ecfa4000-ecfae000 r-xp 00000000 08:03 6442797035                         /usr/lib/i386-linux-gnu/libXcursor.so.1.0.2
ecfae000-ecfaf000 r-xp 00009000 08:03 6442797035                         /usr/lib/i386-linux-gnu/libXcursor.so.1.0.2
ecfaf000-ecfb0000 rwxp 0000a000 08:03 6442797035                         /usr/lib/i386-linux-gnu/libXcursor.so.1.0.2
ecfb0000-ecfc0000 rwxs 00000000 00:06 17783                              /dev/snd/pcmC0D0c
ecfc0000-ecfc1000 rwxs 00000000 00:05 4915208                            /SYSV0056a4d7 (deleted)
ecfc1000-ecfc2000 ---p 00000000 00:00 0
ecfc2000-f35d2000 rwxp 00000000 00:00 0                                  [stack:8289]
f35d2000-f35d3000 ---p 00000000 00:00 0
f35d3000-f41d7000 rwxp 00000000 00:00 0                                  [stack:8288]
f41d7000-f41dc000 r-xp 00000000 08:03 6444206238                         /opt/games/trine2/lib/libXdmcp.so.6.0.0
f41dc000-f41dd000 r-xp 00004000 08:03 6444206238                         /opt/games/trine2/lib/libXdmcp.so.6.0.0
f41dd000-f41de000 rwxp 00005000 08:03 6444206238                         /opt/games/trine2/lib/libXdmcp.so.6.0.0
f41de000-f41e0000 r-xp 00000000 08:03 6447034051                         /opt/games/trine2/lib/libXau.so.6.0.0
f41e0000-f41e1000 r-xp 00001000 08:03 6447034051                         /opt/games/trine2/lib/libXau.so.6.0.0
f41e1000-f41e2000 rwxp 00002000 08:03 6447034051                         /opt/games/trine2/lib/libXau.so.6.0.0
f41e2000-f41e3000 rwxp 00000000 00:00 0
f41e3000-f4203000 r-xp 00000000 08:03 6444206236                         /opt/games/trine2/lib/libxcb.so.1.1.0
f4203000-f4204000 r-xp 0001f000 08:03 6444206236                         /opt/games/trine2/lib/libxcb.so.1.1.0
f4204000-f4205000 rwxp 00020000 08:03 6444206236                         /opt/games/trine2/lib/libxcb.so.1.1.0
f4205000-f422b000 r-xp 00000000 08:03 6444206234                         /opt/games/trine2/lib/libpng12.so.0.50.0
f422b000-f422c000 r-xp 00025000 08:03 6444206234                         /opt/games/trine2/lib/libpng12.so.0.50.0
f422c000-f422d000 rwxp 00026000 08:03 6444206234                         /opt/games/trine2/lib/libpng12.so.0.50.0
f422d000-f423e000 r-xp 00000000 08:03 6444206241                         /opt/games/trine2/lib/libXext.so.6.4.0
f423e000-f423f000 r-xp 00010000 08:03 6444206241                         /opt/games/trine2/lib/libXext.so.6.4.0
f423f000-f4240000 rwxp 00011000 08:03 6444206241                         /opt/games/trine2/lib/libXext.so.6.4.0
f4240000-f4370000 r-xp 00000000 08:03 6447377284                         /opt/games/trine2/lib/libX11.so.6.3.0
f4370000-f4371000 r-xp 00130000 08:03 6447377284                         /opt/games/trine2/lib/libX11.so.6.3.0
f4371000-f4373000 rwxp 00131000 08:03 6447377284                         /opt/games/trine2/lib/libX11.so.6.3.0
f4373000-f4375000 rwxp 00000000 00:00 0
f4375000-f64f9000 r-xp 00000000 08:03 6442569344                         /usr/lib/i386-linux-gnu/libnvidia-glcore.so.352.21
f64f9000-f6533000 rwxp 02183000 08:03 6442569344                         /usr/lib/i386-linux-gnu/libnvidia-glcore.so.352.21
f6533000-f6542000 rwxp 00000000 00:00 0
f6542000-f6546000 r-xp 00000000 08:03 6442567258                         /usr/lib/i386-linux-gnu/tls/libnvidia-tls.so.352.21
f6546000-f6547000 rwxp 00003000 08:03 6442567258                         /usr/lib/i386-linux-gnu/tls/libnvidia-tls.so.352.21
f6547000-f654e000 r-xp 00000000 08:03 6444213467                         /opt/games/trine2/lib/libogg.so.0.8.1
f654e000-f654f000 r-xp 00006000 08:03 6444213467                         /opt/games/trine2/lib/libogg.so.0.8.1
f654f000-f6550000 rwxp 00007000 08:03 6444213467                         /opt/games/trine2/lib/libogg.so.0.8.1
f6550000-f6579000 r-xp 00000000 08:03 6444206237                         /opt/games/trine2/lib/libvorbis.so.0.4.5
f6579000-f657a000 ---p 00029000 08:03 6444206237                         /opt/games/trine2/lib/libvorbis.so.0.4.5
f657a000-f657b000 r-xp 00029000 08:03 6444206237                         /opt/games/trine2/lib/libvorbis.so.0.4.5
f657b000-f657c000 rwxp 0002a000 08:03 6444206237                         /opt/games/trine2/lib/libvorbis.so.0.4.5
f657c000-f6720000 r-xp 00000000 08:03 4299100540                         /lib/i386-linux-gnu/i686/cmov/libc-2.19.so
f6720000-f6722000 r-xp 001a4000 08:03 4299100540                         /lib/i386-linux-gnu/i686/cmov/libc-2.19.so
f6722000-f6723000 rwxp 001a6000 08:03 4299100540                         /lib/i386-linux-gnu/i686/cmov/libc-2.19.so
f6723000-f6727000 rwxp 00000000 00:00 0
f6727000-f6743000 r-xp 00000000 08:03 2148551485                         /lib/i386-linux-gnu/libgcc_s.so.1
f6743000-f6744000 rwxp 0001b000 08:03 2148551485                         /lib/i386-linux-gnu/libgcc_s.so.1
f6744000-f6788000 r-xp 00000000 08:03 4299082740                         /lib/i386-linux-gnu/i686/cmov/libm-2.19.so
f6788000-f6789000 r-xp 00043000 08:03 4299082740                         /lib/i386-linux-gnu/i686/cmov/libm-2.19.so
f6789000-f678a000 rwxp 00044000 08:03 4299082740                         /lib/i386-linux-gnu/i686/cmov/libm-2.19.so
f678a000-f6866000 r-xp 00000000 08:03 6444206235                         /opt/games/trine2/lib/libstdc++.so.6.0.19
f6866000-f6867000 ---p 000dc000 08:03 6444206235                         /opt/games/trine2/lib/libstdc++.so.6.0.19
f6867000-f686b000 r-xp 000dc000 08:03 6444206235                         /opt/games/trine2/lib/libstdc++.so.6.0.19
f686b000-f686c000 rwxp 000e0000 08:03 6444206235                         /opt/games/trine2/lib/libstdc++.so.6.0.19
f686c000-f6873000 rwxp 00000000 00:00 0
f6873000-f688b000 r-xp 00000000 08:03 6447034050                         /opt/games/trine2/lib/libz.so.1.2.8
f688b000-f688c000 r-xp 00017000 08:03 6447034050                         /opt/games/trine2/lib/libz.so.1.2.8
f688c000-f688d000 rwxp 00018000 08:03 6447034050                         /opt/games/trine2/lib/libz.so.1.2.8
f688d000-f6994000 r-xp 00000000 08:03 6442572391                         /usr/lib/i386-linux-gnu/libasound.so.2.0.0
f6994000-f6998000 r-xp 00106000 08:03 6442572391                         /usr/lib/i386-linux-gnu/libasound.so.2.0.0
f6998000-f6999000 rwxp 0010a000 08:03 6442572391                         /usr/lib/i386-linux-gnu/libasound.so.2.0.0
f6999000-f699a000 rwxp 00000000 00:00 0
f699a000-f69b2000 r-xp 00000000 08:03 4299110595                         /lib/i386-linux-gnu/i686/cmov/libpthread-2.19.so
f69b2000-f69b3000 r-xp 00017000 08:03 4299110595                         /lib/i386-linux-gnu/i686/cmov/libpthread-2.19.so
f69b3000-f69b4000 rwxp 00018000 08:03 4299110595                         /lib/i386-linux-gnu/i686/cmov/libpthread-2.19.so
f69b4000-f69b6000 rwxp 00000000 00:00 0
f69b6000-f69bd000 r-xp 00000000 08:03 4299074785                         /lib/i386-linux-gnu/i686/cmov/librt-2.19.so
f69bd000-f69be000 r-xp 00006000 08:03 4299074785                         /lib/i386-linux-gnu/i686/cmov/librt-2.19.so
f69be000-f69bf000 rwxp 00007000 08:03 4299074785                         /lib/i386-linux-gnu/i686/cmov/librt-2.19.so
f69bf000-f69c2000 r-xp 00000000 08:03 4299082724                         /lib/i386-linux-gnu/i686/cmov/libdl-2.19.so
f69c2000-f69c3000 r-xp 00002000 08:03 4299082724                         /lib/i386-linux-gnu/i686/cmov/libdl-2.19.so
f69c3000-f69c4000 rwxp 00003000 08:03 4299082724                         /lib/i386-linux-gnu/i686/cmov/libdl-2.19.so
f69c4000-f69d2000 r-xp 00000000 08:03 4300019470                         /opt/games/trine2/game/lib/lib32/libPhysXLoader.so.1
f69d2000-f69d3000 r-xp 0000d000 08:03 4300019470                         /opt/games/trine2/game/lib/lib32/libPhysXLoader.so.1
f69d3000-f69d4000 rwxp 0000e000 08:03 4300019470                         /opt/games/trine2/game/lib/lib32/libPhysXLoader.so.1
f69d4000-f6a3c000 r-xp 00000000 08:03 4300019471                         /opt/games/trine2/game/lib/lib32/libCgGL.so
f6a3c000-f6a3f000 rwxp 00067000 08:03 4300019471                         /opt/games/trine2/game/lib/lib32/libCgGL.so
f6a3f000-f6a42000 rwxp 00000000 00:00 0
f6a42000-f7080000 r-xp 00000000 08:03 4300059977                         /opt/games/trine2/game/lib/lib32/libCg.so
f7080000-f72fa000 rwxp 0063e000 08:03 4300059977                         /opt/games/trine2/game/lib/lib32/libCg.so
f72fa000-f7322000 rwxp 00000000 00:00 0
f7322000-f741d000 r-xp 00000000 08:03 4300019469                         /opt/games/trine2/game/lib/lib32/libSDL-1.3.so.0
f741d000-f7421000 rwxp 000fb000 08:03 4300019469                         /opt/games/trine2/game/lib/lib32/libSDL-1.3.so.0
f7421000-f7428000 rwxp 00000000 00:00 0
f7428000-f74d5000 r-xp 00000000 08:03 6442454290                         /usr/lib/i386-linux-gnu/libfreetype.so.6.11.1
f74d5000-f74d9000 r-xp 000ac000 08:03 6442454290                         /usr/lib/i386-linux-gnu/libfreetype.so.6.11.1
f74d9000-f74da000 rwxp 000b0000 08:03 6442454290                         /usr/lib/i386-linux-gnu/libfreetype.so.6.11.1
f74da000-f754b000 r-xp 00000000 08:03 6446798813                         /opt/games/trine2/lib/libGLU.so.1.3.1
f754b000-f754c000 r-xp 00070000 08:03 6446798813                         /opt/games/trine2/lib/libGLU.so.1.3.1
f754c000-f754d000 rwxp 00071000 08:03 6446798813                         /opt/games/trine2/lib/libGLU.so.1.3.1
f754d000-f7648000 r-xp 00000000 08:03 6442569609                         /usr/lib/i386-linux-gnu/libGL.so.352.21
f7648000-f764d000 rwxp 000fa000 08:03 6442569609                         /usr/lib/i386-linux-gnu/libGL.so.352.21
f764d000-f7651000 rwxp 00000000 00:00 0
f7651000-f7666000 r-xp 00000000 08:03 4299080858                         /lib/i386-linux-gnu/i686/cmov/libnsl-2.19.so
f7666000-f7667000 r-xp 00015000 08:03 4299080858                         /lib/i386-linux-gnu/i686/cmov/libnsl-2.19.so
f7667000-f7668000 rwxp 00016000 08:03 4299080858                         /lib/i386-linux-gnu/i686/cmov/libnsl-2.19.so
f7668000-f766a000 rwxp 00000000 00:00 0
f766a000-f7671000 r-xp 00000000 08:03 4299080865                         /lib/i386-linux-gnu/i686/cmov/libnss_compat-2.19.so
f7671000-f7672000 r-xp 00006000 08:03 4299080865                         /lib/i386-linux-gnu/i686/cmov/libnss_compat-2.19.so
f7672000-f7673000 rwxp 00007000 08:03 4299080865                         /lib/i386-linux-gnu/i686/cmov/libnss_compat-2.19.so
f7673000-f767f000 rwxp 00000000 00:00 0
f767f000-f7687000 r-xp 00000000 08:03 6444206240                         /opt/games/trine2/lib/libvorbisfile.so.3.3.4
f7687000-f7688000 r-xp 00007000 08:03 6444206240                         /opt/games/trine2/lib/libvorbisfile.so.3.3.4
f7688000-f7689000 rwxp 00008000 08:03 6444206240                         /opt/games/trine2/lib/libvorbisfile.so.3.3.4
f7689000-f76dc000 r-xp 00000000 08:03 6447059783                         /opt/games/trine2/lib/libopenal.so.1
f76dc000-f76dd000 r-xp 00053000 08:03 6447059783                         /opt/games/trine2/lib/libopenal.so.1
f76dd000-f76de000 rwxp 00054000 08:03 6447059783                         /opt/games/trine2/lib/libopenal.so.1
f76de000-f76e0000 rwxp 00000000 00:00 0
f76e0000-f76e2000 r--p 00000000 00:00 0                                  [vvar]
f76e2000-f76e3000 r-xp 00000000 00:00 0                                  [vdso]
f76e3000-f7702000 r-xp 00000000 08:03 2148985213                         /lib/i386-linux-gnu/ld-2.19.so
f7702000-f7703000 r-xp 0001f000 08:03 2148985213                         /lib/i386-linux-gnu/ld-2.19.so
f7703000-f7704000 rwxp 00020000 08:03 2148985213                         /lib/i386-linux-gnu/ld-2.19.so
ffe35000-ffe56000 rwxp 00000000 00:00 0                                  [stack]

fb_jlarja
Posts: 219
Joined: Fri Nov 11, 2011 4:45 pm

Re: [Linux] Trine 2 crashes on startup on 1+TB XFS partition

Postby fb_jlarja » Wed Aug 12, 2015 8:39 am

Thanks for your report. We are using normal Posix file functions, so I'm not really sure why they wouldn't work with big partitions. Could be that some of the libs we are using are doing something clever.

Reason for 32 bit build is that we didn't have 64 bit libs for all the middle-ware we are using in T2. Understandably many middle-ware makers aren't that interested in Linux. There's no such problem anymore though, so T3 will be released as 64 bit version only.

-JLarja

shmerl
Posts: 36
Joined: Sun Aug 09, 2015 9:25 pm

Re: [Linux] Trine 2 crashes on startup on 1+TB XFS partition

Postby shmerl » Thu Aug 13, 2015 11:38 pm

fb_jlarja wrote:Thanks for your report. We are using normal Posix file functions, so I'm not really sure why they wouldn't work with big partitions. Could be that some of the libs we are using are doing something clever.

Reason for 32 bit build is that we didn't have 64 bit libs for all the middle-ware we are using in T2. Understandably many middle-ware makers aren't that interested in Linux. There's no such problem anymore though, so T3 will be released as 64 bit version only.

-JLarja


It's a known issue related to large partitions. If you don't explicitly enable such support during compilation for 32 bit programs, you might get into trouble (on some filesystems like XFS).

See here:

http://users.suse.com/~aj/linux_lfs.html
https://en.wikipedia.org/wiki/Large_file_support

Basically pass -D_FILE_OFFSET_BITS=64 to gcc during compilation, and it should fix it.

Note, it's not just needed for big files. It's needed as soon as your partition is larger than certain size (at least in XFS case). Quite a lot of games were affected by this, because developers weren't aware of this issue.

Here are other reports:
http://forum.unity3d.com/threads/there- ... ux.277828/
https://www.gog.com/forum/grim_fandango ... n_on_linux
http://www.doublefine.com/forums/viewthread/16251/
http://www.doublefine.com/forums/viewthread/16523/
https://github.com/virtual-programming/ ... issues/106

If this happens in the middleware somewhere and you don't build it yourself, then you should check that they build it with -D_FILE_OFFSET_BITS=64, and if they don't, they clearly should fix it.

fb_jlarja
Posts: 219
Joined: Fri Nov 11, 2011 4:45 pm

Re: [Linux] Trine 2 crashes on startup on 1+TB XFS partition

Postby fb_jlarja » Mon Aug 17, 2015 7:26 am

Well, I guess there's some good reason why partition size affects file reading and why this isn't fixed by default (I understand, why large file support can't be automatically fixed, just never even thought to look for large partition support). Mind you, neither of your links (the large file support links that is, not the bug links) refer to large partitions in any way, they just talk about files. We have more stringent than 2 GB file size limits on other platforms, so we had no reason to go looking for large file support.

Anyway, I added compiler option for Trine 2 and Trine EE (Trine 3 will be available as 64 bit only), but we don't currently have any plans on updating either, so it may take sometime or forever for the fix to arrive. Sorry about that. It seems, though, that Linux users running game on affected file system with large enough partition are quite uncommon occurrence.

Don't know about middle-ware though. Much of that (especially in T2) is old and kind of beta, so our only option would be to update the middle-ware, at which point we could probably change to 64 bit as well. That's not really an option though (too much trouble for pretty much no gain).

-JLarja

shmerl
Posts: 36
Joined: Sun Aug 09, 2015 9:25 pm

Re: [Linux] Trine 2 crashes on startup on 1+TB XFS partition

Postby shmerl » Tue Aug 18, 2015 7:45 am

fb_jlarja wrote:Well, I guess there's some good reason why partition size affects file reading and why this isn't fixed by default (I understand, why large file support can't be automatically fixed, just never even thought to look for large partition support). Mind you, neither of your links (the large file support links that is, not the bug links) refer to large partitions in any way, they just talk about files.


Most of those links (in the second set) are bugs which I filed, and they mention partitions explicitly. I think it's specific to XFS, in a sense that this bug doesn't come up on other filesystems even if they are very big. But using that compilation key prevents it on XFS. XFS is becoming more common now, especially with hard drive sizes growing. Some distros now use it as default in the installer. Unfortunately such quirks tend to come up with regularity because developers rarely test this use case.

I'm collecting the list of affected games here: https://www.gog.com/mix/linux_games_wit ... tition_bug (those are only which are still unfixed and which I encountered, I'm sure there are more).

See also another bug (which affected Witcher 2 Linux release): https://bugzilla.kernel.org/show_bug.cgi?id=12688

But that's relevant only if you use those low level readdir / readdir_r calls.


Return to “Trine 2”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests