The plot thickens. Compiling with asan on ARM gives the following for downloadertest:
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xb6b19344 in pthread_cond_init () from /usr/lib/arm-linux-gnueabihf/libasan.so.1
#2 0xb6a70e96 in xmlNewRMutex__internal_alias () at ../../threads.c:308
#3 0xb6aa7fd8 in __xmlInitializeDict () at ../../dict.c:179
#4 0xb6927092 in pthread_once () from /lib/arm-linux-gnueabihf/libpthread.so.0
#5 0xb6a710da in xmlIsMainThread__internal_alias () at ../../threads.c:803
#6 0xb6a70916 in __xmlGenericError__internal_alias () at ../../globals.c:865
#7 0xb6a28ce2 in xmlInitParser__internal_alias () at ../../parser.c:14728
#8 0xb6a38110 in xmlInitParser__internal_alias () at ../../parser.c:15297
#9 xmlReadMemory__internal_alias (buffer=0xb3a0175c "<album><coverart><large>http://dummy</large></coverart></album>", size=63, URL=0x0, encoding=0x0,
options=257) at ../../parser.c:15293
#10 0x0005ce0a in LastFMDownloader::parseXML (this=0xbeffee80, xml=...) at ../src/lastfmdownloader.cpp:44
#11 0x0005d4ba in LastFMDownloader::download (this=0xbeffee80, artist=..., album=..., fname=...) at ../src/lastfmdownloader.cpp:75
#12 0x00056140 in Downloader_canned_Test::TestBody (this=0xb44008d0) at ../tests/download.cpp:54
#13 0x0008f2b0 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void> (object=0xb44008d0,
method=&virtual testing::Test::TestBody(), location=0xa50c0 "the test body") at /usr/src/gtest/src/gtest.cc:2078
#14 0x00087bd6 in testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=0xb44008d0,
method=&virtual testing::Test::TestBody(), location=0xa50c0 "the test body") at /usr/src/gtest/src/gtest.cc:2114
#15 0x0006628a in testing::Test::Run (this=0xb44008d0) at /usr/src/gtest/src/gtest.cc:2151
#16 0x00066d8c in testing::TestInfo::Run (this=0xb3402b90) at /usr/src/gtest/src/gtest.cc:2326
#17 0x00067632 in testing::TestCase::Run (this=0xb4a02980) at /usr/src/gtest/src/gtest.cc:2444
#18 0x00070790 in testing::internal::UnitTestImpl::RunAllTests (this=0xb3203dc0) at /usr/src/gtest/src/gtest.cc:4315
#19 0x00091034 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0xb3203dc0,
method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x70121 <testing::internal::UnitTestImpl::RunAllTests()>,
location=0xa74c0 "auxiliary test code (environments or event listeners)") at /usr/src/gtest/src/gtest.cc:2078
#20 0x0008969e in testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0xb3203dc0,
method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x70121 <testing::internal::UnitTestImpl::RunAllTests()>,
location=0xa74c0 "auxiliary test code (environments or event listeners)") at /usr/src/gtest/src/gtest.cc:2114
#21 0x0006e70c in testing::UnitTest::Run (this=0xd1c60 <testing::UnitTest::GetInstance()::instance>) at /usr/src/gtest/src/gtest.cc:3929
#22 0x000573ec in RUN_ALL_TESTS () at /usr/include/gtest/gtest.h:2288
#23 0x00056da0 in main (argc=1, argv=0xbefff344) at ../tests/download.cpp:109
The plot thickens. Compiling with asan on ARM gives the following for downloadertest:
Program received signal SIGSEGV, Segmentation fault. arm-linux- gnueabihf/ libasan. so.1 _internal_ alias () at ../../threads.c:308 linux-gnueabihf /libpthread. so.0 __internal_ alias () at ../../threads.c:803 or__internal_ alias () at ../../globals.c:865 _internal_ alias () at ../../parser. c:14728 _internal_ alias () at ../../parser. c:15297 _internal_ alias (buffer=0xb3a0175c "<album> <coverart> <large>http:// dummy</large> </coverart> </album> ", size=63, URL=0x0, encoding=0x0, c:15293 r::parseXML (this=0xbeffee80, xml=...) at ../src/ lastfmdownloade r.cpp:44 r::download (this=0xbeffee80, artist=..., album=..., fname=...) at ../src/ lastfmdownloade r.cpp:75 canned_ Test::TestBody (this=0xb44008d0) at ../tests/ download. cpp:54 :internal: :HandleSehExcep tionsInMethodIf Supported< testing: :Test, void> (object=0xb44008d0, :Test:: TestBody( ), location=0xa50c0 "the test body") at /usr/src/ gtest/src/ gtest.cc: 2078 :internal: :HandleExceptio nsInMethodIfSup ported< testing: :Test, void> (object=0xb44008d0, :Test:: TestBody( ), location=0xa50c0 "the test body") at /usr/src/ gtest/src/ gtest.cc: 2114 gtest/src/ gtest.cc: 2151 :TestInfo: :Run (this=0xb3402b90) at /usr/src/ gtest/src/ gtest.cc: 2326 :TestCase: :Run (this=0xb4a02980) at /usr/src/ gtest/src/ gtest.cc: 2444 :internal: :UnitTestImpl: :RunAllTests (this=0xb3203dc0) at /usr/src/ gtest/src/ gtest.cc: 4315 :internal: :HandleSehExcep tionsInMethodIf Supported< testing: :internal: :UnitTestImpl, bool> (object=0xb3203dc0, :internal: :UnitTestImpl: :*)(testing: :internal: :UnitTestImpl * const)) 0x70121 <testing: :internal: :UnitTestImpl: :RunAllTests( )>, 0xa74c0 "auxiliary test code (environments or event listeners)") at /usr/src/ gtest/src/ gtest.cc: 2078 :internal: :HandleExceptio nsInMethodIfSup ported< testing: :internal: :UnitTestImpl, bool> (object=0xb3203dc0, :internal: :UnitTestImpl: :*)(testing: :internal: :UnitTestImpl * const)) 0x70121 <testing: :internal: :UnitTestImpl: :RunAllTests( )>, 0xa74c0 "auxiliary test code (environments or event listeners)") at /usr/src/ gtest/src/ gtest.cc: 2114 :UnitTest: :Run (this=0xd1c60 <testing: :UnitTest: :GetInstance( )::instance> ) at /usr/src/ gtest/src/ gtest.cc: 3929 gtest/gtest. h:2288 download. cpp:109
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xb6b19344 in pthread_cond_init () from /usr/lib/
#2 0xb6a70e96 in xmlNewRMutex_
#3 0xb6aa7fd8 in __xmlInitializeDict () at ../../dict.c:179
#4 0xb6927092 in pthread_once () from /lib/arm-
#5 0xb6a710da in xmlIsMainThread
#6 0xb6a70916 in __xmlGenericErr
#7 0xb6a28ce2 in xmlInitParser_
#8 0xb6a38110 in xmlInitParser_
#9 xmlReadMemory_
options=257) at ../../parser.
#10 0x0005ce0a in LastFMDownloade
#11 0x0005d4ba in LastFMDownloade
#12 0x00056140 in Downloader_
#13 0x0008f2b0 in testing:
method=&virtual testing:
#14 0x00087bd6 in testing:
method=&virtual testing:
#15 0x0006628a in testing::Test::Run (this=0xb44008d0) at /usr/src/
#16 0x00066d8c in testing:
#17 0x00067632 in testing:
#18 0x00070790 in testing:
#19 0x00091034 in testing:
method=(bool (testing:
location=
#20 0x0008969e in testing:
method=(bool (testing:
location=
#21 0x0006e70c in testing:
#22 0x000573ec in RUN_ALL_TESTS () at /usr/include/
#23 0x00056da0 in main (argc=1, argv=0xbefff344) at ../tests/