Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5579 - xsane fails with a Segmentation fault
Summary: xsane fails with a Segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
: 170465 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-25 15:38 UTC by Alex Combas
Modified: 2007-03-11 18:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Combas 2002-07-25 15:38:50 UTC
xsane-0.86-r1 ebuild fails with a Segmentation fault.

my gcc compiler options are :
CHOST="i686-pc-linux-gnu"                                                      
CFLAGS="-march=i686 -O3 -fomit-frame-pointer -pipe"                            
CXXFLAGS="-march=i686 -O3 -fomit-frame-pointer -pipe"

Although i have also tried to recompile 'xsane' and 'sane-backends' with just:
CHOST="i686-pc-linux-gnu"                                                      
CFLAGS="-march=i686 -O1 -pipe"
CXXFLAGS="-march=i686 -O1 -pipe"

However even with these options i got the same Segmentaion fault when trying to
run xsane.

My scanner definitly works, as i am able to scan by useing:
"scanimage >> output.pnm"
And also the 'xsane:device selection' manages to locate my scanner at
'/dev/usbscanner' however then when i click 'ok' xsane then segfaults.

The scanner i am using is the Acer-640U(USB) which according to
http://snapscan.sourceforge.net/ should work fine.

ps. I am planning on submitting a scanner and camera howto document to the
gentoo project once i have workout out all the bugs.

Thanks
Alex "ghetto" Combas
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-07-26 00:53:36 UTC
It is probably an upstream bug, or somehow the installation is incorrect... I
had a friend try it with a SCSI scanner and it worked fine.

I'll leave it open for a few days, and see if there are any other comments.
Comment 2 Alex Combas 2002-07-26 11:35:29 UTC
OK thanks, Let me know if there is anything else that you need to know. 
I would really like to figure out whats going on here.
Comment 3 Manfred Koschwitz 2002-08-06 02:25:09 UTC
I also get a Segmentation fault when running xsane with the snapscan backend.

I did not test other real scanners, but the test backend appearently works just
fine with xsane.

I am able to use scanimage and xscanimage with my snapscan e20 and they work
just fine. 
I know my scanner works with xsane because I used it on Mandrake before I
switched to gentoo.

Since I use gcc-3.1.1 I thought this bug might be related to newer compiler
versions...? Which version do you use?

Btw: I tried compiling some other versions of the sane-backends and xsane on my
own after experiencing the problem, but that didn't help either. I also tried
using saned, but after connecting to sane and requesting the scanner, xsane
segfaults as well...

I think this really strange, because I have a working backend and a (mostly)
working xsane (works with test backend) but they won't work together.

I hope this information will be useful.

Manfred
Comment 4 Bret Towe 2002-08-24 12:37:05 UTC
xsane 0.87 is out maybe that will fix the problem
Comment 5 Ryan Phillips (RETIRED) gentoo-dev 2002-09-29 23:58:12 UTC
xsane 0.88 is out.. I'll commit it right about now.
Comment 6 Ryan Phillips (RETIRED) gentoo-dev 2002-10-18 00:29:30 UTC
problem persists please reopen
Comment 7 Juan J. García de Soria 2004-12-30 14:49:29 UTC
Please reopen...

If segfaults for me too with xsane-0.95.

No matter if I use snapscan or v4l backends; it seems to segfault when showing the preview window:

(gdb) bt
#0  0x0806ac3b in preview_create_batch_icon ()
#1  0x0806c4e1 in preview_new ()
#2  0x080b211d in xsane_panel_build ()
#3  0x080b23b8 in xsane_panel_build ()
#4  0x405f5091 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
(gdb)

I'll try to find out and debug further...
Comment 8 Juan J. García de Soria 2004-12-30 15:05:29 UTC
This time I ACTUALLY READ the message telling about deleting xsane.rc after upgrading.

I had an xsane.rc in my home directory lingering from an old Mandrake installation... so... I removed it and xsane works OK.

So... please forget the previous comment.
Comment 9 Nils Kneuper 2007-03-11 18:47:02 UTC
*** Bug 170465 has been marked as a duplicate of this bug. ***