System hang after serval time USB device mount/dismount

Asked by wenxiaocong

Ubuntu14.10 Desktop
Kernel4.9.13

Seek Ubuntu Engineer help to advice
We used some desktop computer to test the android mobile phone. Link to PC through USB Type-C and Micro USB.
We set an APK file to let mobile auto mount/dismount around 1 time/minutes.
Then we found some system will hang after one night testing. Have to reboot the system to proceed.

We already update the BIOS and kernel version but issue same. Total 70 pcs, and 5-6 system failed each day.
Provide the dump file below, but we didn't find the root cause about why system not send the "reset" commend uninterrupted

Feb 28 16:10:33 XA-2FC11-G-0108 kernel: [2186970.123857] usb 1-3: USB disconnect, device number 40
Feb 28 16:10:50 XA-2FC11-G-0108 kernel: [2186986.585720] usb 1-3: new high-speed USB device number 42 using xhci_hcd
Feb 28 16:10:50 XA-2FC11-G-0108 kernel: [2186986.754913] usb 1-3: New USB device found, idVendor=12d1, idProduct=107e
Feb 28 16:10:50 XA-2FC11-G-0108 kernel: [2186986.754918] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 28 16:10:50 XA-2FC11-G-0108 kernel: [2186986.754921] usb 1-3: Product: HUAWEI
Feb 28 16:10:50 XA-2FC11-G-0108 kernel: [2186986.754924] usb 1-3: Manufacturer: unknown
Feb 28 16:10:50 XA-2FC11-G-0108 kernel: [2186986.754926] usb 1-3: SerialNumber: HMK0116A20001082
Feb 28 16:10:50 XA-2FC11-G-0108 kernel: [2186986.756830] usb-storage 1-3:1.3: USB Mass Storage device detected
Feb 28 16:10:50 XA-2FC11-G-0108 kernel: [2186986.757006] scsi host5: usb-storage 1-3:1.3
Feb 28 16:10:51 XA-2FC11-G-0108 kernel: [2186987.794317] scsi 5:0:0:0: CD-ROM Linux File-CD Gadget 0401 PQ: 0 ANSI: 2
Feb 28 16:10:51 XA-2FC11-G-0108 kernel: [2186987.795803] sr 5:0:0:0: [sr1] scsi-1 drive
Feb 28 16:10:51 XA-2FC11-G-0108 kernel: [2186987.796181] sr 5:0:0:0: Attached scsi CD-ROM sr1
Feb 28 16:10:51 XA-2FC11-G-0108 kernel: [2186987.796470] sr 5:0:0:0: Attached scsi generic sg2 type 5
Feb 28 16:10:54 XA-2FC11-G-0108 kernel: [2186990.513105] usb 1-7: USB disconnect, device number 41
-- hang after this record.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Support for Ubuntu 14.10 died nearly 2 years ago.
https://wiki.ubuntu.com/Releases

I suggest you wipe the install off and do a clean install of Xenial (after a final full backup). Xenial is LTS and supported til April 2021

Revision history for this message
wenxiaocong (jefferywen) said :
#2

Update my finding. Due to I have to use the 14.10 for 3rd party application. So I update the Kernel to 4.10.8 and 4.10.9 instead.
And capture the error message when incident happen.

Apr 9 15:45:03 SH-11F3-A10-0601 kernel: [259695.984700] BUG: unable to handle kernel NULL pointer dereference at 0000000000000040
Apr 9 15:45:03 SH-11F3-A10-0601 kernel: [259695.984747] IP: sysfs_do_create_link_sd.isra.2+0x3c/0xc0
Apr 9 15:45:03 SH-11F3-A10-0601 kernel: [259695.984773] PGD 1139ad067
Apr 9 15:45:03 SH-11F3-A10-0601 kernel: [259695.984774] PUD 116e47067
Apr 9 15:45:03 SH-11F3-A10-0601 kernel: [259695.984788] PMD 0
Apr 9 15:45:03 SH-11F3-A10-0601 kernel: [259695.984802]
Apr 9 15:45:03 SH-11F3-A10-0601 kernel: [259695.984823] Oops: 0000 [#1] PREEMPT SMP
Apr 9 15:45:03 SH-11F3-A10-0601 kernel: [259695.984842] Modules linked in: xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 bridge stp llc xt_tcpudp iptable_filter ip_tables x_tables dm_crypt bnep intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_codec_hdmi kvm_intel dell_led rfcomm kvm irqbypass snd_hda_codec_realtek crct10dif_pclmul crc32_pclmul snd_hda_codec_generic ghash_clmulni_intel pcbc snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep aesni_intel snd_pcm dell_wmi aes_x86_64 crypto_simd snd_seq_midi snd_seq_midi_event snd_rawmidi glue_helper snd_seq sparse_keymap dell_smbios dcdbas cryptd snd_seq_device dm_multipath hci_uart intel_cstate mei_me btbcm btqca btintel bluetooth snd_timer snd

Seems the driver cause the noll pointer, how can I locate this problem?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

The community cannot and will not support you. This is exactly the same as if you call Microsoft to get help with a problem on Windows 2000. You will simply be told to upgrade because the version of the OS is no longer supported.

Revision history for this message
wenxiaocong (jefferywen) said :
#4

OS clean install with Xenial, But this issue no resolve, I check the log shows: NUL NUL NUL NUL NUL NUL NUL NUL NUL
Then reboot system. Seek your support to advise, Thanks a lot!

OS Kernel detail as below:
Apr 15 10:30:22 SH-11F3-A10-0401 kernel: [ 0.000000] Linux version 4.4.0-31-generic (buildd@lgw01-16) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) ) #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 (Ubuntu 4.4.0-31.50-generic 4.4.13)
Apr 15 10:30:22 SH-11F3-A10-0401 kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-31-generic root=UUID=30ee41a4-7b85-45c7-9070-79fca7ec0fd9 ro

Log as below:
Apr 14 21:15:51 SH-11F3-A10-0401 kernel: [13702.235348] scsi 1506:0:0:0: CD-ROM Linux File-CD Gadget 0401 PQ: 0 ANSI: 2
Apr 14 21:15:51 SH-11F3-A10-0401 kernel: [13702.236703] sr 1506:0:0:0: [sr2] scsi-1 drive
Apr 14 21:15:51 SH-11F3-A10-0401 kernel: [13702.237193] sr 1506:0:0:0: Attached scsi CD-ROM sr2
Apr 14 21:15:51 SH-11F3-A10-0401 kernel: [13702.237436] sr 1506:0:0:0: Attached scsi generic sg3 type 5
Apr 14 21:15:51 SH-11F3-A10-0401 kernel: [13702.286619] usb 1-3: new high-speed USB device number 120 using xhci_hcd
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.415975] usb 1-3: New USB device found, idVendor=12d1, idProduct=107e
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.415982] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.415987] usb 1-3: Product: HUAWEI
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.415990] usb 1-3: Manufacturer: unknown
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.415993] usb 1-3: SerialNumber: K4Q0116422000005
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.417894] usb-storage 1-3:1.3: USB Mass Storage device detected
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.418103] scsi host1507: usb-storage 1-3:1.3
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.838577] usb 1-7: new high-speed USB device number 121 using xhci_hcd
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.967820] usb 1-7: New USB device found, idVendor=12d1, idProduct=107e
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.967829] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.967833] usb 1-7: Product: HUAWEI
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.967837] usb 1-7: Manufacturer: unknown
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.967841] usb 1-7: SerialNumber: R3E0116117000071
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.969529] usb-storage 1-7:1.3: USB Mass Storage device detected
Apr 14 21:15:52 SH-11F3-A10-0401 kernel: [13702.969724] scsi host1508: usb-storage 1-7:1.3
Apr 14 21:15:53 SH-11F3-A10-0401 kernel: [13703.415340] scsi 1507:0:0:0: CD-ROM Linux File-CD Gadget 0401 PQ: 0 ANSI: 2
Apr 14 21:15:53 SH-11F3-A10-0401 kernel: [13703.416594] sr 1507:0:0:0: [sr3] scsi-1 drive
Apr 14 21:15:53 SH-11F3-A10-0401 kernel: [13703.417121] sr 1507:0:0:0: Attached scsi CD-ROM sr3
Apr 14 21:15:53 SH-11F3-A10-0401 kernel: [13703.417352] sr 1507:0:0:0: Attached scsi generic sg4 type 5
Apr 14 21:15:53 SH-11F3-A10-0401 kernel: [13703.967196] scsi 1508:0:0:0: CD-ROM Linux File-CD Gadget 0401 PQ: 0 ANSI: 2
Apr 14 21:15:53 SH-11F3-A10-0401 kernel: [13703.968605] sr 1508:0:0:0: [sr4] scsi-1 drive
Apr 14 21:15:53 SH-11F3-A10-0401 kernel: [13703.969154] sr 1508:0:0:0: Attached scsi CD-ROM sr4
Apr 14 21:15:53 SH-11F3-A10-0401 kernel: [13703.969358] sr 1508:0:0:0: Attached scsi generic sg5 type 5
Apr 14 21:15:53 SH-11F3-A10-0401 kernel: [13704.120986] usb 1-1: USB disconnect, device number 117
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] Initializing cgroup subsys cpuset
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] Initializing cgroup subsys cpu
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] Initializing cgroup subsys cpuacct
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] Linux version 4.4.0-31-generic (buildd@lgw01-16) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1) ) #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 (Ubuntu 4.4.0-31.50-generic 4.4.13)
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-31-generic root=UUID=30ee41a4-7b85-45c7-9070-79fca7ec0fd9 ro
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] KERNEL supported cpus:
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] Intel GenuineIntel
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] AMD AuthenticAMD
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] Centaur CentaurHauls
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: xstate_offset[3]: 960, xstate_sizes[3]: 64
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: xstate_offset[4]: 1024, xstate_sizes[4]: 64
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers'
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: Supporting XSAVE feature 0x08: 'MPX bounds registers'
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: Supporting XSAVE feature 0x10: 'MPX CSR'
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: Enabled xstate features 0x1f, context size is 1088 bytes, using 'standard' format.
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] x86/fpu: Using 'eager' FPU context switches.
Apr 15 10:27:43 SH-11F3-A10-0401 kernel: [ 0.000000] e820: BIOS-provided physical RAM map:

Revision history for this message
Jesse (jesse-boyd) said :
#5

I have the same issue when doing android development where my android Nexus 5X will at some point freeze my laptop OS and the only solution I know of is to unplug the phone and replug it in and everything goes back to normal. I am running linux mint 18.1 kernal 4.4.0-72-generic. The Nexus 5X is connect by a USB B to USB C connection cable.

I'm not sure if these log messages can illuminate the issue:

Process '/usr/lib/virtualbox/VBoxCreateUSBNode.sh 189 133 00' failed with exit code 1. org.gtk.vfs.Daemon[2197]: Device 0 (VID=18d1 and PID=4ee2) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP+ADB). Mar 19 14:31:14 org.gtk.vfs.Daemon[2197]: Error 1: Get Storage information failed.

Revision history for this message
wenxiaocong (jefferywen) said :
#6

System will crash when reset the USB/Type-c connect mobile phone and issue happen, PLS refer suggestion upgrade kernel to 4.11.RC7 for a try, Thanks a lot!

https://bugs.launchpad.net/bugs/1684120

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.