pepoとネットワークを語ろう

40年前からこれまでとこれからのネットワークを語る

LinuxのUSB Driverのdebugやでー!6

2011-05-05 11:45:13 | Linux

最近のKernelは強いわ、

USB Driverで変なことをしてもKernel自身は落ちんわ、
昔は固まって、その都度Restartやから、下手したらファイルシステム破壊なんて事に
今は、VMware playerでdebugしているからもし落ちても大したことないからまーありがたいこっちゃ

ぼろぼろになっても頑張るKernelか~、ITで食えない今のくじらのだんなとおんなじ・・・てか
[root@~]# rmmod acm-FOMA;rm /var/log/debug ;/etc/init.d/syslog restart ;tail -f
/var/log/debug
Shutting down kernel logger:                               [  OK  ]
Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
Starting kernel logger:                                    [  OK  ]
May  4 07:47:15 epicon kernel: klogd 1.4.1, log source = /proc/kmsg started.
May  4 07:49:02 epicon kernel: hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
May  4 07:49:02 epicon kernel: uhci_hcd 0000:02:00.0: port 1 portsc 0083,00
May  4 07:49:02 epicon kernel: hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
May  4 07:49:02 epicon kernel: hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
May  4 07:49:02 epicon kernel: usb 2-1: new full speed USB device using uhci_hcd and address 9
May  4 07:49:03 epicon kernel: usb 2-1: skipped 2 descriptors after configuration
May  4 07:49:03 epicon kernel: usb 2-1: skipped 5 descriptors after interface
May  4 07:49:03 epicon kernel: usb 2-1: skipped 5 descriptors after interface
May  4 07:49:03 epicon kernel: usb 2-1: skipped 3 descriptors after interface
May  4 07:49:03 epicon kernel: usb 2-1: default language 0x0409
May  4 07:49:03 epicon kernel: usb 2-1: udev 9, busnum 2, minor = 136
May  4 07:49:03 epicon kernel: usb 2-1: New USB device found, idVendor=0409, idProduct=0270
May  4 07:49:03 epicon kernel: usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May  4 07:49:03 epicon kernel: usb 2-1: Product: FOMA N09A
May  4 07:49:03 epicon kernel: usb 2-1: Manufacturer: NEC
May  4 07:49:03 epicon kernel: usb 2-1: SerialNumber: 3*************7
May  4 07:49:03 epicon kernel: usb 2-1: usb_probe_device
May  4 07:49:03 epicon kernel: usb 2-1: configuration #1 chosen from 1 choice
May  4 07:49:03 epicon kernel: usb 2-1: adding 2-1:1.0 (config #1, interface 0)
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.0: usb_probe_interface
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.0: usb_probe_interface - got id
May  4 07:49:03 epicon kernel: usb 2-1: adding 2-1:1.1 (config #1, interface 1)
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.1: usb_probe_interface
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.1: usb_probe_interface - got id
May  4 07:49:03 epicon kernel: usb 2-1: adding 2-1:1.2 (config #1, interface 2)
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.2: usb_probe_interface
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.2: usb_probe_interface - got id
May  4 07:49:03 epicon kernel: usb 2-1: adding 2-1:1.3 (config #1, interface 3)
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.3: usb_probe_interface
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.3: usb_probe_interface - got id
May  4 07:49:03 epicon kernel: usb 2-1: adding 2-1:1.4 (config #1, interface 4)
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.4: usb_probe_interface
May  4 07:49:03 epicon kernel: usbserial_generic 2-1:1.4: usb_probe_interface - got id
May  4 07:49:03 epicon kernel: drivers/usb/core/inode.c: creating file '009'

Message from syslogd@ at Wed May  4 07:49:04 2011 ...
epicon kernel: Process modprobe (pid: 23845, ti=cfb76000 task=cf806780 task.ti=cfb76000)

Message from syslogd@ at Wed May  4 07:49:04 2011 ...
epicon kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-1/dev

Message from syslogd@ at Wed May  4 07:49:04 2011 ...
epicon kernel: Oops: 0000 [#1] SMP

Message from syslogd@ at Wed May  4 07:49:04 2011 ...
epicon kernel: CR2: 0000000000000004

Message from syslogd@ at Wed May  4 07:49:04 2011 ...
epicon kernel: Call Trace:

Message from syslogd@ at Wed May  4 07:49:04 2011 ...
epicon kernel: Stack:

Message from syslogd@ at Wed May  4 07:49:04 2011 ...
epicon kernel: EIP: [] acm_probe+0x64f/0xd07 [acm_FOMA] SS:ESP 0068:cfb77e40

Message from syslogd@ at Wed May  4 07:49:04 2011 ...
epicon kernel: Code: 85 db 75 03 8b 58 08 e8 0c 1a b6 ef 53 50 68 32 ac a5 d0 e8 be e5 9d ef b8 f4 ff ff ff e9 f4 fa ff ff 8b 45 c8 31 d2 83 7d e0 02 <66> 8b 5f 04 66 8b 48 04 0f 95 c2 8a 86 48 05 00 00 42 83 e0 fe
May  4 07:49:04 epicon kernel: acm_FOMA 2-1:1.0: usb_probe_interface
May  4 07:49:04 epicon kernel: acm_FOMA 2-1:1.0: usb_probe_interface - got id
May  4 07:49:04 epicon kernel: drivers/usb/class/acm-FOMA.c: found union pepo
May  4 07:49:04 epicon kernel:
May  4 07:49:04 epicon kernel: drivers/usb/class/acm-FOMA.c: interfaces are valid
May  4 07:49:04 epicon kernel: BUG: unable to handle kernel NULL pointer dereference at 00000004
May  4 07:49:04 epicon kernel: IP: [] acm_probe+0x64f/0xd07 [acm_FOMA]
May  4 07:49:04 epicon kernel: *pde = 00000000
May  4 07:49:04 epicon kernel: Oops: 0000 [#1] SMP
May  4 07:49:04 epicon kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-1/dev
May  4 07:49:04 epicon kernel: Modules linked in: acm_FOMA(+) usb_storage ext4 jbd2 crc16 ipv6 nf_conntrack_ftp nf_conntrack_netbios_ns ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_tcpudp iptable_filter ip_tables x_tables option usb_wwan pata_acpi pcnet32 mii ata_piix ata_generic mptspi mptscsih libata mptbase i2c_piix4 scsi_transport_spi i2c_core ext3 jbd unionfs ntfs vfat fat floppy squashfs loop nls_cp932 nls_utf8 uhci_hcd ehci_hcd [last unloaded: acm_FOMA]
May  4 07:49:04 epicon kernel:
May  4 07:49:04 epicon kernel: Pid: 23845, comm: modprobe Not tainted 2.6.35.6-pepo #12 440BX Desktop Reference Platform/VMware Virtual Platform
May  4 07:49:04 epicon kernel: EIP: 0060:[] EFLAGS: 00010293 CPU: 0
May  4 07:49:04 epicon kernel: EIP is at acm_probe+0x64f/0xd07 [acm_FOMA]
May  4 07:49:04 epicon kernel: EAX: cc498bc0 EBX: 00000000 ECX: 00000000 EDX: 00000000
May  4 07:49:04 epicon kernel: ESI: c2eee800 EDI: 00000000 EBP: cfb77ea8 ESP: cfb77e40
May  4 07:49:04 epicon kernel:  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
May  4 07:49:04 epicon kernel: Process modprobe (pid: 23845, ti=cfb76000 task=cf806780 task.ti=cfb76000)
May  4 07:49:04 epicon kernel: Stack:
May  4 07:49:04 epicon kernel:  00000035 cfbe7748 cfb77e5c cc45bb00 064435d0 cc4435d0 cfb4d120 cd55d4b0
May  4 07:49:04 epicon kernel: <0> 00000000 00000000 cc45bb00 cc45b000 cc498bc0 00000000 cc43e800 00000000
May  4 07:49:04 epicon kernel: <0> 0645bb1c 00000001 00000000 00000010 00000000 00000001 cfb77ecc ccb7d4a0
May  4 07:49:04 epicon kernel: Call Trace:
May  4 07:49:04 epicon kernel:  [] ? usb_probe_interface+0x10f/0x141
May  4 07:49:04 epicon kernel:  [] ? driver_probe_device+0x96/0x112
May  4 07:49:04 epicon kernel:  [] ? __driver_attach+0x43/0x5f
May  4 07:49:04 epicon kernel:  [] ? bus_for_each_dev+0x37/0x5b
May  4 07:49:04 epicon kernel:  [] ? driver_attach+0x14/0x16
May  4 07:49:04 epicon kernel:  [] ? __driver_attach+0x0/0x5f
May  4 07:49:04 epicon kernel:  [] ? bus_add_driver+0x98/0x1d4
May  4 07:49:04 epicon kernel:  [] ? kset_find_obj+0x2a/0x56
May  4 07:49:04 epicon kernel:  [] ? driver_register+0x7b/0xd6
May  4 07:49:04 epicon kernel:  [] ? mutex_lock+0xe/0x28
May  4 07:49:04 epicon kernel:  [] ? usb_register_driver+0x64/0xef
May  4 07:49:04 epicon kernel:  [] ? acm_init+0x0/0xd5 [acm_FOMA]
May  4 07:49:04 epicon kernel:  [] ? acm_init+0xa5/0xd5 [acm_FOMA]
May  4 07:49:04 epicon kernel:  [] ? do_one_initcall+0x4c/0x13a
May  4 07:49:04 epicon kernel:  [] ? sys_init_module+0x76/0x199
May  4 07:49:04 epicon kernel:  [] ? syscall_call+0x7/0xb
May  4 07:49:04 epicon kernel: Code: 85 db 75 03 8b 58 08 e8 0c 1a b6 ef 53 50 68 32 ac a5 d0 e8 be e5 9d ef b8 f4 ff ff ff e9 f4 fa ff ff 8b 45 c8 31 d2 83 7d e0 02 <66> 8b 5f 04 66 8b 48 04 0f 95 c2 8a 86 48 05 00 00 42 83 e0 fe
May  4 07:49:04 epicon kernel: EIP: [] acm_probe+0x64f/0xd07 [acm_FOMA] SS:ESP 0068:cfb77e40
May  4 07:49:04 epicon kernel: CR2: 0000000000000004
May  4 07:49:04 epicon kernel: ---[ end trace 2e2aeff334e256e5 ]---
May  4 07:51:03 epicon kernel: hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
May  4 07:51:03 epicon kernel: uhci_hcd 0000:02:00.0: port 1 portsc 008a,00
May  4 07:51:03 epicon kernel: hub 2-0:1.0: port 1, status 0100, change 0003, 12 Mb/s
May  4 07:51:03 epicon kernel: usb 2-1: USB disconnect, address 9
^C

pepo


最新の画像もっと見る

コメントを投稿

ブログ作成者から承認されるまでコメントは反映されません。