Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#38045 - [fbreader] crash patch

Attached to Project: Community Packages
Opened by Richard Kelly (rkelly) - Saturday, 07 December 2013, 09:27 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 09 December 2013, 14:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: FBReader may benefit from patch

Additional info:
* 0.99.4

FBReader was crashing for me every time if I tried to start it up with an e-book (eg. FBReader ebook.epub) with an 'std::out_of_range' error. It would open OK if I just started it up by itself, but then I'd get a segmentation fault if I tried to open a book.

terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
Aborted (core dumped)

Others have reported the same error and have suggested a patch, which I've tried and it seems to have helped (no more crashes).
https://github.com/geometer/FBReader/issues/232
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-text/fbreader/files/fbreader-0.99.4.patch?view=diff&r1=text&tr1=1.1&r2=text&tr2=1.1&diff_format=f

Patch (fbreader.patch):
--- fbreader-0.99.4-pristine/zlibrary/ui/src/qt4/filesystem/ZLQtFSManager.cpp
+++ fbreader-0.99.4/zlibrary/ui/src/qt4/filesystem/ZLQtFSManager.cpp
@@ -48,4 +48,5 @@
static const std::string replacement = (const char*)QDir::homePath().toUtf8();
path = replacement + path.substr(1);
}
+ ZLUnixFSManager::normalizeRealPath(path);
}

Lines added to top of build():
cd $srcdir
patch -p0 -i ../fbreader.patch
cd ..

Thanks
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 09 December 2013, 14:01 GMT
Reason for closing:  Fixed

Loading...