Wine crashes with ~/.wine on mount point with noexec set ind

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Sjors Gielen

Wine crashes with ~/.wine on mount point with noexec set ind

Post by Sjors Gielen »

Hey all,

I just decided I was too much out of space on my normal Linux partition.
I had a spare partition, so I mkfs.ext4'd it, created a directory 'wine'
owned by me, moved all contents of ~/.wine to it, and ran a sudo mount
-o bind /media/sdb2/wine /home/dazjorz/.wine. I proceeded to take a look
inside and everything was, of course, just fine. When I ran "wine
someAppThatHadAlwaysJustWorked.exe", I first got a crash in
winedevice.exe, then in that app.

Then I noticed that the partition /dev/sdb2 was mounted noexec, so I
umounted ~/.wine and /media/sdb2, remounted /dev/sdb2 with exec, and
remounted ~/.wine - and it all worked again.

This is with Wine 1.1.24. Has this always been behavior, or is it a
regression somewhere? Is there anything that can be changed about it?

I know how to reproduce (and so do you), so a back trace can be
retrieved quite easily.

Sjors

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-us ... chment.pgp>
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine crashes with ~/.wine on mount point with noexec set

Post by vitamin »

Sjors Gielen wrote:Then I noticed that the partition /dev/sdb2 was mounted noexec, so I
umounted ~/.wine and /media/sdb2, remounted /dev/sdb2 with exec, and
remounted ~/.wine - and it all worked again.

This is with Wine 1.1.24. Has this always been behavior, or is it a
regression somewhere?
Wine will not work / run programs from mount mounted with noexec. It's always been the case.
Sjors Gielen

Wine crashes with ~/.wine on mount point with noexec set ind

Post by Sjors Gielen »

vitamin wrote:
Sjors Gielen wrote:
Then I noticed that the partition /dev/sdb2 was mounted noexec, so I
umounted ~/.wine and /media/sdb2, remounted /dev/sdb2 with exec, and
remounted ~/.wine - and it all worked again.

This is with Wine 1.1.24. Has this always been behavior, or is it a
regression somewhere?
Wine will not work / run programs from mount mounted with noexec. It's always been the case.
Of course it won't. I guessed that was by design. Yet, crashing seems
like a little too much for me.

Sjors

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-us ... chment.pgp>
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine crashes with ~/.wine on mount point with noexec set

Post by vitamin »

Sjors Gielen wrote:Of course it won't. I guessed that was by design. Yet, crashing seems like a little too much for me.
There isn't much Wine can do, it's "crashing" outside of Wine. Wine doesn't even have a chance to load the program in question.
Locked