Re: Solaris 11 Sparc crash in std::call_once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 21, 2018 at 5:10 AM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
> On Tue, 21 Aug 2018 at 10:08, Jeffrey Walton wrote:
>> The code is crashing on Solaris 11 Sparc.
>
> What kind of crashing? Segfault? Bus error?

My bad, on Solaris it is a SIGSEGV:

(gdb) r v
...

[New Thread 1 (LWP 1)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0x00000001005be6a8 in
std::call_once<InitializeInteger::InitializeInteger()::<lambda()> >
(__once=...,
    __f=<unknown type in /home/test/cryptest.exe, CU 0x93609c, DIE
0x97266d>) at /usr/gcc/7/include/c++/7.3.0/mutex:676
676           __once_callable = std::__addressof(__callable);

On Linux without -pthread the code throws a std::system_error at the same place.

Jeff



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux