[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-15 Thread Martin Pitt
forestpiskie, it's probably bug 562978 (I still need some debug data from Mike Brudevold to be 100% sure). -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-14 Thread forestpiskie
Still have this issue here - not sure if it is the same thing though . Output of sudo /lib/udev/cdrom_id -d /dev/sr0 is main: probing: '/dev/sr0' cd_media_compat: CDROM_DRIVE_STATUS != CDS_DISC_OK cd_inquiry: INQUIRY: [LITE-ON ][COMBO SOHC-5232K][NK0J] cd_profiles: GET CONFIGURATION: number of

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-14 Thread forestpiskie
sorry - this would appear to be completely the wrong thing - this is nothing to do with an audio cd -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. --

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-14 Thread Martin Pitt
forestpiskie, this looks similar to John Yate's problem. So perhaps you can subscribe to John's new bug, or you file a new one and John subscribes to it. You don't get a phantom media for sr0, though, just for sr1, right? -- cdrom_id: misdetects no media as audio CD

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-14 Thread Mike Brudevold
My issue is the blank cd problem, and yes it happens on 151-10. 151-10 just solidified the problem where it gets detected as blank because you initialize everything now, and there's no chance for it to be random (unless you get random back). -- cdrom_id: misdetects no media as audio CD

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-14 Thread forestpiskie
forestpiskie, this looks similar to John Yate's problem. So perhaps you can subscribe to John's new bug, or you file a new one and John subscribes to it. You don't get a phantom media for sr0, though, just for sr1, right? It would appear so - at least I only get on on the desktop :) If and when

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
For this user, go back to udev version 151-7 seems to solve this issue Does it help for you? It would be great if you guys could test udev 151-5 on lucid. You can get the old .deb from here: i386: https://launchpad.net/ubuntu/+source/udev/151-5/+build/1514099/+files/udev_151-5_i386.deb

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread frenchy82
Installing udev 151-5 (386), reboot solve the problem. No more audio cd if there is no cd. (and of course it works inserting an audio cd) -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
I just tried that in kvm, and while I do not get phantom drives, I do get some bogus data, too. I'm more and more convinced that this isn't a direct cause of the code changes between -5 and -8, but pure coincidence. It looks like cdrom_id uses uninitialized data which just happens to be different

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
I think this should help: http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=816e6bf0fb0849d03696a4b4ec2334e35e819425 With this I get correct data in kvm. I'll upload a new udev to lucid now (151-9). I'd appreciate if you could confirm/deny that this fixes the problem for you as

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Launchpad Bug Tracker
This bug was fixed in the package udev - 151-9 --- udev (151-9) lucid; urgency=low * cdrom_id: In cases where cdrom_id does not go through the entire code path and one of the probing functions returns -1 or exits early, the remaining variables were never initialized. This

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Conscious User
I was about to report that downgrading udev worked for me, but I guess I was too slow. :) Okay, gonna wait until this new udev hits the repositories I use and report accordingly. -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
On a closer look, this patch in -9 was actually a no-op, and it again is sheer luck. It rather seems that the difference seems to come from building with and without optimization, I'll investigate further. ** Changed in: udev (Ubuntu Lucid) Status: Fix Released = In Progress -- cdrom_id:

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
OK, more questions: * With current udev, if you get the phantom CD, please copypaste the output of sudo /lib/udev/cdrom_id -d /dev/sr0 The -d option will provide some additional debug info. * One particular part where I can reproduce garbage with a real CD should be fixed in my PPA:

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Conscious User
Output of sudo /lib/udev/cdrom_id -d /dev/sr0, current udev, seeing phantom. main: probing: '/dev/sr0' cd_media_compat: CDROM_DRIVE_STATUS != CDS_DISC_OK cd_inquiry: INQUIRY: [VBOX][CD-ROM ][1.0 ] cd_profiles: GET CONFIGURATION: number of profiles 20 cd_profiles: current profile 0x08

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
I just updated udev in my PPA to version 151-9pitti2, which now has a more complete fix for the uninitialized variables than pitti1. Please try this version. Thanks! -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Conscious User
Martin, good news, 151-9pitti1 didn't solve the problem but 151-9pitti2 seems to! :) Not seeing phantoms currently. Attaching strace. ** Attachment added: cdrom_id.trace http://launchpadlibrarian.net/44031839/cdrom_id.trace -- cdrom_id: misdetects no media as audio CD

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
Splendid, thanks for testing! Fix committed upstream: http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=2b861dc92757b9a3214c2b8e9d8b1c3f3c162391 ** Changed in: udev (Ubuntu Lucid) Status: In Progress = Fix Committed -- cdrom_id: misdetects no media as audio CD

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread James Schriver
151-9pitti2 has also fixed the CD-ROM not detecting blank media. Working good now :). -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Launchpad Bug Tracker
This bug was fixed in the package udev - 151-10 --- udev (151-10) lucid; urgency=low * cdrom_id: Turns out that some ioctls do not actually touch the result buffer in some cases, so we need to zero the result buffers to avoid interpreting random da CD properties. (LP:

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread frenchy82
Thanks a lot, i can confirm too. -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Conscious User
Confirming the fix with the latest updates. Thank you very much for your quick efforts, Martin. -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. --

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread frenchy82
I'm not able now to mount all my usb mass storage now but not sure that is linked with this update -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. --

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread John Yates
I still have a phantom blank cd-rom disk showing on the desktop with udev_151-10. -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs

Re: [Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
John Yates [2010-04-13 18:02 -]: I still have a phantom blank cd-rom disk showing on the desktop with udev_151-10. Can you please give me the straces and cdrom_id -d outputs as described above? Did you restart the computer after the upgrade, just to be sure? -- cdrom_id: misdetects no

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread John Yates
/lib/udev/cdrom_id -d /dev/sr0 main: probing: '/dev/sr0' cd_media_compat: CDROM_DRIVE_STATUS != CDS_DISC_OK cd_inquiry: INQUIRY: [SONY][CD-RW CRX230ED ][4YS1] cd_profiles: GET CONFIGURATION: number of profiles 184 cd_profiles: profile 0x0a cd_profiles: current profile 0x02 cd_media_toc: READ

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread John Yates
Oh, Yes I did restart. -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Mike Brudevold
I have now been able to reproduce the problem on 151-7. The issue here is that it is transient. Running cdrom_id on /dev/sr1 gave me differing values of ID_CDROM_MEDIA_STATE, including appendable, complete, other and blank. On a hunch, I ran sudo udevadm trigger 9 times. On the 9th time, the

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Mike Brudevold
I took a look at the profiles that are being reported from the GET CONFIGURATION command, and none of them report that they are the current profile, and yet the header reports 0x02 as the current profile. I also submitted a patch (hopefully) to the hotplug mailing list that fixes the enumeration

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Mike Brudevold
I wonder if the best way to solve this is to actually go through the profile list yourself? The following output is of the format (profile [profile number] [current bit]): This is my profile list with no CD (Active profile in header is 0x02): profile 0x0a 0x00 profile 0x09 0x00 profile 0x08

Re: [Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
Mike, Mike Brudevold [2010-04-14 0:55 -]: I have now been able to reproduce the problem on 151-7. Can you please retry with -10? Martin -- Martin Pitt| http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- cdrom_id:

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-13 Thread Martin Pitt
John, thanks for the trace. I have a rough idea why this happens for you, but since it's a totally different root cause, would you mind opening a new bug, since this is closed? Thanks! -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread frenchy82
This is mine ** Attachment added: cdrom_id.trace http://launchpadlibrarian.net/43920073/cdrom_id.trace -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread Conscious User
Here we go. I think it would be interesting if me and frenchy82 both keep sending the requested logs, as he is with a real install and I am with a VirtualBox install, so all bases all covered. ** Attachment added: cdrom_id.trace http://launchpadlibrarian.net/43920776/cdrom_id.trace --

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread Martin Pitt
Thanks. So all ioctl()s succeed, but deliver totally bogus data, reassigning to kernel. Do you have a chance to try this under karmic (Ubuntu 9.10) as well? (A live system booted from an USB stick should do fine). Could you do the same strace there and attach it for comparison? ** Package

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread frenchy82
Could it be the same isse as this one https://bugs.launchpad.net/ubuntu/+source/udev/+bug/560469 For this user, go back to udev version 151-7 seems to solve this issue -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread Conscious User
VirtualBox cannot boot from USB, so I'm doing the following: I've created a secondary virtual CD drive in my VirtualBox machine and I now have two phantom audio discs in Lucid, one per drive (sr0 and sr1). First I'll attach the traces for sr0 and sr1 in Lucid. Afterwards I'll attach the same for

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread Conscious User
** Attachment added: cdrom_id.trace.lucid.sr1 http://launchpadlibrarian.net/43931270/cdrom_id.trace.lucid.sr1 -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread Conscious User
Here it goes, for Karmic. sr0 is the LiveCD itself, I suppose. There are no phantoms. ** Attachment added: cdrom_id.trace.karmic.sr0 http://launchpadlibrarian.net/43932516/cdrom_id.trace.karmic.sr0 -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread Conscious User
** Attachment added: cdrom_id.trace.karmic.sr1 http://launchpadlibrarian.net/43932550/cdrom_id.trace.karmic.sr1 -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread Martin Pitt
Uh, that's indeed interesting. -6 did introduce a regression (it often did not recognize audio and other CDs at all any more), but -7 should have fixed it again. I'll look into this more closely. ** Package changed: linux (Ubuntu) = udev (Ubuntu) ** Changed in: udev (Ubuntu) Importance: Low =

[Bug 559723] Re: cdrom_id: misdetects no media as audio CD

2010-04-12 Thread Martin Pitt
** Changed in: udev (Ubuntu) Importance: Medium = High ** Also affects: udev (Ubuntu Lucid) Importance: High Assignee: Martin Pitt (pitti) Status: In Progress -- cdrom_id: misdetects no media as audio CD https://bugs.launchpad.net/bugs/559723 You received this bug notification