DVD - 'attempt to access beyond end of device'

Bug #404472 reported by Matt Grant
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

My wife is a DVD maven, and has been watching DVDs using an AMD64x2 shuttle running Jaunty Mythbuntu. After watching a DVD for some time, it the player will about somewhere near the end of the DVD, usually with the last 2 chapters being unplayable.

Using Ubuntu linux-image-2.6.28-13-generic via libata sr0 device AND kernel.org 2.6.30.2 /dev/hdc IDE device xine will stop suddenly, with a "libdvdread: Can't seek to block XXXXX" - some large number. Also mounting DVD and reading last VOB file on disk results in:

UDF-fs: Partition marked readonly; forcing readonly mount
UDF-fs INFO UDF: Mounting volume 'LHOP_2_VOL3', timestamp 2004/10/05 01:52 (1000)
attempt to access beyond end of device
hdc: rw=0, want=14685476, limit=8388604
Buffer I/O error on device hdc, logical block 3671368
attempt to access beyond end of device
hdc: rw=0, want=14685480, limit=8388604
Buffer I/O error on device hdc, logical block 3671369
attempt to access beyond end of device
hdc: rw=0, want=14685484, limit=8388604
Buffer I/O error on device hdc, logical block 3671370
attempt to access beyond end of device
hdc: rw=0, want=14685488, limit=8388604
Buffer I/O error on device hdc, logical block 3671371
attempt to access beyond end of device
hdc: rw=0, want=14685492, limit=8388604
Buffer I/O error on device hdc, logical block 3671372
attempt to access beyond end of device
hdc: rw=0, want=14685496, limit=8388604
Buffer I/O error on device hdc, logical block 3671373
attempt to access beyond end of device
hdc: rw=0, want=14685500, limit=8388604
Buffer I/O error on device hdc, logical block 3671374
attempt to access beyond end of device
hdc: rw=0, want=14685504, limit=8388604
Buffer I/O error on device hdc, logical block 3671375
attempt to access beyond end of device
hdc: rw=0, want=14685476, limit=8388604
Buffer I/O error on device hdc, logical block 3671368
attempt to access beyond end of device
hdc: rw=0, want=14685480, limit=8388604
Buffer I/O error on device hdc, logical block 3671369

This has happened repeatedly. I have swapped the DVD writer out, and it still happens.

Here is debug information:

shalom: -grantma- [~]
$ uname -a
Linux shalom 2.6.30-amd64-mag #1 SMP PREEMPT Wed Jul 22 19:00:37 NZST 2009 x86_64 GNU/Linux

shalom: -grantma- [~]
$

This bug occurs with both linux-image-2.6.28-13-generic (/dev/sr0) AND my own kernel based on 2.6.30.2 kernel.org source (/dev/hdc) - There is a real repeatable problem here - you have to sit down and watch hours of DVD to find it. This occurred with a Pioneer DVR-110D and an LG GH22LP20 DVD writers.

Revision history for this message
Matt Grant (mattgrant) wrote :

Yes, I forgot to add that rebooting fixes the problem (I should look at unloading/reloading DVD media kernel modules) and you can play past the point where xine gave up. When xine gives up, mounting the DVD and reading the last VOB files on the media results in the above kernel messages.

 and I reflashed the Pioneer DVD writer to latest firmware version to see if that would help.

 It is looking like a serious problem in the 2.6.x kernel source somewhere?

Hardware is a Shuttle SN95G5 with Nvidia Nforce 3 chipset, 2GB RAM, and an AMD64x2 4400+ CPU.

Revision history for this message
Sebastian (zimmermann+launchpad-net) wrote :

Same problem with Ubuntu karmic (UDF-fs on sr0).
It is impossible to view the DVD in Linux, however, in Windows Vista everything works fine.
Error messages: "attempt to access beyond end of device"
linux-image-2.6.31-11-generic

Revision history for this message
Sebastian (zimmermann+launchpad-net) wrote :

hmm, just added my user account to the disk group. Now everything works fine - no more error messages.

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Matthew,

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 404472

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Florian Schröck (mael-reverted) wrote :

i just experienced this bug on ubuntu lucid with the DVD The Shield Season 5 Disc 1

hundreds of these messages in dmesg/messages:
Sep 7 20:59:04 fsc kernel: [65583.768822] sr0: rw=0, want=15224092, limit=9747584
Sep 7 20:59:04 fsc kernel: [65583.768823] attempt to access beyond end of device

after the reboot the DVD plays fine

apport-collect coming right up, please let me know how i can help further

tags: added: apport-collected
Revision history for this message
Florian Schröck (mael-reverted) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: fsc 2864 F.... panaapp
 /dev/snd/pcmC0D0p: fsc 2198 F...m esd
                      fsc 2864 F...m panaapp
                      fsc 2992 F...m mplayer
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Audigy2'/'SB Audigy 4 [SB0610] (rev.0, serial:0x10211102) at 0xec00, irq 18'
   Mixer name : 'SigmaTel STAC9750,51'
   Components : 'AC97a:83847650'
   Controls : 202
   Simple ctrls : 37
Card1.Amixer.info:
 Card hw:1 'U0x46d0x807'/'USB Device 0x46d:0x807 at usb-0000:00:1a.7-6, high speed'
   Mixer name : 'USB Mixer'
   Components : 'USB046d:0807'
   Controls : 2
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'Mic',0
   Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
   Capture channels: Mono
   Limits: Capture 0 - 6144
   Mono: Capture 0 [0%] [6.00dB] [on]
DistroRelease: Ubuntu 10.04
Frequency: I don't know.
HibernationDevice: RESUME=UUID=9ee35d5a-a4be-4798-a6d4-49541efbd0ed
MachineType: System manufacturer P5K
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcCmdLine: root=/dev/sdb6 ro quiet crashkernel=384M-2G:64M,2G-:128M
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.42-generic 2.6.32.15+drm33.5
Regression: No
RelatedPackageVersions: linux-firmware 1.34.1
Reproducible: No
RfKill:

Tags: lucid kconfig needs-upstream-testing
Uname: Linux 2.6.32-24-generic i686
UserAsoundrc:
 # ALSA library configuration file

 # Include settings that are under the control of asoundconf(1).
 # (To disable these settings, comment out this line.)
 </home/fsc/.asoundrc.asoundconf>
UserGroups: adm admin cdrom dialout disk lpadmin plugdev sambashare src
WpaSupplicantLog:

dmi.bios.date: 10/14/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1201
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5K
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1201:bd10/14/2008:svnSystemmanufacturer:pnP5K:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5K:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: P5K
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Florian Schröck (mael-reverted) wrote : AlsaDevices.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : AplayDevices.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : ArecordDevices.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : BootDmesg.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : Card0.Codecs.codec97.0.ac97.0.0.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : Card0.Codecs.codec97.0.ac97.0.0.regs.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : IwConfig.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : Lspci.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : Lsusb.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : PciMultimedia.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : ProcModules.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : UdevDb.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : UdevLog.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : UserAsoundrcAsoundconf.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote : WifiSyslog.txt

apport information

Revision history for this message
Florian Schröck (mael-reverted) wrote :

apport asked me, if it was reproducible - i haven't tried

Changed in linux (Ubuntu):
status: Expired → New
Revision history for this message
Colan Schwartz (colan) wrote :

I can confirm that rebooting fixes the problem.

tags: added: maverick
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Matthew Grant, thank you for reporting this and helping make Ubuntu better. Jaunty reached EOL on October 23, 2010.
Please see this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We were wondering if this is still an issue in a supported release? If so, can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command in a supported release from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux <replace-with-bug-number>

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.

Please let us know your results. Thanks in advance.

tags: added: jaunty
tags: removed: apport-collected maverick
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
andrew (ham-m) wrote :
Download full text (4.2 KiB)

I'd like to re-open this bug. I'm reproducing it on Ubuntu Gnome 13.04 Raring 64 bit.
Totally reproducible but this is what you initially observe
VLC stops playing a DVD about an hour into the film with the error
Playback failure:
DVDRead could not read 0/4 blocks at 0x200b8b.

If you look in syslog you see that it is because the player (VLC in this case but actually ALL players do the same) has tried to read past the last block in the DVD
Nov 1 23:03:23 aspire kernel: [ 3255.571794] sr 5:0:0:0: [sr0]
Nov 1 23:03:23 aspire kernel: [ 3255.571795] Sense Key : Not Ready [deferred]
Nov 1 23:03:23 aspire kernel: [ 3255.571799] sr 5:0:0:0: [sr0]
Nov 1 23:03:23 aspire kernel: [ 3255.571802] Add. Sense: Medium not present - tray open
Nov 1 23:03:23 aspire kernel: [ 3255.571805] sr 5:0:0:0: [sr0] CDB:
Nov 1 23:03:23 aspire kernel: [ 3255.571806] Read(10): 28 00 00 00 01 08 00 00 01 00
Nov 1 23:03:23 aspire kernel: [ 3255.571815] end_request: I/O error, dev sr0, sector 1056
Nov 1 23:03:23 aspire kernel: [ 3255.572795] sr 5:0:0:0: [sr0] Unhandled error code
Nov 1 23:03:23 aspire kernel: [ 3255.572799] sr 5:0:0:0: [sr0]
Nov 1 23:03:23 aspire kernel: [ 3255.572801] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Nov 1 23:03:23 aspire kernel: [ 3255.572803] sr 5:0:0:0: [sr0]
Nov 1 23:03:23 aspire kernel: [ 3255.572805] Sense Key : Not Ready [deferred]
Nov 1 23:03:23 aspire kernel: [ 3255.572809] sr 5:0:0:0: [sr0]
Nov 1 23:03:23 aspire kernel: [ 3255.572811] Add. Sense: Medium not present - tray open
Nov 1 23:03:23 aspire kernel: [ 3255.572814] sr 5:0:0:0: [sr0] CDB:
Nov 1 23:03:23 aspire kernel: [ 3255.572815] Read(10): 28 00 00 00 01 08 00 00 01 00
Nov 1 23:03:23 aspire kernel: [ 3255.572824] end_request: I/O error, dev sr0, sector 1056
Nov 1 23:03:38 aspire kernel: [ 3270.315777] VFS: busy inodes on changed media or resized disk sr0
Nov 1 23:04:02 aspire kernel: [ 3294.082271] attempt to access beyond end of device
Nov 1 23:04:02 aspire kernel: [ 3294.082276] sr0: rw=0, want=12617616, limit=8629440
Nov 1 23:04:02 aspire kernel: [ 3294.082280] attempt to access beyond end of device
Nov 1 23:04:02 aspire kernel: [ 3294.082281] sr0: rw=0, want=12617592, limit=8629440
Nov 1 23:04:02 aspire kernel: [ 3294.182922] attempt to access beyond end of device

REASON:
It appears to be because the DVD you are attempting to play has more data than the one you just ejected and for some reason the length has not been updated so the DVD player "falls off the end".

Here is how to reproduce it

1) Reboot Linux
2) Put in a DVD that is quite short. Mine is called RORY"
3) Navigate to it with the file explorer. The DVD is correctly labled RORY on the left.
4) If you press <control>+L you can see it has been mounted to /media/andrew/RORY
5) Press the eject button ON THE DVD PLAYER
6) Take out the DVD and put in another DVD. Mine is called OCEANS_TWELVE
7) Close the DVD tray and navigate to it with file explorer. The DVD is correctly labled OCEANS_TWELVE on the left.

BUT
8) If you press <control>+L you can see it IS STILL MOUNTED AT /media/andrew/RORY
9) Try to play with ANY dvd player and skip to near the end of the DVD.

If the D...

Read more...

Revision history for this message
andrew (ham-m) wrote :

Oh. system details
andrew@aspire:~$ uname -a
Linux aspire 3.8.0-32-generic #47-Ubuntu SMP Tue Oct 1 22:35:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
andrew (ham-m) wrote :
Revision history for this message
penalvch (penalvch) wrote :

andrew, if you have a bug in Ubuntu, the Ubuntu Kernel team, Ubuntu Bug Control team, and Ubuntu Bug Squad would like you to please file a new report by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Please note, not filing a new report would delay your problem being addressed as quickly as possible.

No need exists to comment here at this time. After reading the above documentation in it's entirety, if you have further questions, you are welcome to redirect them to the appropriate mailing list or forum via http://www.ubuntu.com/support/community/mailinglists , or you may contact me directly.

Thank you for your understanding.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.