From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.2.5 MIME-Version: 1.0 Sender: ab@7ia.org In-Reply-To: <20090817210233.GE28137@wo.int.altlinux.org> References: <20090816142401.GV29935@osdn.org.ua> <20090817164909.GA7430@wo.int.altlinux.org> <20090817210233.GE28137@wo.int.altlinux.org> Date: Tue, 18 Aug 2009 06:55:28 +0300 X-Google-Sender-Auth: d6b213e3c016432e Message-ID: <6062a6e60908172055i516a5712q9a004bcb2c75acbb@mail.gmail.com> From: Alexander Bokovoy To: ALT Linux Sisyphus discussions Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Subject: Re: [sisyphus] q: libusb error handling bug X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ab@altlinux.org, ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2009 03:55:46 -0000 Archived-At: List-Archive: List-Post: 2009/8/18 Dmitry V. Levin : > On Mon, Aug 17, 2009 at 08:49:09PM +0400, Dmitry V. Levin wrote: >> On Sun, Aug 16, 2009 at 05:24:01PM +0300, Michael Shigorin wrote: >> > =9A =9A =FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5. >> > =EE=C5=D3=CB=CF=CC=D8=CB=CF =D2=C1=CE=C5=C5 =C2=D9=CC=CF =CF=C2=CE=C1= =D2=D5=D6=C5=CE=CF, =DE=D4=CF sispmctl =D3=C5=C7=C6=CF=CC=D4=C9=D4=D3=D1 >> > =D0=D2=C9 =D0=CF=D0=D9=D4=CB=C5 =D2=C1=C2=CF=D4=D9 =D3 USB-=D5=D3=D4= =D2=CF=CA=D3=D4=D7=CF=CD =CE=C1 2.6.18-ovz-rhel-alt7: >> > >> > --- >> > $ strace sispmctl -o 1 > [...] > > $ valgrind sispmctl -o 1 > [...] > =3D=3D12345=3D=3D Invalid read of size 4 > =3D=3D12345=3D=3D =9A =9Aat 0x5381B9F: usbi_log (core.c:1431) > =3D=3D12345=3D=3D =9A =9Aby 0x538724D: sysfs_get_device_list (linux_usbfs= .c:924) > =3D=3D12345=3D=3D =9A =9Aby 0x5387379: op_get_device_list (linux_usbfs.c:= 963) > =3D=3D12345=3D=3D =9A =9Aby 0x5380ADD: libusb_get_device_list (core.c:560= ) > =3D=3D12345=3D=3D =9A =9Aby 0x4E29F27: usb_find_busses (in /lib64/libusb-= 0.1.so.4.4.4) > =3D=3D12345=3D=3D =9A =9Aby 0x40185B: (within /usr/bin/sispmctl) > =3D=3D12345=3D=3D =9A =9Aby 0x504B9DC: (below main) (in /lib64/libc-2.10.= 1.so) > =3D=3D12345=3D=3D =9AAddress 0x0 is not stack'd, malloc'd or (recently) f= ree'd > =3D=3D12345=3D=3D > =3D=3D12345=3D=3D Process terminating with default action of signal 11 (S= IGSEGV) > =3D=3D12345=3D=3D =9AAccess not within mapped region at address 0x0 > =3D=3D12345=3D=3D =9A =9Aat 0x5381B9F: usbi_log (core.c:1431) > =3D=3D12345=3D=3D =9A =9Aby 0x538724D: sysfs_get_device_list (linux_usbfs= .c:924) > =3D=3D12345=3D=3D =9A =9Aby 0x5387379: op_get_device_list (linux_usbfs.c:= 963) > =3D=3D12345=3D=3D =9A =9Aby 0x5380ADD: libusb_get_device_list (core.c:560= ) > =3D=3D12345=3D=3D =9A =9Aby 0x4E29F27: usb_find_busses (in /lib64/libusb-= 0.1.so.4.4.4) > =3D=3D12345=3D=3D =9A =9Aby 0x40185B: (within /usr/bin/sispmctl) > =3D=3D12345=3D=3D =9A =9Aby 0x504B9DC: (below main) (in /lib64/libc-2.10.= 1.so) > > (gdb) bt > #0 =9A0x00002b7d2e6b2b9f in usbi_log (ctx=3D0x0, level=3DLOG_LEVEL_ERROR,= function=3D0x2b7d2e6bb810 "sysfs_get_device_list", > =9A =9Aformat=3D0x2b7d2e6bb1e0 "opendir devices failed errno=3D%d") at co= re.c:1431 > #1 =9A0x00002b7d2e6b824e in sysfs_get_device_list (ctx=3D0x0, _discdevs= =3D0x7fff7cb6b050, usbfs_fallback=3D0x7fff7cb6b00c) > =9A =9Aat os/linux_usbfs.c:924 > #2 =9A0x00002b7d2e6b837a in op_get_device_list (ctx=3D0x0, _discdevs=3D0x= 7fff7cb6b050) at os/linux_usbfs.c:963 > #3 =9A0x00002b7d2e6b1ade in libusb_get_device_list (ctx=3D0x0, list=3D0x7= fff7cb6b098) at core.c:560 > #4 =9A0x00002b7d2e15af28 in usb_find_busses () from /lib64/libusb-0.1.so.= 4 > #5 =9A0x000000000040185c in ?? () > #6 =9A0x00002b7d2e37c9dd in __libc_start_main () from /lib64/libc.so.6 > > =FC=D4=CF NULL dereference =D7 usbi_log() =C9=DA libusb. > =F7=D9=DA=CF=D7 libusb_init() =DA=C1=D7=C5=D2=DB=C9=CC=D3=D1 =CE=C5=D5=C4= =C1=DE=CE=CF, =D7 =D2=C5=DA=D5=CC=D8=D4=C1=D4=C5 =DE=C5=C7=CF > usbi_default_context =CF=D3=D4=C1=CC=D3=D1 =CE=C5=D0=D2=CF=C9=CE=C9=C3=C9= =C1=CC=C9=DA=C9=D2=CF=D7=C1=CE=CE=D9=CD. > =EF=D3=D4=C1=CC=D8=CE=CF=CA =CB=CF=C4 libusb =CE=C1 =DC=D4=CF =CE=C5 =D2= =C1=D3=D3=DE=C9=D4=D9=D7=C1=C5=D4. > > =EB=CF=D2=CF=DE=C5 =C7=CF=D7=CF=D2=D1, =CE=C1=C4=CF =C9=D3=D0=D2=C1=D7=C9= =D4=D8 =CF=C2=D2=C1=C2=CF=D4=CB=D5 =CF=DB=C9=C2=CF=CB =D7 libusb. Ok. --=20 / Alexander Bokovoy