[Llvm-bgq-discuss] Problems with binaries compiled with anything else than -O0

Biddiscombe, John A. biddisco at cscs.ch
Tue Mar 18 18:20:21 CDT 2014


Hal,

Simple serialize test works fine (unfortunately, sort of - cos it’d make
debug much easier if it failed too).

One notable thing is that when I compiled with gcc 4.8.2 in release mode
it also dies in a similar place on startup inside boost serialisation code.

I’ll revisit this tomorrow hopefully

JB

On 19/03/14 00:09, "Hal Finkel" <hfinkel at anl.gov> wrote:

>----- Original Message -----
>> From: "John A. Biddiscombe" <biddisco at cscs.ch>
>> To: "Hal Finkel" <hfinkel at anl.gov>, "thom heller"
>><thom.heller at gmail.com>
>> Cc: llvm-bgq-discuss at lists.alcf.anl.gov
>> Sent: Tuesday, March 18, 2014 5:49:01 PM
>> Subject: Re: [Llvm-bgq-discuss] Problems with binaries compiled with
>>anything else than -O0
>> 
>> Hal
>> 
>> Would core files from my machine be any use?
>
>Can you tell if this is a dynamic_cast failure?
>
>> 
>> A stack trace of the fail is here, but it only shows that during init
>> of
>> boost serialisation, things die.
>> http://pastebin.com/0f1phPvu
>> 
>> Make me wonder if a simple boost serialise test wouldn't show the
>> same
>> fault … I’ll give that a try.
>
>okay, thanks; let me know.
>
> -Hal
>
>> 
>> JB
>> 
>> 
>> 
>> 
>> On 18/03/14 07:51, "Hal Finkel" <hfinkel at anl.gov> wrote:
>> 
>> >Thomas,
>> >
>> >Unfortunately, going from -O0 to -O1 causes a lot of internal
>> >changes, it
>> >is not as simple as added compile flags. Do you have some core files
>> >I
>> >could look at?
>> >
>> > -Hal
>> >
>> >----- Original Message -----
>> >> From: "Thomas Heller" <thom.heller at gmail.com>
>> >> To: llvm-bgq-discuss at lists.alcf.anl.gov
>> >> Sent: Monday, March 17, 2014 4:32:29 PM
>> >> Subject: [Llvm-bgq-discuss] Problems with binaries compiled with
>> >>anything	else than -O0
>> >> 
>> >> Hi List,
>> >> 
>> >> We are currently trying to streamline our BGQ support for HPX. As
>> >> it
>> >> turns
>> >> out, our builds segfault at right at the beginning in some static
>> >> initialization segment of a dynamic library when compiling our
>> >> code
>> >> with -O3
>> >> (in fact, anything else above -O0 leads to the same segfault).
>> >> Everything
>> >> works splendid when doing the same with -O0. Unfortunately, I was
>> >> not
>> >> able to
>> >> extract a simple enough testcase to reproduce the problem yet. I
>> >> was
>> >> wondering
>> >> if there is a list of compile flags added when going from -O0 to
>> >> -O1
>> >> which
>> >> might be the culprit. I am running out of ideas here... I was
>> >> thinking about
>> >> LTO, but it is not explicitly enabled in our builds.
>> >> 
>> >> Hope someone can help,
>> >> Thomas
>> >> _______________________________________________
>> >> llvm-bgq-discuss mailing list
>> >> llvm-bgq-discuss at lists.alcf.anl.gov
>> >> https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
>> >> 
>> >
>> >--
>> >Hal Finkel
>> >Assistant Computational Scientist
>> >Leadership Computing Facility
>> >Argonne National Laboratory
>> >_______________________________________________
>> >llvm-bgq-discuss mailing list
>> >llvm-bgq-discuss at lists.alcf.anl.gov
>> >https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
>> 
>> 
>
>-- 
>Hal Finkel
>Assistant Computational Scientist
>Leadership Computing Facility
>Argonne National Laboratory



More information about the llvm-bgq-discuss mailing list