5.20 staging with new .wine runs once, crashes every subsequent time

Questions about Wine on Linux
Post Reply
invisible kid
Level 2
Level 2
Posts: 40
Joined: Tue Dec 24, 2019 3:23 pm

5.20 staging with new .wine runs once, crashes every subsequent time

Post by invisible kid » Sat Jan 09, 2021 6:17 pm

Never ran into this one before so throwing up here in case it looks familiar to someone. LFS building from source

rm -rf ~/.wine-5.20
WINEPREFIX=~/.wine-5.20 winecfg

It works fine.

If I exit and wait for all processes to end and try to run again I get

002c:fixme:winediag:LdrInitializeThunk wine-staging 5.20 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
wine: Unhandled page fault on execute access to 0000000000000000 at address 0000000000000000 (thread 0050), starting debugger...
wine: Unhandled page fault on execute access to 0000000000000000 at address 0000000000000000 (thread 009c), starting debugger...

I didn't notice anything with
WINEDEBUG=+seh
or strace, attaching the logs
logs.zip
(100.47 KiB) Downloaded 5 times

fargodwe
Level 5
Level 5
Posts: 338
Joined: Mon Oct 02, 2017 7:08 am

Re: 5.20 staging with new .wine runs once, crashes every subsequent time

Post by fargodwe » Thu Jan 14, 2021 5:12 pm

Did you install or run wine as root?

invisible kid
Level 2
Level 2
Posts: 40
Joined: Tue Dec 24, 2019 3:23 pm

Re: 5.20 staging with new .wine runs once, crashes every subsequent time

Post by invisible kid » Thu Jan 14, 2021 7:19 pm

Hi! Thank you very much for your reply! I install as root, but run as a regular user.

as reg user:
./configure (x2: 64 bit, 32 bit)
make (x2: 64 bit, 32 bit)

as root:
make install (x2: 64 bit, 32 bit)

as reg user:
rm -rf ~/.wine
winecfg (get the updating .wine popup, winecfg gui comes up)
<exit winecfg, wait till all threads are gone>
winecfg (crashes)

User avatar
Bob Wya
Level 12
Level 12
Posts: 2926
Joined: Sat Oct 16, 2010 7:40 pm
Location: Scotland
Contact:

Re: 5.20 staging with new .wine runs once, crashes every subsequent time

Post by Bob Wya » Fri Jan 15, 2021 3:14 pm

invisible kid wrote:
Thu Jan 14, 2021 7:19 pm
...
as reg user:

Code: Select all

./configure (x2: 64 bit, 32 bit)
make (x2: 64 bit, 32 bit)
as root:

Code: Select all

make install (x2: 64 bit, 32 bit)
as reg user:

Code: Select all

rm -rf ~/.wine
winecfg (get the updating .wine popup, winecfg gui comes up)
<exit winecfg, wait till all threads are gone>
winecfg (crashes
)
...
@invisible kid

Nothing is leaping out at me, in your attached logs.

Are you able to build vanilla Wine, from source, and run this?

We'd probably need to see the full logs for the actual build, plus the exact commands used.
If you can attach this - it would probably be easier!

Bob

invisible kid
Level 2
Level 2
Posts: 40
Joined: Tue Dec 24, 2019 3:23 pm

Re: 5.20 staging with new .wine runs once, crashes every subsequent time

Post by invisible kid » Fri Jan 15, 2021 4:43 pm

Thank you very much for the reply! I will do a vanilla build and test and report back with a capture of my process. I can say that this is the same method that I've used for 4.19 and previous, but that might not be useful info for the 5.x series. I will say that any issue that I have that isn't common is probably due to me using the LFS distro and conventions vice a debian-based distro for example.

I am going to try as soon as possible, but might be tied-up tonight and tomorrow. Thanks again, and apologies in advance if it is something I am doing.

invisible kid
Level 2
Level 2
Posts: 40
Joined: Tue Dec 24, 2019 3:23 pm

Re: 5.20 staging with new .wine runs once, crashes every subsequent time

Post by invisible kid » Fri Jan 15, 2021 5:45 pm

Interesting! In staging winecfg will come up the first time after removing .wine, but crash afterwords. Vanilla winecfg crashes first time after removing .wine. I've attached all logs. I think if you open 01-commands.txt it will show which logs map to which commands.
Attachments
wine-5.20-vanilla_capture.tar.xz
(220.02 KiB) Downloaded 3 times

invisible kid
Level 2
Level 2
Posts: 40
Joined: Tue Dec 24, 2019 3:23 pm

Re: 5.20 staging with new .wine runs once, crashes every subsequent time

Post by invisible kid » Fri Jan 15, 2021 7:29 pm

I should also mention I have no "real" /usr/local directory as LFS doesn't require it and leaves it up to you. So my /usr/local -> /usr. You'll see I do use --prefix=/usr. This has only caused me issues like twice out of ~500 packages, but nothing ever serious. For example something I think removed my link and made a real /usr/local directory, but I just manually moved everything and restored the link and the package worked fine. Like twice out of ~500 packages on current install, probably a lot more on previous installs.

User avatar
Bob Wya
Level 12
Level 12
Posts: 2926
Joined: Sat Oct 16, 2010 7:40 pm
Location: Scotland
Contact:

Re: 5.20 staging with new .wine runs once, crashes every subsequent time

Post by Bob Wya » Mon Jan 18, 2021 3:43 pm

Hi invisible kid,

I've got:

Code: Select all

CFLAGS="... -fpic ..."
in my Gentoo Portage master make.conf build file.

I noticed that your Wine build has:

Code: Select all

...  -fno-PIC ...
in your make logs.

My understanding is that building Wine libraries as non- position independent code can cause problems (as Wine needs to be able force some library mappings in Virtual Memory). Not 100% sure on this though, as I haven't dug into it any depth. :wink:

Bob

invisible kid
Level 2
Level 2
Posts: 40
Joined: Tue Dec 24, 2019 3:23 pm

Re: 5.20 staging with new .wine runs once, crashes every subsequent time

Post by invisible kid » Mon Jan 18, 2021 7:56 pm

Thanks for the reply Bob! That could be it IMO. I'm going to try it first thing in the morning, thx again.

invisible kid
Level 2
Level 2
Posts: 40
Joined: Tue Dec 24, 2019 3:23 pm

Re: 5.20 staging with new .wine runs once, crashes every subsequent time

Post by invisible kid » Mon Jan 18, 2021 10:25 pm

I ended up getting 6.0-rc6 vanilla and staging, and noticed they both run fine with a new .wine. Since my goal was to leave 4.x behind and start on a newer release base, I think I'll be okay with 6.x. So I guess I am going to move on. Thanks a lot for your help!

Post Reply