[Pkg-gmagick-im-team] Bug#622591: Backtrace & thread-localness

Виталий Филиппов vfilippov at custis.ru
Tue Aug 9 15:17:48 UTC 2011


My backtrace:

Program received signal SIGSEGV, Segmentation fault.
0xb639f382 in get_random_fd () at gen_uuid.c:156
156                     jrand_seed[0] = getpid() ^ (tv.tv_sec & 0xFFFF);
(gdb) bt
#0  0xb639f382 in get_random_fd () at gen_uuid.c:156
#1  0xb63a0678 in uuid_generate (out=0xa95f3d0 "") at gen_uuid.c:669
#2  0xb5cce704 in ChertVersion::create (this=0xa95f3cc) at  
../backends/chert/chert_version.cc:73
#3  0xb5c9c4f7 in ChertDatabase::create_and_open_tables (this=0xa95f3b8,  
block_size=8192) at ../backends/chert/chert_database.cc:195
#4  0xb5ca166f in ChertDatabase::ChertDatabase (this=0xa95f3b8,  
chert_dir=..., action=1, block_size=8192) at  
../backends/chert/chert_database.cc:144
#5  0xb5ca1c04 in ChertWritableDatabase::ChertWritableDatabase  
(this=0xa95f3b8, dir=..., action=1, block_size=8192) at  
../backends/chert/chert_database.cc:1027
#6  0xb5c459a9 in Xapian::WritableDatabase::WritableDatabase  
(this=0xa76c450, path=..., action=1) at ../backends/dbfactory.cc:480
#7  0xb5e54893 in XS_Search__Xapian__WritableDatabase_new1  
(my_perl=0x81a7008, cv=0xa5c657c) at ./XS/WritableDatabase.xs:11
#8  0x080e3c63 in Perl_pp_entersub (my_perl=0x81a7008) at pp_hot.c:2888
#9  0x080db232 in Perl_runops_standard (my_perl=0x81a7008) at run.c:40
#10 0x08081c7c in S_run_body (my_perl=0x81a7008) at perl.c:2303
#11 perl_run (my_perl=0x81a7008) at perl.c:2233
#12 0x080657af in main (argc=4, argv=0xbffff064, env=0xbffff078) at  
perlmain.c:117
(gdb) print jrand_seed
Cannot access memory at address 0x4

jrand_seed is declared thread-local in the source. If you make it non-TLS,  
the segfault also goes away...
So, does this mean that ImageMagick corrupts thread-local storage in some  
way?

-- 
With best regards,
     Vitaliy Filippov





More information about the Pkg-gmagick-im-team mailing list