Program terminated with signal 6, Aborted on class destructor call.
Jonathan Wakely
jwakely.gcc@gmail.com
Thu Aug 23 08:12:00 GMT 2018
On Thu, 23 Aug 2018 at 08:03, Liu Hao wrote:
>
> 在 2018-08-23 14:54, Pankaj Buddhe 写道:
> > Program terminated with signal 6, Aborted on simple class destructor call.
> > we use g++ 4.9.2 on RHEL 6 machine. Please give me any hint/suggestion to
> > debug further.
> >
> >
> > #6 0x0807fdb7 in std::thread::~thread() () at
> > /usr/local/include/c++/4.9.2/thread:143
> >
>
> Looks like you didn't `.join()` a thread before its destructor.
Yes, looks like a simple logic error in your code, not a problem with GCC:
See https://en.cppreference.com/w/cpp/thread/thread/%7Ethread
More information about the Gcc-help
mailing list