Re: segfault with sane-umax

Didier Carlier (carlierd@acm.org)
Thu, 9 Oct 1997 11:06:48 +0200

>>>>> "Peter" == Peter Daum <gator@cs.tu-berlin.de> writes:
Peter> I tried to locate the error- it seems like the crash occurs
Peter> not in scanimage itself, but in the c library when the
Peter> program exits. It looks like free is being called with an
Peter> invalid address. The crash occurs with libc 5.4.33 as well
Peter> as 5.4.38. With an ancient library version (5.0.9)
Peter> scanimage and xscanimage work.

Peter> Maybe somebody can make any sense of this and figure out
Peter> what's going wrong...

I don't have the sources here, but that reminds me that there used to
be a bug in sane_exit(). The line which looks like
'free(&(dev->xxx));' should not have been there.

The older library was probably more tolerant to this kind of problem.

Didier.

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com