Bug 711824

Summary: X Server crashes when pull out usb drive
Product: [Fedora] Fedora Reporter: Łukasz Posadowski <mail>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-04 15:35:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Łukasz Posadowski 2011-06-08 16:08:31 UTC
Description of problem:
X Server crashes, I was kicked out to the console.

Version-Release number of selected component (if applicable):
kernel-PAE-2.6.38.6-27.fc15.i686

How reproducible:
Rarely, very rarely. I just got second crash in a month period.

Steps to Reproduce:
1. Plug and mount USB drive.
2. Unmount it
3. Unplug it.
  
Actual results:
X server Crashes.

Expected results:
X server continue to work.

Additional info:
Quote from /var/log/messages:
Jun  8 16:36:08 mamut5 kernel: [16524.810275] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled
Jun  8 16:36:08 mamut5 kernel: [16524.820274] sd 5:0:0:0: [sdb] Asking for cache data failed
Jun  8 16:36:08 mamut5 kernel: [16524.820283] sd 5:0:0:0: [sdb] Assuming drive cache: write through
Jun  8 16:36:13 mamut5 kernel: [16529.835060] not responding...
Jun  8 16:36:13 mamut5 kernel: [16529.860156] sd 5:0:0:0: [sdb] READ CAPACITY failed
Jun  8 16:36:13 mamut5 kernel: [16529.860164] sd 5:0:0:0: [sdb]  Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Jun  8 16:36:13 mamut5 kernel: [16529.860175] sd 5:0:0:0: [sdb]  Sense Key : Unit Attention [current] 
Jun  8 16:36:13 mamut5 kernel: [16529.860186] sd 5:0:0:0: [sdb]  Add. Sense: Not ready to ready change, medium may have changed

I got a lot of those messages. It was logged every 5 seconds. It stared when I plug a music player to usb, but it "works" with simple 1 gig memory, too.

Comment 1 Łukasz Posadowski 2011-06-09 07:56:39 UTC
Sorry, my mistake. Problem is with my music player (some older version of http://www.sony.co.in/product/nwz-b153f) and it is constant. Every time I plug it, I'm spammed by those messages. Every time I unplug it, I have X server crashed.

I always can start it again without reboot, but it's a bit annoying.

Comment 2 Josh Boyer 2011-10-04 14:35:32 UTC
Could you please try this update and see if the problems recreate:

https://admin.fedoraproject.org/updates/kernel-2.6.40.6-0.fc15

There have been a few USB drive issues that are fixed here.

Also, if it is really the X server that is crashing and not the kernel, you might want to reassign this to the xorg-x11-server component.

Comment 3 Łukasz Posadowski 2011-10-04 15:35:46 UTC
I completely forgot about this request, sorry. It's working since a while. I really don't know why, or how, but yeah... It works.