FS#43796 - [pcsx2] crashes: "Illegal instruction (core dumped)" - fixed by a rebuild

Attached to Project: Community Packages
Opened by Sam (smudge) - Thursday, 12 February 2015, 07:14 GMT
Last edited by Maxime Gauduin (Alucryd) - Sunday, 15 February 2015, 13:46 GMT
Task Type Bug Report
Category Packages: Multilib
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Hi,

On a fully up-to-date 64bit system pcsx2 1.3.1-1 crashes immediately saying only "Illegal instruction (core dumped)" in the terminal. I tried reinstalling and re-downloading but the bug remained.

Additional info:
uname: Linux 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86_64
CPU Model name: AMD FX(tm)-8350 Eight-Core Processor
nvidia: 346.35-6

One message in the journal on each run:
kernel: traps: pcsx2[9506] trap invalid opcode ip:83a8d83 sp:ffdacf34 error:0 in pcsx2[8048000+4f9000]
kernel: traps: pcsx2[9540] trap invalid opcode ip:83a8d83 sp:fff18a44 error:0 in pcsx2[8048000+4f9000]

Last few lines of an strace:
9771 brk(0xbd8b000) = 0xbd8b000
9771 mmap2(NULL, 9441280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff2205000
9771 mmap2(NULL, 9441280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff1904000
9771 mmap2(NULL, 9441280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff1003000
9771 mmap2(NULL, 200704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff0fd2000
9771 mmap2(NULL, 200704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff0fa1000
9771 --- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPN, si_addr=0x83a8d83} ---
9771 +++ killed by SIGILL (core dumped) +++

Using the abs to rebuild with a default makepkg.conf (and one with -march=native & -j8) solved the problem, pcsx2 worked fine.
That made me think the bug was somewhere in the build process rather than upstream so thought I'd let you know.
Thanks.

Steps to reproduce:
Install and run.
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Sunday, 15 February 2015, 13:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.3.1-2 fixed it. Thx for testing.
Comment by Maxime Gauduin (Alucryd) - Thursday, 12 February 2015, 18:02 GMT
Thx for the report, I built it in a clean chroot with mtune=generic though (unless something changed upstream that messes with build flags). Does the latest pcsx2-git build on my unofficial repo http://pkgbuild.com/~alucryd/alucryd-multilib/x86_64/ behave the same way (it's also built in a clean chroot)?
Comment by Sam (smudge) - Friday, 13 February 2015, 07:58 GMT
I tried pcsx2-git-1.3.1.r895.f2657ae-1-x86_64 from your repo but got the same result ("kernel: traps: pcsx2[817] trap invalid opcode ip:83a8c03 sp:ffe9b504 error:0 in pcsx2[8048000+4f9000]" in the journal).

So I thought I'd try building in a clean chroot. Followed the instructions at DeveloperWiki:Building in a Clean Chroot, the classic way, installed multilib-devel and it built and ran fine.
I've not done that before so there's a good chance of mistakes.
Comment by Maxime Gauduin (Alucryd) - Friday, 13 February 2015, 10:17 GMT
Ok, turns out upstream now sets march=native dy default, had to disable it explicitely. I just pushed 1.3.1-2, does it still crash?
Comment by Sam (smudge) - Sunday, 15 February 2015, 02:55 GMT
No crashes, 1.3.1-2 is working well.

Thank You.

Loading...