Bug 336752

Summary: Scan application crashed
Product: [Frameworks and Libraries] libksane Reporter: ch.w.rau
Component: generalAssignee: Kåre Särs <kare.sars>
Status: RESOLVED UPSTREAM    
Severity: crash CC: caulier.gilles, kare.sars
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ch.w.rau 2014-06-26 11:44:17 UTC
Application: scangui (3.5.0)
KDE Platform Version: 4.11.5
Qt Version: 4.8.5
Operating System: Linux 3.11.10-17-desktop x86_64
Distribution: "openSUSE 13.1 (Bottle) (x86_64)"

-- Information about the crash:
I wanted to scan something :D
I just pressed the button to scan, and it crashed

The crash can be reproduced every time.

-- Backtrace:
Application: Acquire images (scangui), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fed889838c0 (LWP 30037))]

Thread 2 (Thread 0x7fed753f3700 (LWP 30042)):
[KCrash Handler]
#5  gl646_setup_registers (depth=8, color=0, endx=10889, startx=17, linecnt=2, move=0, resolution=300, slope_table2=0x7fed70003d24, slope_table1=0x7fed70003b24, regs=0x7fed700035d8, dev=0x7fed700035b0, scan_settings=...) at genesys_gl646.c:748
#6  setup_for_scan (dev=dev@entry=0x7fed700035b0, split=split@entry=1, xcorrection=xcorrection@entry=0, ycorrection=ycorrection@entry=0, settings=...) at genesys_gl646.c:3509
#7  0x00007fed7493b1b0 in gl646_init_regs_for_warmup (dev=0x7fed700035b0, local_reg=0x7fed700035d8, channels=0x7fed753f2cd0, total_size=0x7fed753f2cd4) at genesys_gl646.c:4521
#8  0x00007fed74935a32 in genesys_warmup_lamp (dev=0x7fed700035b0) at genesys.c:3921
#9  genesys_start_scan (lamp_off=<optimized out>, dev=0x7fed700035b0) at genesys.c:4083
#10 sane_genesys_start (handle=0x116c5d0) at genesys.c:7558
#11 0x00007fed8836b032 in KSaneIface::KSanePreviewThread::run (this=0x123ea80) at /usr/src/debug/libksane-4.11.5/libksane/ksane_preview_thread.cpp:77
#12 0x00007fed85d4f68f in QThreadPrivate::start (arg=0x123ea80) at thread/qthread_unix.cpp:338
#13 0x00007fed8482e0db in start_thread () from /lib64/libpthread.so.0
#14 0x00007fed856fe90d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fed889838c0 (LWP 30037)):
#0  0x00007fed856f199d in read () from /lib64/libc.so.6
#1  0x00007fed805bc5c0 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fed8057d12c in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fed8057d59b in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fed8057d70c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fed85e7bd55 in QEventDispatcherGlib::processEvents (this=0xeb2ce0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007fed86430936 in ?? () from /usr/lib64/libQtGui.so.4
#7  0x00007fed85e4dd0f in QEventLoop::processEvents (this=this@entry=0x7fff9f0d25c0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007fed85e4e005 in QEventLoop::exec (this=this@entry=0x7fff9f0d25c0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007fed85e5313b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#10 0x0000000000406d11 in ?? ()
#11 0x00007fed85638be5 in __libc_start_main () from /lib64/libc.so.6
#12 0x0000000000406d89 in _start ()

Reported using DrKonqi
Comment 1 Kåre Särs 2014-06-26 12:22:47 UTC
Thanks for the report.

As the actual crash is in the sane backend it would be good to know what parameter combination/sequence causes the crash.

Can you reproduce the crash with xsane, simplescan or skanlite?

If xsane does not crash immediately, try to set the same scan parameters as scangui defaults to. 

From the backtrace I can see that you actually where doing a preview scan ;)

Regards,
  Kåre
Comment 2 Christoph Feck 2014-07-20 20:46:04 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Christoph Feck 2014-08-16 15:02:02 UTC
Someone replied to kde-bugs-dist, instead of adding a comment here:

> Can you reproduce the crash with xsane, simplescan or skanlite?
> yes, everytime. (tried the 3 aps, preview and scan)
> it was working under opensuse 12, is crashing after updgrade to 13.1
> 
> HP scanjet 3670
> segfault at 7f5021182020 ip 00007f5020f2fef4 sp 00007fff46064100 error 4 in
> libsane-genesys.so.1.0.23[7f5020f10000+62000]

This seems to confirm that the issue is in the SANE drivers. Please report this to SANE developers via http://www.sane-project.org/bugs.html