Debian Bug report logs - #713016
dvd+rw-tools: Burning to previously blank BD-R ends by error message "CLOSE SESSION failed"

version graph

Package: dvd+rw-tools; Maintainer for dvd+rw-tools is Optical Media Tools Team <pkg-opt-media-team@lists.alioth.debian.org>; Source for dvd+rw-tools is src:dvd+rw-tools.

Reported by: Thomas Schmitt <scdbackup@gmx.net>

Date: Fri, 21 Jun 2013 21:36:02 UTC

Severity: normal

Tags: patch, upstream

Found in versions dvd+rw-tools/7.1-6, dvd+rw-tools/7.1-10

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, scdbackup@gmx.net, Optical Media Tools Team <pkg-opt-media-team@lists.alioth.debian.org>:
Bug#713016; Package dvd+rw-tools. (Fri, 21 Jun 2013 21:36:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Schmitt <scdbackup@gmx.net>:
New Bug report received and forwarded. Copy sent to scdbackup@gmx.net, Optical Media Tools Team <pkg-opt-media-team@lists.alioth.debian.org>. (Fri, 21 Jun 2013 21:36:06 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Thomas Schmitt <scdbackup@gmx.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dvd+rw-tools: Burning to previously blank BD-R ends by error message "CLOSE SESSION failed"
Date: Fri, 21 Jun 2013 23:33:04 +0200
Package: dvd+rw-tools
Version: 7.1-6
Severity: normal
Tags: upstream patch


Hi,

it is a long standing bug of growisofs to throw an error at
the end of a burn run to previously blank BD-R media:
 
 :-[ CLOSE SESSION failed with SK=5h/INVALID FIELD IN CDB]: Input/output error

See also
  https://bugs.launchpad.net/ubuntu/+source/dvd+rw-tools/+bug/1113679

I don't see this reported as fixed in
  http://ftp-master.metadata.debian.org/changelogs//main/d/dvd+rw-tools/dvd+rw-tools_7.1-10_changelog
so i assume it is still present. (Experiments would be expensive.)


Being a competitor and a disciple of dvd+rw-tools i recently
re-read the 5 year old diagnosis of Andy Polyakov
  http://lists.debian.org/cdwrite/2008/07/msg00092.html
and developed a theory
  http://lists.alioth.debian.org/pipermail/debburn-devel/2013-June/000924.html
which leads to this tiny patch:

====================================================================

--- growisofs_mmc_orig.cpp       2013-06-14 19:53:51.000000000 +0200
+++ growisofs_mmc.cpp   2013-06-14 19:55:25.000000000 +0200
@@ -756,6 +756,8 @@ static void bd_r_format (Scsi_Command &c

     wait_for_unit (cmd);

+    bdr_plus_pow = 1;
+
     cmd[0] = 0x35;     // FLUSH CACHE
     cmd[9] = 0;
     cmd.transport();

====================================================================

The patch is now confirmed to silence the error message.
See
  http://lists.alioth.debian.org/pipermail/debburn-devel/2013-June/000928.html

growisofs users may thank Frank Griffin for bothering to test it.


Have a nice day :)

Thomas


-- System Information:
Debian Release: 6.0.3
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Shell: /bin/sh linked to /bin/bash

Versions of packages dvd+rw-tools depends on:
ii  genisoimage                   9:1.1.11-1 Creates ISO-9660 CD-ROM filesystem
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.5-8  GCC support library
ii  libstdc++6                    4.4.5-8    The GNU Standard C++ Library v3

dvd+rw-tools recommends no packages.

Versions of packages dvd+rw-tools suggests:
pn  cdrskin                       <none>     (no description available)

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Optical Media Tools Team <pkg-opt-media-team@lists.alioth.debian.org>:
Bug#713016; Package dvd+rw-tools. (Wed, 08 Jan 2014 00:15:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to martin <martin@luminoussheep.net>:
Extra info received and forwarded to list. Copy sent to Optical Media Tools Team <pkg-opt-media-team@lists.alioth.debian.org>. (Wed, 08 Jan 2014 00:15:11 GMT) Full text and rfc822 format available.

Message #10 received at 713016@bugs.debian.org (full text, mbox):

From: martin <martin@luminoussheep.net>
To: Debian Bug Tracking System <713016@bugs.debian.org>
Subject: Re: dvd+rw-tools: Burning to previously blank BD-R ends by error message "CLOSE SESSION failed"
Date: Tue, 07 Jan 2014 23:50:57 +0000
Package: growisofs
Version: 7.1-10
Followup-For: Bug #713016

Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
I created a udf image to write to the disk

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
I used growisofs to write the image to the blu ray disk

   * What was the outcome of this action?
Failure with the error:
:-[ CLOSE SESSION failed with SK=5h/INVALID FIELD IN CDB]: Input/output error 

   * What outcome did you expect instead?
A working disk, the disk had checksum errors on some of the files

*** End of the template - remove these lines ***


-- System Information:
Debian Release: 7.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages growisofs depends on:
ii  libc6       2.13-38
ii  libgcc1     1:4.7.2-5
ii  libstdc++6  4.7.2-5

growisofs recommends no packages.

growisofs suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Optical Media Tools Team <pkg-opt-media-team@lists.alioth.debian.org>:
Bug#713016; Package dvd+rw-tools. (Wed, 08 Jan 2014 06:57:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Martin" <martin@luminoussheep.net>:
Extra info received and forwarded to list. Copy sent to Optical Media Tools Team <pkg-opt-media-team@lists.alioth.debian.org>. (Wed, 08 Jan 2014 06:57:10 GMT) Full text and rfc822 format available.

Message #15 received at 713016@bugs.debian.org (full text, mbox):

From: "Martin" <martin@luminoussheep.net>
Cc: "Debian Bug Tracking System" <713016@bugs.debian.org>
Subject: Re: dvd+rw-tools: Burning to previously blank BD-R ends by error message "CLOSE SESSION failed"
Date: Wed, 8 Jan 2014 06:54:23 -0000
> Package: growisofs
> Version: 7.1-10
> Followup-For: Bug #713016

I'd like to confirm that the fix works.

I grabbed the source, added the line, built it and ran the newly built
program and the disk was written successfully.

Please can we apply this patch?

Also any idea why this doesn't show on:
http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=growisofs;dist=stable

Thanks,
M




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 23:50:16 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.