https://bugs.winehq.org/show_bug.cgi?id=43579
Bug ID: 43579 Summary: starting any wine process on armv7l: Bus error (core dumped) Product: Wine Version: 2.15 Hardware: arm OS: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com CC: jacek@codeweavers.com, nerv@dawncrow.de Regression SHA1: 3b30002aecf7cd55970979f7e02a53866fe66f1f Distribution: Debian
I recently got a chromebook, and after setting up a debian chroot, decided to try wine. I compiled from git, which worked fine out of the box, but crashed trying to run anything more than --version:
(stretch)austin@localhost:~$ ./wine-git/wine cmd /c "echo hi" Bus error (core dumped)
I installed wine from the repository (1.8.7), which I noticed works: (stretch)austin@localhost:~$ /usr/bin/wine cmd /c "echo hi" hi
regression testing points to:
3b30002aecf7cd55970979f7e02a53866fe66f1f is the first bad commit commit 3b30002aecf7cd55970979f7e02a53866fe66f1f Author: Jacek Caban jacek@codeweavers.com Date: Mon Oct 24 17:48:49 2016 +0200
ntdll: Cache error information for cacheable handles with no fd.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
:040000 040000 aee6fddacd30e103f1d6e132eb6552d390714c7e ef03cabffd148f9ebf59c8503f7197b3238c7eae M dlls
uname -a: Linux localhost 3.14.0 #1 SMP PREEMPT Wed Jul 26 23:30:44 PDT 2017 armv7l GNU/Linux
I'm not very familiar with arm, so if there's some info that would be helpful, let me know.
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #1 from Austin English austinenglish@gmail.com --- Forgot to include originally: reverting on HEAD works. GCC is 6.3.0.
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #2 from Jacek Caban jacek@codeweavers.com --- Please attach server,tid,pid,process,ntdll,file,sync debug logs.
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #3 from Austin English austinenglish@gmail.com --- Created attachment 58989 --> https://bugs.winehq.org/attachment.cgi?id=58989 server,tid,pid,process,ntdll,file,sync log
Here you go Jacek
https://bugs.winehq.org/show_bug.cgi?id=43579
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
https://bugs.winehq.org/show_bug.cgi?id=43579
Aaron Franke arnfranke@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arnfranke@yahoo.com
--- Comment #4 from Aaron Franke arnfranke@yahoo.com --- Can you confirm that the problem exists directly after the specified commit and is absent directly before the specified commit?
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #5 from Austin English austinenglish@gmail.com --- (In reply to Aaron Franke from comment #4)
Can you confirm that the problem exists directly after the specified commit and is absent directly before the specified commit?
Yes, and reverting on master also works
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #6 from Austin English austinenglish@gmail.com --- Created attachment 58995 --> https://bugs.winehq.org/attachment.cgi?id=58995 log with patch reverted
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #7 from Austin English austinenglish@gmail.com --- I tested on aarch64 (via GCC Compiler Farm), which works in both: wine-1.9.21-148-g3b30002 and wine-2.18-123-g63d6dce
austin@gcc113:~/wine-git$ uname -a Linux gcc113 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:45:34 UTC 2016 aarch64 aarch64 aarch64 GNU/Linux
note that this was without X available, and some other dependencies, but I don't think ntdll should be affected.
I started a build last night on my chromebook to see if this still in git, but was unable to test before leaving for work this morning.
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #8 from Austin English austinenglish@gmail.com --- (In reply to Austin English from comment #7)
I tested on aarch64 (via GCC Compiler Farm), which works in both: wine-1.9.21-148-g3b30002 and wine-2.18-123-g63d6dce
austin@gcc113:~/wine-git$ uname -a Linux gcc113 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:45:34 UTC 2016 aarch64 aarch64 aarch64 GNU/Linux
note that this was without X available, and some other dependencies, but I don't think ntdll should be affected.
I started a build last night on my chromebook to see if this still in git, but was unable to test before leaving for work this morning.
Still present in wine-2.18-144-gee7ddd1ed3 on armv7l.
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #9 from Austin English austinenglish@gmail.com --- This may be a gcc bug, as wine-2.19-154-g17d43ef54e works with:
(stretch)austin@localhost:/var/host/media/removable/SD Card/wine-git-clang$ clang --version clang version 3.8.1-24 (tags/RELEASE_381/final) Target: armv7l-unknown-linux-gnueabihf Thread model: posix InstalledDir: /usr/bin
but not:
(stretch)austin@localhost:/var/host/media/removable/SD Card/wine-git-clang$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/6/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18)
https://bugs.winehq.org/show_bug.cgi?id=43579
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #10 from Austin English austinenglish@gmail.com --- This is fixed by https://source.winehq.org/git/wine.git/commitdiff/59963983606a96175567a4af00..., thanks Alexandre!
https://bugs.winehq.org/show_bug.cgi?id=43579
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |59963983606a96175567a4af005 | |3a5b2ef5a01be
https://bugs.winehq.org/show_bug.cgi?id=43579
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x
https://bugs.winehq.org/show_bug.cgi?id=43579
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|RESOLVED |REOPENED
--- Comment #11 from Austin English austinenglish@gmail.com --- Hm, seems I spoke too soon, that doesn't solve it, I still had clang artifacts.
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #12 from André H. nerv@dawncrow.de --- works for me, I get doubts about your setup :)
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #13 from Austin English austinenglish@gmail.com --- (In reply to André H. from comment #12)
works for me, I get doubts about your setup :)
What gcc version?
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #14 from André H. nerv@dawncrow.de --- (In reply to Austin English from comment #13)
(In reply to André H. from comment #12)
works for me, I get doubts about your setup :)
What gcc version?
gcc version 4.9.2 (Debian 4.9.2-10)
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #15 from André H. nerv@dawncrow.de --- Created attachment 59624 --> https://bugs.winehq.org/attachment.cgi?id=59624 guessed change
I doubt it, but does that help for any reason?
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #16 from Austin English austinenglish@gmail.com --- (In reply to André H. from comment #15)
Created attachment 59624 [details] guessed change
I doubt it, but does that help for any reason?
Nope, no change :(
https://bugs.winehq.org/show_bug.cgi?id=43579
--- Comment #17 from Jacek Caban jacek@codeweavers.com --- Created attachment 59962 --> https://bugs.winehq.org/attachment.cgi?id=59962 debug traces
Please attach new logs with this patch attached.
https://bugs.winehq.org/show_bug.cgi?id=43579
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #59624|0 |1 is obsolete| |
--- Comment #18 from André H. nerv@dawncrow.de --- Comment on attachment 59624 --> https://bugs.winehq.org/attachment.cgi?id=59624 guessed change
Any updates on this bug?
https://bugs.winehq.org/show_bug.cgi?id=43579
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1|59963983606a96175567a4af005 |364e04ce0ca011c4bf8087d4982 |3a5b2ef5a01be |283093766ee56 Status|REOPENED |RESOLVED Resolution|--- |FIXED
--- Comment #19 from Austin English austinenglish@gmail.com --- (In reply to André H. from comment #18)
Comment on attachment 59624 [details] guessed change
Any updates on this bug?
Hadn't had time to look recently. I just did, and ran into: https://github.com/dnschneid/crouton/issues/3695
which required updating my chroot. I built current HEAD (e6fc86e4a0a8396a345ae21fbe7be9210441d307), which worked out of the box (woo!). I then tried wine-2.18-144-gee7ddd1ed3 (from #8), which still failed. I was going to do a git bisect, but when looking at git log for possible relevant commits, I found 364e04ce0ca011c4bf8087d4982283093766ee56. I cherry picked that on top of wine-2.18-144-gee7ddd1ed3, which gave me a working build as well.
So, fixed by 364e04ce0ca011c4bf8087d4982283093766ee56. Thanks Andre/Jacek for looking, and Alexandre for fixing!
Next blocker for winetest on that platform is bug 43938.
https://bugs.winehq.org/show_bug.cgi?id=43579
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #20 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.11.
https://bugs.winehq.org/show_bug.cgi?id=43579
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@winehq.org Target Milestone|2.0.x |---
--- Comment #21 from Michael Stefaniuc mstefani@winehq.org --- Remove 2.0.x Target Milestone as that tree is closed now.