MCMrARM / mcpelauncher-linux

Please note this is a legacy repository, please go to: https://github.com/minecraft-linux/mcpelauncher-manifest/wiki
GNU General Public License v3.0
311 stars 44 forks source link

Crash on Load amd #233

Open Savotu1 opened 6 years ago

Savotu1 commented 6 years ago

I did post this in #103 as I am having the same problems but Tarik02 has closed the issue so thought I would post my own.

I am using the updated master branch and getting Signal 11 received when running with or without --amd-fix.

When running through Valgrind without the amd fix everything works but is so slow just getting from one screen to another takes a long while.

./mcpelauncher --help advises to use --amd-workaround which is another bug as the correct command is ./mcpelauncher --amd-fix

My valgrind output with the amd fix is below

< ==23871== Memcheck, a memory error detector ==23871== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==23871== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info ==23871== Command: ./mcpelauncher --amd-fix ==23871== Parent PID: 6666 ==23871== ==23871== Invalid read of size 1 ==23871== at 0x80AA289: patchCallInstruction(void, void, bool) (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x80A4632: main (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== Address 0xcf is not stack'd, malloc'd or (recently) free'd ==23871== ==23871== Conditional jump or move depends on uninitialised value(s) ==23871== at 0x809931D: find_containing_library (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x809846A: android_dladdr (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x809502A: hybris_dladdr (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x80AA576: handleSignal(int, void) (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x4057EE7: ??? (in /lib/libpthread-2.26.so) ==23871== by 0x80A4632: main (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== ==23871== Conditional jump or move depends on uninitialised value(s) ==23871== at 0x8099338: find_containing_library (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x809846A: android_dladdr (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x809502A: hybris_dladdr (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x80AA576: handleSignal(int, void) (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x4057EE7: ??? (in /lib/libpthread-2.26.so) ==23871== by 0x80A4632: main (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== ==23871== Conditional jump or move depends on uninitialised value(s) ==23871== at 0x80993A3: find_containing_symbol (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x80984AF: android_dladdr (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x809502A: hybris_dladdr (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x80AA576: handleSignal(int, void) (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x4057EE7: ??? (in /lib/libpthread-2.26.so) ==23871== by 0x80A4632: main (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== ==23871== Conditional jump or move depends on uninitialised value(s) ==23871== at 0x80993B6: find_containing_symbol (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x80984AF: android_dladdr (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x809502A: hybris_dladdr (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x80AA576: handleSignal(int, void) (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x4057EE7: ??? (in /lib/libpthread-2.26.so) ==23871== by 0x80A4632: main (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== ==23871== Invalid read of size 4 ==23871== at 0x80AA560: handleSignal(int, void) (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x4057EE7: ??? (in /lib/libpthread-2.26.so) ==23871== by 0x80A4632: main (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== Address 0xfee12a68 is on thread 1's stack ==23871== ==23871== ==23871== Process terminating with default action of signal 6 (SIGABRT) ==23871== at 0x47BE7BD: raise (in /lib/libc-2.26.so) ==23871== by 0x47C01C1: abort (in /lib/libc-2.26.so) ==23871== by 0x80AA61E: handleSignal(int, void) (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== by 0x4057EE7: ??? (in /lib/libpthread-2.26.so) ==23871== by 0x80A4632: main (in /home/savo/Downloads/mcpe-git/mcpelauncher-linux/mcpelauncher) ==23871== ==23871== HEAP SUMMARY: ==23871== in use at exit: 7,655,226 bytes in 34,111 blocks ==23871== total heap usage: 41,899 allocs, 7,788 frees, 7,858,972 bytes allocated ==23871== ==23871== LEAK SUMMARY: ==23871== definitely lost: 0 bytes in 0 blocks ==23871== indirectly lost: 0 bytes in 0 blocks ==23871== possibly lost: 6,616,148 bytes in 3 blocks ==23871== still reachable: 1,039,078 bytes in 34,108 blocks ==23871== of which reachable via heuristic: ==23871== stdstring : 173,352 bytes in 7,106 blocks ==23871== newarray : 32 bytes in 2 blocks ==23871== suppressed: 0 bytes in 0 blocks ==23871== Rerun with --leak-check=full to see details of leaked memory ==23871== ==23871== For counts of detected and suppressed errors, rerun with: -v ==23871== Use --track-origins=yes to see where uninitialised values come from ==23871== ERROR SUMMARY: 303848 errors from 6 contexts (suppressed: 0 from 0)>

MCMrARM commented 6 years ago

Hi, don't do --amd-workaround and then post the log again.

Savotu1 commented 6 years ago

Hi,

Without the amd fix gdb pshufb as being the issue.

Here is the log without the amd flag

log.txt

sorry about the upload its very long

Savotu1 commented 6 years ago

After a clean build and first run gdb says that the illegal instruction is pshufb

When you run with valgrind the game runs but very slow and is not playable.

Checking again with gdb at this time shows the illegal instruction is 0xec6ee725 phaddd %xmm3,%xmm3

Not sure if that helps or not, i know that phaddd is another ssse3 instruction which my cpu does not support, maybe you can add another workaround for that?

If you need any other logs just let me know.

Just wanted to add that i can copy the whole dir to an Intel laptop and everything just works with out a recompile.

Savotu1 commented 6 years ago

I found this intel-software-development-emulator no install needed just

../sde-external-8.12.0-2017-10-23-lin/sde -- ./mcpelauncher

It does not need installing and for me allows the game to run, loading is very slow however the game runs fine.

MCMrARM commented 6 years ago

Now, that I think of it: What CPU exactly do you use? (This is a question to everyone who has an Illegal instruction crash that does not happen on startup but later)

I might have an idea on how to implement this & fix it permanently.

Savotu1 commented 6 years ago

AMD Athlon(tm) II X2 255 Processor is my cpu

HybridZach commented 6 years ago

AMD Athlon(tm) II X3 450 Processor Running with the intel-software-development-emulator It crashes with this error... 4

If someone could help me run it with the ISDE and GDB so I can show you more, never used gdb before.