Bug#941886: crashes with segfault while scanning library

2019-11-09 Thread Eugene V. Lyubimkin
Hello Antoine,

Antoine Beaupre kirjoitti 7.10.2019 klo 6.02:
> After starting fbreader (which takes 30 seconds), I go to the library
> and hit settings. There I configure my ebook library (~/books), click
> the "Look for books in subdirectories" button, and hit "OK".
> 
> After a little scanning, it totally crashes with the following backtrace:

Thank you for the detailed report. Unfortunately, the upstream development
has stopped many years ago, and it's unlikely for problems to become fixed
unless somebody steps up.


Regards,
-- 
Eugene V. Lyubimkin aka JackYF
C++ GNU/Linux userspace developer, Debian Developer



Bug#941886: crashes with segfault while scanning library

2019-10-06 Thread Antoine Beaupre
Package: fbreader
Version: 0.12.10dfsg2-3
Severity: important

After starting fbreader (which takes 30 seconds), I go to the library
and hit settings. There I configure my ebook library (~/books), click
the "Look for books in subdirectories" button, and hit "OK".

After a little scanning, it totally crashes with the following backtrace:

(gdb) run
Starting program: /usr/bin/fbreader 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
loading /usr/lib/zlibrary/ui/zlui-qt4.so

Program received signal SIGSEGV, Segmentation fault.
0x77ed10a2 in 
ZLZipDir::collectFiles(std::vector, std::allocator >, 
std::allocator, 
std::allocator > > >&, bool) () from /usr/lib/libzlcore.so.0.13
(gdb) br
Breakpoint 1 at 0x77ed10a2
(gdb) bt
#0  0x77ed10a2 in 
ZLZipDir::collectFiles(std::vector, std::allocator >, 
std::allocator, 
std::allocator > > >&, bool) () at /usr/lib/libzlcore.so.0.13
#1  0x55707015 in BooksDBUtil::resetZipInfo(ZLFile const&) 
(zipFile=...) at ./fbreader/../zlibrary/core/include/shared_ptr.h:236
#2  0x557071be in BooksDBUtil::listZipEntries(ZLFile const&, 
std::vector, 
std::allocator >, std::allocator, std::allocator > > >&) (zipFile=..., 
entries=std::vector of length 0, capacity 0) at 
./fbreader/../zlibrary/core/include/ZLFile.h:99
#3  0x555cfbdf in 
Library::collectBookFileNames(std::set, std::allocator >, 
std::less, 
std::allocator > >, std::allocator, std::allocator > > >&) const
(this=0x559ef710, bookFileNames=std::set with 87 elements = {...}) at 
Library.cpp:83
#4  0x555d0083 in Library::rebuildBookSet() const 
(this=this@entry=0x559ef710) at Library.cpp:114
#5  0x555d1390 in LibrarySynchronizer::run() (this=0x7fffb3b0) at 
Library.cpp:170
#6  0x77fb7ede in ZLQtProgressDialog::run(ZLRunnable&) () at 
/usr/lib/zlibrary/ui/zlui-qt4.so
#7  0x77ed5314 in ZLDialogManager::wait(ZLResourceKey const&, 
ZLRunnable&) const () at /usr/lib/libzlcore.so.0.13
#8  0x555cd23d in Library::synchronize() const 
(this=this@entry=0x559ef710) at /usr/include/c++/8/bits/basic_string.h:936
#9  0x555cd2e9 in Library::authors() const (this=0x559ef710) at 
Library.cpp:310
#10 0x555a98ee in LibraryByAuthorView::makeUpToDate() 
(this=0x557ec4d0) at LibraryByAuthorView.cpp:122
#11 0x555896ca in LibraryView::paint() (this=0x557ec4d0) at 
LibraryView.cpp:38
#12 0x77fbba6e in ZLQtViewWidget::Widget::paintEvent(QPaintEvent*) () 
at /usr/lib/zlibrary/ui/zlui-qt4.so
#13 0x759aca28 in QWidget::event(QEvent*) () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#14 0x7595aa2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() at /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#15 0x75961212 in QApplication::notify(QObject*, QEvent*) () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x763edafb in QCoreApplication::notifyInternal(QObject*, QEvent*) 
() at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x759a7203 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x759a7dfa in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QList const&, int, QRegion const&, QPoint const&, int, QPainter*, 
QWidgetBackingStore*) ()
at /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x759a6f09 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x759a7dfa in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, 
QList const&, int, QRegion const&, QPoint const&, int, QPainter*, 
QWidgetBackingStore*) ()
at /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x759a6f09 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion 
const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x75b5faa8 in  () at /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#23 0x7599b350 in QWidgetPrivate::syncBackingStore() () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#24 0x759ad138 in QWidget::event(QEvent*) () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x75d4c84b in QMainWindow::event(QEvent*) () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x7595aa2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) 
() at /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x75961212 in QApplication::notify(QObject*, QEvent*) () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#28 0x763edafb in QCoreApplication::notifyInternal(QObject*, QEvent*) 
() at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x75b60f4d in  () at /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#30 0x7599d66d in QWidget::repaint(QRect const&) () at 
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#31