[Bug 1356528] Re: k3b dvd burning crashes with growisofs and -use-the-force-luke=dao: option

Thomas Schmitt scdbackup at gmx.net
Tue Jan 3 14:38:28 UTC 2017


Hi,

this might be the same growisofs bug as
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794868
where a remedy patch was tested by a user but not yet applied to the
Debian package of dvd+rw-tools.

-------------------------------------------------------------------
Remedy for the wrong last WRITE transaction:
-------------------------------------------------------------------
--- growisofs_mmc-7.1-11.cpp    2015-08-07 13:07:52.000000000 +0200
+++ growisofs_mmc.cpp   2015-08-07 14:06:31.375597960 +0200
@@ -540,7 +540,7 @@ ssize_t poor_mans_pwrite64 (int fd,const
        // own higher HZ value and disrespects the user-land one.
        // Sending them down as milliseconds is just safer...
        //
-       if (!(errcode=cmd.transport (WRITE,(void *)buff,size)))
+       if (!(errcode=cmd.transport (WRITE,(void *)buff,nbl*2048)))
            break;

        //--- WRITE failed ---//

----------------------------------------------------------------
Remedy for the wrong error code display:
----------------------------------------------------------------
--- transport-7.1-11.hxx        2015-08-07 13:07:52.000000000 +0200
+++ transport.hxx       2015-08-07 13:43:02.759592641 +0200
@@ -70,7 +70,12 @@ inline long getmsecs()
 #ifndef FATAL_START
 #define        FATAL_START(er) (0x80|(er))
 #endif
-#define ERRCODE(s)     ((((s)[2]&0x0F)<<16)|((s)[12]<<8)|((s)[13]))
+#define ERRCODE_FIXED(s)       ((((s)[2]&0x0F)<<16)|((s)[12]<<8)|((s)[13]))
+#define ERRCODE_DESCR(s)       ((((s)[1]&0x0F)<<16)|((s)[2]<<8)|((s)[3]))
+#define ERRCODE(s)             ((s)[0] == 0x70 || (s)[0] == 0x71 ? \
+                                       ERRCODE_FIXED(s) : \
+                               ((s)[0] == 0x72 || (s)[0] == 0x73 ? \
+                                       ERRCODE_DESCR(s) : 0))
 #define        SK(errcode)     (((errcode)>>16)&0xF)
 #define        ASC(errcode)    (((errcode)>>8)&0xFF)
----------------------------------------------------------------

Have a nice day :)

Thomas


** Bug watch added: Debian Bug tracker #794868
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794868

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to k3b in Ubuntu.
https://bugs.launchpad.net/bugs/1356528

Title:
  k3b dvd burning crashes with growisofs and -use-the-force-luke=dao:
  option

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/k3b/+bug/1356528/+subscriptions




More information about the kubuntu-bugs mailing list