curl-library
Re: Question about compatibility with TBB allocator
Date: Tue, 18 Sep 2012 21:37:53 -0700 (PDT)
Thanks for the reply. My link line is
g++ -m64 -L/usr/lib64/nptl -rdynamic test__all.o -Wl,--start-group -Wl,--end-group -L/tools/qt/4.7.0/linux64/lib -lQtCore -L/tools/libcurl/lib -lcurl -lnsl
-lrt -lpthread -lm -ldl -L/tools/tbb/lib -ltbbmalloc_proxy -ltbbmalloc -o my_test
When it turns, it segfaults at exit (cleaning up some Qt static data):
#0 0x00002aaaae19961e in rml::internal::FreeBlockPool::returnBlock(rml::internal::Block*) () from /data/rromano/13.0/acds/quartus/linux64/libtbbmalloc.so.2
#1 0x00002aaaae19b2e5 in safer_scalable_free () from /data/rromano/13.0/acds/quartus/linux64/libtbbmalloc.so.2
#2 0x00002aaaadf94039 in free () from /data/rromano/13.0/acds/quartus/linux64/libtbbmalloc_proxy.so.2
#3 0x000000000040f350 in mem_delete_wrapper(void*, char const**) ()
#4 0x000000000040f3c5 in operator delete(void*) ()
#5 0x00002aaaac467662 in QReadWriteLock::~QReadWriteLock() () from /data/rromano/13.0/acds/quartus/linux64/libQtCore.so.4
#6 0x00002aaaac4e6058 in ?? () from /data/rromano/13.0/acds/quartus/linux64/libQtCore.so.4
#7 0x0000003b32a337fe in __cxa_finalize () from /lib64/libc.so.6
#8 0x00002aaaac44fcb3 in ?? () from /data/rromano/13.0/acds/quartus/linux64/libQtCore.so.4
#9 0x00007fffffffd4d0 in ?? ()
#10 0x00002aaaac5d2501 in _fini () from /data/rromano/13.0/acds/quartus/linux64/libQtCore.so.4
#11 0x00007fffffffd4d0 in ?? ()
Removing QtCore or libcurl from the link line generates a successfully running program.
Removing just TBB proxy (that enables the TBB allocator) also generates a successfully running program.
Mysterious!
________________________________
From: Lijo Antony <lta@one.com>
To: curl-library@cool.haxx.se
Sent: Tuesday, September 18, 2012 12:08 AM
Subject: Re: Question about compatibility with TBB allocator
On 09/18/2012 10:31 AM, Rob Romano wrote:
>
> Will post more later, just checking if anyone is using the threading
> building blocks allocator or Qt with libcurl.
I am developing a linux application in C++, which uses Qt 4.7.3 LGPL version, libcurl 7.24.0 and TBB(but not it's memory allocator). It might be too early to say, but I haven't faced any issue yet.
-lijo
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-19