Discussion:
[Wine] Automatically close Windows program on crash?
Chris Angelico
2015-02-07 10:15:50 UTC
Permalink
I have a program that, under certain circumstances, will crash out
with the "Serious Error" popup. In order to better probe the crash
with an automated test harness, I'd like to be able to skip that popup
and just have the process terminate. Is there a way to do that? Tell
Wine "hey, if this program segfaults, just close it without asking
me"?

Hoping this is something really easy, but I couldn't find anything on
'man wine' or similar.

ChrisA
Bruno Jesus
2015-02-08 02:06:39 UTC
Permalink
Post by Chris Angelico
I have a program that, under certain circumstances, will crash out
with the "Serious Error" popup. In order to better probe the crash
with an automated test harness, I'd like to be able to skip that popup
and just have the process terminate. Is there a way to do that? Tell
Wine "hey, if this program segfaults, just close it without asking
me"?
Hoping this is something really easy, but I couldn't find anything on
'man wine' or similar.
Probably this is what you are looking for:
http://wiki.winehq.org/FAQ#head-c857c433cf9fc1dcd90b8369ef75c325483c91d6
Post by Chris Angelico
ChrisA
Best regards,
Bruno
Chris Angelico
2015-02-08 02:18:57 UTC
Permalink
Content preview: On Sun, Feb 8, 2015 at 1:06 PM, Bruno Jesus wrote: > Probably
this is what you are looking for: > http://wiki.winehq.org/FAQ#head-c857c433cf9fc1dcd90b8369ef75c325483c91d6
Yep, that looks like it, thanks! It's unfortunately hard to search for something
like this - any search involving "wine crash" will be talking about specific
programs that crash and how to deal with it (to stop them from crashing),
not about the crash dialog itself. But thanks, that's what I needed! [...]


Content analysis details: (3.8 points, 3.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(rosuav[at]gmail.com)
-0.0 SPF_PASS SPF: sender matches SPF record
1.0 MISSING_HEADERS Missing To: header
-0.0 BAYES_20 BODY: Bayes spam probability is 5 to 20%
[score: 0.1939]
2.8 MALFORMED_FREEMAIL Bad headers on message from free email service
0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
Post by Bruno Jesus
http://wiki.winehq.org/FAQ#head-c857c433cf9fc1dcd90b8369ef75c325483c91d6
Yep, that looks like it, thanks! It's unfortunately hard to search for
something like this - any search involving "wine crash" will be
talking about specific programs that crash and how to deal with it (to
stop them from crashing), not about the crash dialog itself. But
thanks, that's what I needed!

ChrisA
Georg Bege
2015-02-07 12:29:09 UTC
Permalink
This kind of a "popup" issue, sounds like what windows does when
any program hits the abort() function.
Can you make a screenshot of that window?
Maybe wine tries to exacly emulate what windows does, in that case I
think you can attach
a debugger to the process?
Post by Chris Angelico
I have a program that, under certain circumstances, will crash out
with the "Serious Error" popup. In order to better probe the crash
with an automated test harness, I'd like to be able to skip that popup
and just have the process terminate. Is there a way to do that? Tell
Wine "hey, if this program segfaults, just close it without asking
me"?
Hoping this is something really easy, but I couldn't find anything on
'man wine' or similar.
ChrisA
--
Georg Bege
Mail: ***@bege.email
XMPP: ***@ninth-art.de
IRC: megaTherion @ Freenode


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-users/attachments/20150207/ecac93e6/attach
Loading...