[C++-sig] Crash during exception translation using Intel Compiler 9.1 and optimized builds

David Abrahams dave at boost-consulting.com
Sun Nov 26 16:15:08 CET 2006


Pierre <pbaillargeon at innobec.com> writes:

> David Abrahams <dave <at> boost-consulting.com> writes:
>
>> 
>> Pierre Baillargeon <pbaillargeon <at> innobec.com> writes:
>> 
>> > We're using the framework to translate C++ exception to Python 
>> > exceptions. The code works in debug builds but crashes in optimized 
>> > builds. Were using Intel Compiler 9.1 on Windows.
>> >
>> > Has anyone experienced this?
>> >
>> > Any possible workaround?
>> >
>> > The symptoms are:
>> >
>> > - a crash under _is_exception() in MSVCR80.DLL, called from 
>> > handle_exception_impl().
>> 
>> Almost certainly a compiler bug unless your own code is corrupting
>> memory and/or code.
>
> Indeed, I found by trial and error that reducing the aggressiveness of inlining
> fixed the problem. By switching from "inline whatever the compiler wants" to
> "inline only function specified as inline" it fixed the problem.

I hope you can make a report to Intel and get them to fix the bug.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list