Crash in poppler 0.71.0 related to poppler_date_parse
I am investigating a crash of Evince when opening a PDF document containing an annotation. I use Arch Linux and poppler 0.71.0. Apparently the problem is directly related to poppler, as it can be reproduced with poppler-glib-demo
as follows:
- Open this example PDF document with
poppler-glib-demo
. - Navigate to the "Annotations" tab.
- Click on the annotation's type "Text".
This will result in a crash with the following error message:
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
Aborted (core dumped)
The stack trace reveals that the problem might be related to poppler_date_parse
:
Stack trace of thread 22891:
#0 0x00007f05bfcc4d7f raise (libc.so.6)
#1 0x00007f05bfcaf672 abort (libc.so.6)
#2 0x00007f05bed6a58e _ZN9__gnu_cxx27__verbose_terminate_handlerEv (libstdc++.so.6)
#3 0x00007f05bed70dfa _ZN10__cxxabiv111__terminateEPFvvE (libstdc++.so.6)
#4 0x00007f05bed70e57 _ZSt9terminatev (libstdc++.so.6)
#5 0x00007f05bed710ac __cxa_throw (libstdc++.so.6)
#6 0x00007f05bed6c6dd _ZSt19__throw_logic_errorPKc (libstdc++.so.6)
#7 0x00007f05c0a13465 poppler_date_parse (libpoppler-glib.so.8)
#8 0x000055a56705b131 n/a (/home/jonas/poppler/poppler-glib-demo)
After a downgrade to poppler 0.70.1, this crash does not happen any more, so it seems to have been introduced in the latest release.