Opened 6 years ago
Closed 6 years ago
#57116 closed request (invalid)
MacOS 10.13 gives me a SIGABRT when throwing an exception
Reported by: | dkbarto | Owned by: | |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | ports | Version: | 2.5.3 |
Keywords: | Cc: | ||
Port: | gcc7 |
Description
The interesting thing is that the same code, compiled with the same compiler (gcc-mp-7 7.2) works just fine on 10.10. This doesn't happen on every throw, just one in particular.
While not a bug (necessarily) I'm looking for some guidance on where to look to track down the differences in the throw operation between the two OS releases. Any assistance would be useful.
The following code is the specific location where the SIGABRT comes from. We have pushed an exception into our stream and when we detect it we reformat the payload and throw it for a higher layer to capture and report. The contents of the payload matches the class Exception. Exception contains only POD members.
if ( m_packet->io.cmd_code == CmdAbort ) throw *(Exception*)m_packet->io.payload;
The code throws exceptions is multiple other locations, and those all work as expected.
Again, any hints would be very useful.
Change History (1)
comment:1 Changed 6 years ago by mf2k (Frank Schima)
Keywords: | gcc throw exception signal removed |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note that a "request" ticket type is only for requesting a new port.
There is nothing to fix here. Since Trac is not for tech support, follow-up on the Macports Users mailing list instead.