[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux
From: |
Lobron, David |
Subject: |
Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux |
Date: |
Mon, 11 Dec 2017 20:10:07 +0000 |
Hey David-
>>> If the failure is what I suspect that it is, then it’s a problem caused by
>>> mixing C++ and Objective-C exception unwinding, so it won’t be possible to
>>> reproduce in a single file. You will need to throw an exception from
>>> Objective-C++ and have it pass through stack frames from an Objective-C
>>> compilation unit that includes an @finally block that runs some code, and
>>> then be caught in an Objective-C++ compilation unit.
I created three files: a .mm file that contains main(), a .mm that throws an
ObjC exception, and a .m that passes the ObjC exception through from a @finally
block back to the .mm file that contains main. I think I'm getting closer,
because my debug output now has several "Fight!" clauses (see below) but all
the personality classes are of type GNUCOBJC. I haven't been able to coax it
to emit GNUCC++.
I've attached the three files, which I compile into separate .o files and then
link (compile/link command is also attached).
Do you have any other ideas for how I can get an exception of "Class: GNUCC++"
to appear, instead of just GNUCOBJC?
Thank you,
David
compile.sh
Description: compile.sh
ExceptionPersonality.mm
Description: ExceptionPersonality.mm
RunTest.mm
Description: RunTest.mm
TestExceptionPersonality.m
Description: TestExceptionPersonality.m
ATT00001.txt
Description: ATT00001.txt
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, (continued)
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/06
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/07
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/07
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/07
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/07
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/07
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/11
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/11
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/11
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/11
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux,
Lobron, David <=
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/12
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/12
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/12
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/18
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/18
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/18
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/18
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/19
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, David Chisnall, 2017/12/19
- Re: Mysterious crash in NSRunLoop, using libobjc2 on Linux, Lobron, David, 2017/12/20