Bug 98786

Summary: evince crashes on document reload
Product: poppler Reporter: Jason Crain <jason>
Component: glib frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
See Also: http://bugs.debian.org/809388
Whiteboard:
i915 platform: i915 features:
Attachments: ParkoszLatinPolish1.pdf
Use-g_slice_new0-for-PopplerActionLayer.patch

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.