Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157138 - app-text/gocr segfaults with some images
Summary: app-text/gocr segfaults with some images
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 154392
  Show dependency tree
 
Reported: 2006-12-04 14:18 UTC by Tom Knight (RETIRED)
Modified: 2007-02-22 20:40 UTC (History)
2 users (show)

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


Attachments
Image which causes segfault (gocr-segfault.png,7.23 KB, image/gif)
2006-12-04 14:19 UTC, Tom Knight (RETIRED)
Details
Patch which fixes it (gocr-segfault.patch,596 bytes, patch)
2006-12-04 14:20 UTC, Tom Knight (RETIRED)
Details | Diff
strace before applying patch (gocr-before-patch.strace,8.75 KB, text/plain)
2006-12-04 14:24 UTC, Tom Knight (RETIRED)
Details
strace after applying patch (gocr-after-patch.strace,11.32 KB, text/plain)
2006-12-04 14:25 UTC, Tom Knight (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Knight (RETIRED) gentoo-dev 2006-12-04 14:18:02 UTC
I've got an image which will cause gocr-0.40-r2 to segfault along with a patch which fixes the issue. I'm not sure if this is related to bug 145624 or bug 153068 but the patch fixes the problem with this image.

I'll attach the image/patch/straces.
Comment 1 Tom Knight (RETIRED) gentoo-dev 2006-12-04 14:19:22 UTC
Created attachment 103354 [details]
Image which causes segfault
Comment 2 Tom Knight (RETIRED) gentoo-dev 2006-12-04 14:20:22 UTC
Created attachment 103355 [details, diff]
Patch which fixes it
Comment 3 Tom Knight (RETIRED) gentoo-dev 2006-12-04 14:24:34 UTC
Created attachment 103357 [details]
strace before applying patch
Comment 4 Tom Knight (RETIRED) gentoo-dev 2006-12-04 14:25:26 UTC
Created attachment 103358 [details]
strace after applying patch
Comment 5 Tom Knight (RETIRED) gentoo-dev 2006-12-04 14:29:40 UTC
This patch has come from the FuzzyOCR guys and is one of the things holding up bug  154392, although I'll probably add the FuzzyOCR ebuild with a warning that some images may cause a segfault until this bug is fixed.
Comment 6 Tom Knight (RETIRED) gentoo-dev 2006-12-05 12:46:12 UTC
I've just checked gocr 0.42 and this problem has been fixed (in a slightly different way) so having an ebuild for the 0.42 would also fix the problem. If I get some time I could put one together unless some who knows the codebase sorts one out before I do.
Comment 7 Tom Knight (RETIRED) gentoo-dev 2007-02-22 20:40:54 UTC
(In reply to comment #6)
> I've just checked gocr 0.42 and this problem has been fixed (in a slightly
> different way) so having an ebuild for the 0.42 would also fix the problem. If
> I get some time I could put one together unless some who knows the codebase
> sorts one out before I do.
> 

Marking as fixed as 0.43 has been added to the tree as per bug 145624.