Bug 98786 - evince crashes on document reload
Summary: evince crashes on document reload
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: glib frontend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-19 17:46 UTC by Jason Crain
Modified: 2016-11-21 07:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
ParkoszLatinPolish1.pdf (81.94 KB, application/pdf)
2016-11-19 17:46 UTC, Jason Crain
Details
Use-g_slice_new0-for-PopplerActionLayer.patch (1022 bytes, patch)
2016-11-19 17:51 UTC, Jason Crain
Details | Splinter Review

Description Jason Crain 2016-11-19 17:46:01 UTC
Created attachment 128073 [details]
ParkoszLatinPolish1.pdf

Forwarding from https://bugs.debian.org/809388

The attached file will occasionally crash evince when it is being reloaded.  You can reproduce this by opening the file in evince and hold down Ctrl-R.  Evince should crash within a couple minutes.  Or set the environment variable G_SLICE=debug-blocks before running evince to have it immediately abort with the message "attempt to release non-allocated block".
Comment 1 Jason Crain 2016-11-19 17:51:37 UTC
Created attachment 128074 [details] [review]
Use-g_slice_new0-for-PopplerActionLayer.patch

There's a mismatch in how the PopplerActionLayer is allocated and freed in the glib frontend.  It's allocated with g_new0, but freed with g_slice_free.  This patch changes the allocation to use g_slice_new0.
Comment 2 Carlos Garcia Campos 2016-11-21 07:41:38 UTC
Pushed, thanks you!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.