Re: SANE CVS snapshot (2001-05-27) available

From: Henning Meier-Geinitz (henning@meier-geinitz.de)
Date: Tue May 29 2001 - 15:46:28 PDT

  • Next message: Oliver Rauch: "Re: umax 2200 hi res scan"

    Hi,

    On Mon, May 28, 2001 at 10:07:22PM +0200, stef wrote:
    > On Mon, May 28, 2001 at 09:07:04PM +0200, Henning Meier-Geinitz wrote:
    > > Hi,
    > >
    > > > (2) Running scanimage results in bus error. gdb reveals: umax_pp_low.c line 80,
    > > > Inb (port: 890).
    > >
    > > Fixed. Or more exactly: Disabled umax_pp for FreeBSD. It looks like
    > > FreeBSD dumps core because inb is used without prior ioperm. However,
    > > HAVE_IOPERM is not defined, so the ioperm part wasn't compiled in. I
    > > have added a && defined HAVE_IOPERM before using the inb etc.
    > > assembler statements. If anyone knows enough about programming ioports
    > > under FreeBSD please have a look at this and fix it correctly.
    > >

    > I'm pretty puzzled with that, 'Inb (port: 890)' means access to
    > CONTROL port. If the failure was due to lack of permission to do
    > direct I/O, the umax_pp should have failed with the very first access
    > to parport which is Inb (0x378).

    Yes, I saw this, too, and don't know why.

    > Inb(0x37A) is only the third I/O. So I find it strange. A larger part
    > of the gdb backtrace would be helpful.

    Starting program: /usr/local/bin/scanimage -L
    Program received signal SIGBUS, Bus error.
    Inb (port=890) at umax_pp_low.c:81
    81 return value;
    (gdb) bt
    #0 Inb (port=890) at umax_pp_low.c:81
    #1 0x80eef1a in sanei_umax_pp_ProbeScanner (recover=0) at umax_pp_low.c:3957
    #2 0x80f9da2 in sanei_umax_pp_attach (port=888) at umax_pp_mid.c:160
    #3 0x80da83d in attach (devname=0xbfbff479 "0x378") at umax_pp.c:186
    #4 0x80dbb95 in sane_umax_pp_init (version_code=0xbfbff6b0,
        authorize=0x804a168 <auth_callback>) at umax_pp.c:849
    #5 0x804ec50 in init (be=0x8150f9c) at dll.c:400
    #6 0x804f142 in sane_dll_get_devices (device_list=0xbfbff78c, local_only=0)
        at dll.c:661
    #7 0x804ddd4 in sane_get_devices (dl=0xbfbff78c, local=0) at dll-s.c:15
    #8 0x804c60d in main (argc=2, argv=0xbfbffbe8) at scanimage.c:1418
    #9 0x804a101 in _start ()
            
    Bye,
      Henning

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



    This archive was generated by hypermail 2b29 : Tue May 29 2001 - 15:49:45 PDT