Re: x3 linker error with separate TU

Larry Evans <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 05/26/2017 03:44 PM, Larry Evans wrote:
> On 05/26/2017 12:47 PM, Olaf Peter wrote:
[snip]

>> BTW, during investigating I played with x3's calc9 and wrote a CMake 
>> file, where a static link library was created. The resulting exe crashed:
> [snip]
> 
>> 11.
>>     (gdb) bt
>> 12.
>>     #0  0x000000000042bcd8 in
>>     boost::shared_ptr<boost::spirit::x3::tst<char, client::ast::optoken>
>>      >::operator-> (this=0x10) at
>                             ^^^^ highly suspicious!  I doubt 0x10
>                                  is a valid address.
>>     /usr/include/boost/smart_ptr/shared_ptr.hpp:693
> [snip]
> 
>>
>> Did I use X3 in way not intended to be used? Is this related to the 
>> linker error on topic here? 
> Sorry, I've no idea.
[snip]
However, I wouldn't think so.  Instead, it seems more like a memory
problem.  You might try:

http://valgrind.org/docs/manual/quick-start.html#quick-start.mcrun

Unfortunately, I've little experience with it; hence, I probably
won't be much help in case you have problems with using valgrind :(

-regards,
Larry


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.