After upgrading to media-libs/jpeg-8 and dev-libs/glib-2.22.4 xsane-0.997 gets a segment fault while storing an image as a tiff file. (re-emerging media-gfx/xsane-0.997 and media-libs/tiff-3.9.2 didn't cure this) Backtrace: Program received signal SIGSEGV, Segmentation fault. 0x00007ffff729f4e0 in emit_dqt () from /usr/lib64/libjpeg.so.8 (gdb) where #0 0x00007ffff729f4e0 in emit_dqt () from /usr/lib64/libjpeg.so.8 #1 0x00007ffff729ff72 in write_tables_only () from /usr/lib64/libjpeg.so.8 #2 0x00007ffff72976e7 in jpeg_write_tables () from /usr/lib64/libjpeg.so.8 #3 0x00007ffff74f06a7 in TIFFjpeg_write_tables () from /usr/lib64/libtiff.so.3 #4 0x00007ffff74f0a82 in JPEGSetupEncode () from /usr/lib64/libtiff.so.3 #5 0x00007ffff7507336 in TIFFWriteScanline () from /usr/lib64/libtiff.so.3 #6 0x00000000004582e0 in xsane_save_tiff_page () #7 0x00000000004633c4 in xsane_save_image_as () #8 0x0000000000464a3a in xsane_scan_done () #9 0x0000000000467440 in xsane_read_image_data () #10 0x00000000004658a1 in xsane_start_scan () #11 0x0000000000467912 in xsane_scan_dialog () #12 0x00007ffff3b1266e in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0 #13 0x00007ffff3b2781c in signal_emit_unlocked_R () from /usr/lib64/libgobject-2.0.so.0 #14 0x00007ffff3b28b66 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0 #15 0x00007ffff3b29043 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0 #16 0x00007ffff5532fe5 in gtk_real_button_released () from /usr/lib64/libgtk-x11-2.0.so.0 #17 0x00007ffff3b1266e in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0 #18 0x00007ffff3b2711b in signal_emit_unlocked_R () from /usr/lib64/libgobject-2.0.so.0 #19 0x00007ffff3b28b66 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0 #20 0x00007ffff3b29043 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0 #21 0x00007ffff5531d7d in gtk_button_button_release () from /usr/lib64/libgtk-x11-2.0.so.0 #22 0x00007ffff55dc6d0 in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib64/libgtk-x11-2.0.so.0 #23 0x00007ffff3b1266e in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0 #24 0x00007ffff3b274dc in signal_emit_unlocked_R () from /usr/lib64/libgobject-2.0.so.0 #25 0x00007ffff3b289fa in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0 #26 0x00007ffff3b29043 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0 #27 0x00007ffff56dcabf in gtk_widget_event_internal () from /usr/lib64/libgtk-x11-2.0.so.0 #28 0x00007ffff55d5c9b in gtk_propagate_event () from /usr/lib64/libgtk-x11-2.0.so.0 #29 0x00007ffff55d6c03 in gtk_main_do_event () from /usr/lib64/libgtk-x11-2.0.so.0 #30 0x00007ffff52526ac in gdk_event_dispatch () from /usr/lib64/libgdk-x11-2.0.so.0 #31 0x00007ffff36577e3 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #32 0x00007ffff365b010 in g_main_context_iterate () from /usr/lib64/libglib-2.0.so.0 #33 0x00007ffff365b415 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0 #34 0x00007ffff55d710f in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0 #35 0x0000000000476f2a in xsane_interface () #36 0x0000000000477637 in main () Reproducible: Always Steps to Reproduce: 1. start xsane action "Save" Type TIFF 2. after a complete scan (while saving the image) it crashes 3.
Just making sure. Did you follow the instructions printed by jpeg-8's emerge where it said to revdep-rebuild -L libjpeg.so.7 (or revdep-rebuild --library libjpeg.so.7)? It just doesn't make sense to report bugs on a system where it's randomly linked (not fully upgraded). Thanks :)
(In reply to comment #1) > Just making sure. Did you follow the instructions printed by jpeg-8's emerge > where it said to revdep-rebuild -L libjpeg.so.7 (or revdep-rebuild --library > libjpeg.so.7)? It just doesn't make sense to report bugs on a system where it's > randomly linked (not fully upgraded). Thanks :) > I've have done that before. But I did it again for sure. But nothing changed - still the same bug and back trace.
Same problem here with 0.996, but it only occurs when saving as a TIFF file (maybe a libtiff issue?)
Looks like a jpeg issue: http://sourceforge.net/tracker/?func=detail&aid=2949926&group_id=73485&atid=537937 CCing media-libs/tiff and media-libs/jpeg maintainers
(In reply to comment #4) > Looks like a jpeg issue: > http://sourceforge.net/tracker/?func=detail&aid=2949926&group_id=73485&atid=537937 > > CCing media-libs/tiff and media-libs/jpeg maintainers > Intresting. Then this will be resolved with jpeg-8a or we can backport the patch when there's one available (is there?)
I didn't find that patch if available :-(, we will probably need to wait then
http://bugzilla.maptools.org/show_bug.cgi?id=2097 http://bugs.archlinux.org/task/18397
media-libs/jpeg-8a in Portage, and this bug seems to be fixed with it. Snip from change.log: <snip> Version 8a 28-Feb-2010 ----------------------- Writing tables-only datastreams via jpeg_write_tables works again. </snip>