Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304627 - app-text/poppler installs wrong poppler-config.h which makes pdftex and probably other applications randomly crash
Summary: app-text/poppler installs wrong poppler-config.h which makes pdftex and proba...
Status: RESOLVED DUPLICATE of bug 304407
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-11 20:53 UTC by Martin Väth
Modified: 2010-02-11 21:08 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2010-02-11 20:53:49 UTC
This analysis costed me several hours:
Origin was that pdftex randomly crashed when reading pdf pictures.

The cause is that the header file
   /usr/include/poppler/poppler-config.h
does *not* define MULTITHREADED while on the other hand,
MULTITHREADED is defined during compilation of the poppler library.

In my particular case this causes that the poppler library
will expect that the class GlobalParams (in GlobalParams.{h,cc})
contains certain private variables while on the other hand the
application pdftex from texlive-core did not allocate space for
that variables during instantiation of the GlobalParams class.
The effect is that the memory reserved for this class was too small
and everything can happen (usually the segfault happened already
in the constructor by calling some fontconfig libraries; but
fontconfig is ok - the problem is just that it allocates memory
which by accident already overrides the data of the class).

The solution is of course to make sure that poppler-config.h
matches with the compile-time configuration of poppler; probably
some cmake configuration needs to be fixed for this, I do not
want to learn cmake and therefore cannot help with this.
Of course, texlive-core (and probably also several other
applications) need to be reemerged after fixing the header files.
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2010-02-11 21:08:26 UTC

*** This bug has been marked as a duplicate of bug 304407 ***