GNOME Bugzilla – Bug 632087
Crash when saving a fillable form to the same file
Last modified: 2012-10-26 13:22:31 UTC
Evince segmentation faults reliably when I try to open a fillable pdf, modify the pdf, 'save a copy', then select the same source file to replace. Unfortunately I cannot provide the main fillable pdf I'm trying to use for this purpose.
Could you duplicate the problem with a PDF that you could provide?
Yeah, indeed without the pdf or a backtrace, there is little we can do to help you. Please see http://live.gnome.org/GettingTraces for more information on how to get traces. You could also send the pdf to me privately if that is acceptable (jaliste at gnome.org)
I can reproduce this. When I save the modified pdf file over the original file, evince crashes after writing the file. When I save it to another file name, everything works. I attached a fillable pdf made by LibreOffice. It seems that there are invalid pointers in the ev_mapping_list_find function, because the crash happens when the line for (list = mapping_list->list; list; list = list->next) { is executed. Backtrace:
+ Trace 226030
(more unimportant stuff follows ...)
Created attachment 181355 [details] fillable pdf formular that can cause a crash in evince-2.32.0
It doesn't crash for me
*** Bug 642401 has been marked as a duplicate of this bug. ***
Evince master does not crash for me, but evince 2.32 does crashes. Carlos, to make Evince to crash, I saved the file leaving the focus from the input box
I managed to reproduced this on evince master
Created attachment 181602 [details] [review] first idea of a patch So with this patch, evince will save the contents of the FormTextWidget and destroy the widget when the TextWidget looses it focus. This sort of patch should also fix #631630. Some thoughts: - we should do this with all form widgets, so maybe it's better to have a base FormWidget class?
Created attachment 183057 [details] [review] Patch fixing the issue This should fix the issue. Carlos, please review.
Review of attachment 183057 [details] [review]: Please push it, thanks!
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
I still manage to reproduce this in Evince 3.0 while in F15 beta :(
I can no longer reproduce on Evince 3.4. Reclosing