|
Boost Users : |
Subject: Re: [Boost-users] [Boost.Filesystem] crashes in static destruction of global string object
From: Nguyen Huu Hai (huuhai.nguyen_at_[hidden])
Date: 2016-10-10 09:27:35
On Mon, Oct 10, 2016 at 7:49 AM, Gavin Lambert <gavinl_at_[hidden]> wrote:
> On 8/10/2016 03:45, Nguyen Huu Hai wrote:
>>
>> libs/filesytem/src/portability.cpp defines valid_posix as a
>> std::string object instead of a const char * pointer. May I know if
>> there are reasons for that?
>>
>> I'm using Boost.Filesystem as a shared library and my processes crash
>> on exit with stack traces pointing to the static destruction of
>> valid_posix. Making it const char* fixes the crashes.
>
>
> Are you using the libc as a static or shared library? It needs to be used
> as a shared library when using other shared libraries.
My apologies. It turned out to be a bug in my code. One of the
processes under valgrind generated a good trace pointing me to the
source of the bug.
Thank you.
Hai
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net