Re: segfault with sane-umax
David Mosberger-Tang (davidm@mostang.com)
Wed, 8 Oct 1997 13:08:52 -0700
> In a message titled "segfault with sane-umax", Iain O'Cain
> <ec@intranet.org> described his problems with scanimage crashing
> with segfaults. I have the same problems (I wont repeat the
> detailed description, since the symptoms are exactly as describe
> there)
>
> I use a umax ASTRA 1200S scanner, which works fine with the
> standalone "umax-cli" program by Michael K. Johnson
> <johnsonm@redhat.com> and Oliver Rauch
> <Oliver.Rauch@Wolfsburg.DE>.
>
> I tried to locate the error- it seems like the crash occurs not
> in scanimage itself, but in the c library when the program exits.
> It looks like free is being called with an invalid address. The
> crash occurs with libc 5.4.33 as well as 5.4.38. With an ancient
> library version (5.0.9) scanimage and xscanimage work.
>
> Maybe somebody can make any sense of this and figure out what's
> going wrong...
I have the nagging suspicion that something is going wrong with the
build of shared libraries. Maybe something changed in libtool
unbeknownst to me. What I'm suspecting is that when the UMAX backend
calls sane_exit(), it gets resolved to the sane_exit() in dll.c
instead of the one in umax.c.
Can you try building SANE statically (invoke configure with
--disable-shared) and see how that goes?
--david
--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com