Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305003 - Some ~amd64 (testing arch.) applications crash with app-text/poppler-0.12.3
Summary: Some ~amd64 (testing arch.) applications crash with app-text/poppler-0.12.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High critical
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-14 00:48 UTC by Kovid Goyal
Modified: 2010-02-16 18:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output from emerge --info (t,19.38 KB, text/plain)
2010-02-14 00:49 UTC, Kovid Goyal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kovid Goyal 2010-02-14 00:48:58 UTC
Various poppler based application crash on my ~amd64 system. 

Here's a simple test case that reproduces the crash (all it does is instantiate the poppler params object

#include <GlobalParams.h>
#include <stdio.h>

// gcc -pthread -I/usr/include/poppler ~/test.cpp -o test -lpoppler

int main(int argc, char **argv) {
    printf("Initalizing poppler\n");
    globalParams = new GlobalParams();
    printf("finalizing poppler\n");
    delete globalParams;
    printf("exiting\n");
    return 0;
}


Compile it as

gcc -pthread -I/usr/include/poppler ~/test.cpp -o test -lpoppler

The run ./test

On my system it crashes in libc with the following bt

Initalizing poppler                                                                
finalizing poppler                                                                 
*** glibc detected *** ./test: double free or corruption (!prev): 0x0000000001134010 ***
======= Backtrace: =========                                                            
/lib/libc.so.6(+0x723e6)[0x7f74fb8393e6]                                                
/lib/libc.so.6(cfree+0x6c)[0x7f74fb83e18c]                                              
./test[0x4009bd]                                                                        
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f74fb7e5bbd]                                  
./test[0x400879]                                                                        

Note that if you compile it without threading (No -pthread) it works. It also works on my ~x86 system with or without threading.

I have already run revdep-rebuild, emerge -e system and re-emerged poppler.



Reproducible: Always

Steps to Reproduce:
Comment 1 Kovid Goyal 2010-02-14 00:49:54 UTC
Created attachment 219549 [details]
Output from emerge --info
Comment 2 Ben de Groot (RETIRED) gentoo-dev 2010-02-16 15:18:19 UTC
This should be fixed now. Try poppler-0.12.3-r5.
Comment 3 Kovid Goyal 2010-02-16 18:59:25 UTC
Thanks, -r5 works for me