[sane-devel] UsbSnoop for Canon DR-C225

Nicolas Marchildon nicolas at marchildon.net
Tue Mar 31 21:33:47 UTC 2015


$ /usr/local/bin/scanimage --version
scanimage (sane-backends) 1.0.25git; backend version 1.0.25

$ sudo /usr/local/bin/scanimage -L
device `canon_dr:libusb:002:011' is a CANON DR-C225 scanner

$ sudo /usr/local/bin/scanimage --format=tiff >image.tiff
*** glibc detected *** /usr/local/bin/scanimage: double free or corruption
(!prev): 0x0000000001ef66c0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x30dd875e66]
/lib64/libc.so.6[0x30dd8789b3]
/usr/local/lib/sane/libsane-canon_dr.so.1(+0x10256)[0x7fb49804d256]
/usr/local/lib/sane/libsane-canon_dr.so.1(+0x114e7)[0x7fb49804e4e7]
/usr/local/lib/sane/libsane-canon_dr.so.1(+0x11d7e)[0x7fb49804ed7e]
/usr/local/lib/sane/libsane-canon_dr.so.1(sane_canon_dr_start+0x7f1)[0x7fb498056651]
/usr/local/bin/scanimage[0x404119]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x30dd81ed5d]
/usr/local/bin/scanimage[0x401749]
======= Memory map: ========
00400000-0040a000 r-xp 00000000 fd:00 1070393
 /usr/local/bin/scanimage
0060a000-0060b000 rw-p 0000a000 fd:00 1070393
 /usr/local/bin/scanimage
01e77000-01f2b000 rw-p 00000000 00:00 0
 [heap]
30dd400000-30dd420000 r-xp 00000000 fd:00 1470123
 /lib64/ld-2.12.so
30dd61f000-30dd620000 r--p 0001f000 fd:00 1470123
 /lib64/ld-2.12.so
30dd620000-30dd621000 rw-p 00020000 fd:00 1470123
 /lib64/ld-2.12.so
30dd621000-30dd622000 rw-p 00000000 00:00 0
30dd800000-30dd98a000 r-xp 00000000 fd:00 1470128
 /lib64/libc-2.12.so
30dd98a000-30ddb8a000 ---p 0018a000 fd:00 1470128
 /lib64/libc-2.12.so
30ddb8a000-30ddb8e000 r--p 0018a000 fd:00 1470128
 /lib64/libc-2.12.so
30ddb8e000-30ddb8f000 rw-p 0018e000 fd:00 1470128
 /lib64/libc-2.12.so
30ddb8f000-30ddb94000 rw-p 00000000 00:00 0
30ddc00000-30ddc83000 r-xp 00000000 fd:00 1470129
 /lib64/libm-2.12.so
30ddc83000-30dde82000 ---p 00083000 fd:00 1470129
 /lib64/libm-2.12.so
30dde82000-30dde83000 r--p 00082000 fd:00 1470129
 /lib64/libm-2.12.so
30dde83000-30dde84000 rw-p 00083000 fd:00 1470129
 /lib64/libm-2.12.so
30de000000-30de017000 r-xp 00000000 fd:00 1470133
 /lib64/libpthread-2.12.so
30de017000-30de217000 ---p 00017000 fd:00 1470133
 /lib64/libpthread-2.12.so
30de217000-30de218000 r--p 00017000 fd:00 1470133
 /lib64/libpthread-2.12.so
30de218000-30de219000 rw-p 00018000 fd:00 1470133
 /lib64/libpthread-2.12.so
30de219000-30de21d000 rw-p 00000000 00:00 0
30de400000-30de402000 r-xp 00000000 fd:00 1470135
 /lib64/libdl-2.12.so
30de402000-30de602000 ---p 00002000 fd:00 1470135
 /lib64/libdl-2.12.so
30de602000-30de603000 r--p 00002000 fd:00 1470135
 /lib64/libdl-2.12.so
30de603000-30de604000 rw-p 00003000 fd:00 1470135
 /lib64/libdl-2.12.so
30e7800000-30e7816000 r-xp 00000000 fd:00 1470132
 /lib64/libgcc_s-4.4.7-20120601.so.1
30e7816000-30e7a15000 ---p 00016000 fd:00 1470132
 /lib64/libgcc_s-4.4.7-20120601.so.1
30e7a15000-30e7a16000 rw-p 00015000 fd:00 1470132
 /lib64/libgcc_s-4.4.7-20120601.so.1
30ec400000-30ec407000 r-xp 00000000 fd:00 1072790
 /usr/lib64/libusb-0.1.so.4.4.4
30ec407000-30ec606000 ---p 00007000 fd:00 1072790
 /usr/lib64/libusb-0.1.so.4.4.4
30ec606000-30ec608000 rw-p 00006000 fd:00 1072790
 /usr/lib64/libusb-0.1.so.4.4.4
30ee000000-30ee03f000 r-xp 00000000 fd:00 1081604
 /usr/lib64/libjpeg.so.62.0.0
30ee03f000-30ee23f000 ---p 0003f000 fd:00 1081604
 /usr/lib64/libjpeg.so.62.0.0
30ee23f000-30ee240000 rw-p 0003f000 fd:00 1081604
 /usr/lib64/libjpeg.so.62.0.0
30ee240000-30ee250000 rw-p 00000000 00:00 0
7fb496953000-7fb496960000 r-xp 00000000 fd:00 1207774
 /usr/local/lib/sane/libsane-net.so.1.0.25
7fb496960000-7fb496b60000 ---p 0000d000 fd:00 1207774
 /usr/local/lib/sane/libsane-net.so.1.0.25
7fb496b60000-7fb496b61000 rw-p 0000d000 fd:00 1207774
 /usr/local/lib/sane/libsane-net.so.1.0.25
7fb496b61000-7fb496b6e000 r-xp 00000000 fd:00 1207574
 /usr/local/lib/sane/libsane-abaton.so.1.0.25
7fb496b6e000-7fb496d6d000 ---p 0000d000 fd:00 1207574
 /usr/local/lib/sane/libsane-abaton.so.1.0.25
7fb496d6d000-7fb496d6e000 rw-p 0000c000 fd:00 1207574
 /usr/local/lib/sane/libsane-abaton.so.1.0.25
7fb496d6e000-7fb496d7d000 r-xp 00000000 fd:00 1207578
 /usr/local/lib/sane/libsane-agfafocus.so.1.0.25
7fb496d7d000-7fb496f7d000 ---p 0000f000 fd:00 1207578
 /usr/local/lib/sane/libsane-agfafocus.so.1.0.25
7fb496f7d000-7fb496f7e000 rw-p 0000f000 fd:00 1207578
 /usr/local/lib/sane/libsane-agfafocus.so.1.0.25
7fb496f7e000-7fb496f8e000 r-xp 00000000 fd:00 1207582
 /usr/local/lib/sane/libsane-apple.so.1.0.25
7fb496f8e000-7fb49718d000 ---p 00010000 fd:00 1207582
 /usr/local/lib/sane/libsane-apple.so.1.0.25
7fb49718d000-7fb49718e000 rw-p 0000f000 fd:00 1207582
 /usr/local/lib/sane/libsane-apple.so.1.0.25
7fb49718e000-7fb4971b8000 r-xp 00000000 fd:00 1207598
 /usr/local/lib/sane/libsane-avision.so.1.0.25
7fb4971b8000-7fb4973b7000 ---p 0002a000 fd:00 1207598
 /usr/local/lib/sane/libsane-avision.so.1.0.25
7fb4973b7000-7fb4973ba000 rw-p 00029000 fd:00 1207598
 /usr/local/lib/sane/libsane-avision.so.1.0.25
7fb4973ba000-7fb4973bc000 rw-p 00000000 00:00 0
7fb4973bc000-7fb4973cf000 r-xp 00000000 fd:00 1207586
 /usr/local/lib/sane/libsane-artec.so.1.0.25
7fb4973cf000-7fb4975cf000 ---p 00013000 fd:00 1207586
 /usr/local/lib/sane/libsane-artec.so.1.0.25
7fb4975cf000-7fb4975d0000 rw-p 00013000 fd:00 1207586
 /usr/local/lib/sane/libsane-artec.so.1.0.25
7fb4975d0000-7fb4975d8000 rw-p 00000000 00:00 0
7fb4975d8000-7fb4975ef000 r-xp 00000000 fd:00 1207590
 /usr/local/lib/sane/libsane-artec_eplus48u.so.1.0.25
7fb4975ef000-7fb4977ef000 ---p 00017000 fd:00 1207590
 /usr/local/lib/sane/libsane-artec_eplus48u.so.1.0.25
7fb4977ef000-7fb4977f0000 rw-p 00017000 fd:00 1207590
 /usr/local/lib/sane/libsane-artec_eplus48u.so.1.0.25
7fb4977f0000-7fb4977f6000 rw-p 00000000 00:00 0
7fb4977f6000-7fb4977fd000 r-xp 00000000 fd:00 1207594
 /usr/local/lib/sane/libsane-as6e.so.1.0.25
7fb4977fd000-7fb4979fc000 ---p 00007000 fd:00 1207594
 /usr/local/lib/sane/libsane-as6e.so.1.0.25

Le mar. 31 mars 2015 à 12:30, m. allan noah <kitno455 at gmail.com> a écrit :

> The log looks very similar to the DR-C125. Can you try building a
> current sane-backends git snapshot, and try the code? You might have
> to run as root user until we get the permissions sorted out.
>
> allan
>
> On Tue, Mar 31, 2015 at 9:31 AM, Nicolas Marchildon
> <nicolas at marchildon.net> wrote:
> > After few attempts (reboot, locked device, etc.), I managed to sniff only
> > the device. The device is "connected" to the VirtualBox instance.
> >
> > https://drive.google.com/file/d/0B1s3C34oDHi5QTFyMDdmVVNaNTA/view
> >
> > Le mar. 31 mars 2015 à 07:20, m. allan noah <kitno455 at gmail.com> a
> écrit :
> >>
> >> my scripts currently don't handle having this kind of mixed data in
> >> one log. I could update them I suppose, but it would be easier to get
> >> a smaller log- can you try bypassing the hub when making the log?
> >> Connect the scanner directly to the machine?
> >>
> >> allan
> >>
> >> On Mon, Mar 30, 2015 at 10:06 PM, Nicolas Marchildon
> >> <nicolas at marchildon.net> wrote:
> >> > This is on Windows XP. For some reason, I was not capturing anything
> >> > until I
> >> > included the USB hub *and* the scanner. Is the log worthless?
> >> >
> >> > Le lun. 30 mars 2015 à 21:33, m. allan noah <kitno455 at gmail.com> a
> écrit
> >> > :
> >> >>
> >> >> Your log has the packets from two different devices in it, or
> >> >> something else strange is going on. What OS was this captured on?
> >> >>
> >> >> allan
> >> >>
> >> >> On Mon, Mar 30, 2015 at 9:15 PM, m. allan noah <kitno455 at gmail.com>
> >> >> wrote:
> >> >> > have you tried to use a recent sane-backends git snapshot? I would
> be
> >> >> > interested to see a debugging log of sane trying to make a scan.
> >> >> >
> >> >> > allan
> >> >> >
> >> >> > On Mon, Mar 30, 2015 at 9:08 PM, Nicolas Marchildon
> >> >> > <nicolas at marchildon.net> wrote:
> >> >> >> Scanning a blank page at 150 dpi, 24 bit, simplex, using Canon's
> >> >> >> CaptureOnTouch and Usb Sniffer from
> >> >> >> http://www.pcausa.com/Utilities/UsbSnoop/
> >> >> >>
> >> >> >> 58 MB log
> >> >> >> https://drive.google.com/file/d/0B1s3C34oDHi5ZzFqd3E4Nk5uekE/view
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> >> >> >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane
> -devel
> >> >> >> Unsubscribe: Send mail with subject "unsubscribe your_password"
> >> >> >>              to sane-devel-request at lists.alioth.debian.org
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > "well, I stand up next to a mountain- and I chop it down with the
> >> >> > edge
> >> >> > of my hand"
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> "well, I stand up next to a mountain- and I chop it down with the
> edge
> >> >> of my hand"
> >>
> >>
> >>
> >> --
> >> "well, I stand up next to a mountain- and I chop it down with the edge
> >> of my hand"
>
>
>
> --
> "well, I stand up next to a mountain- and I chop it down with the edge
> of my hand"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20150331/50b4df98/attachment-0001.html>


More information about the sane-devel mailing list