Bug 225291 - sysutils/dvd+rw-tools: segementation fault error while writing DVD
Summary: sysutils/dvd+rw-tools: segementation fault error while writing DVD
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-18 07:34 UTC by O. Hartmann
Modified: 2018-06-06 10:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2018-01-18 07:34:07 UTC
On recent CURRENT ( FreeBSD 12.0-CURRENT #1 r328107: Thu Jan 18 06:43:22 CET 2018 amd64, WITH_LLD_IS_LD=YES), with recent ports tree (r459315) and recent recompiled/updated port sysutils/dvd+rw-tools, I receive while writing a DVD image (RedHat Linux 7.3, rhel-server-7.3-x86_64-dvd.iso, also rhel-server-7.2-x86_64-dvd.iso or rhel-server-7.4-update-3-x86_64-dvd.iso - that is for customers, so do not be worried about Linux!, it also happens with recent DVDs for FreeBSD-CURRENT or 11.1-RELEASE or 11.1-STABLE snapshots):

[...]
 3460694016/3793747968 (91.2%) @12.4x, remaining 0:25 RBU 100.0% UBU  72.2%
 3526721536/3793747968 (93.0%) @14.3x, remaining 0:20 RBU 100.0% UBU  37.4%
 3594878976/3793747968 (94.8%) @14.4x, remaining 0:14 RBU 100.0% UBU  83.9%
 3663855616/3793747968 (96.6%) @14.5x, remaining 0:09 RBU 100.0% UBU  83.9%
 3731456000/3793747968 (98.4%) @14.6x, remaining 0:04 RBU 100.0% UBU  56.0%
Segmentation fault

[...]

and on the console I see a lot of 

[...]
(cd0:ahcich8:0:0:0): READ(10). CDB: 28 00 00 00 00 00 00 00 01 00 
(cd0:ahcich8:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich8:0:0:0): SCSI status: Check Condition
(cd0:ahcich8:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track)
(cd0:ahcich8:0:0:0): Error 6, Unretryable error
(cd0:ahcich8:0:0:0): cddone: got error 0x6 back
(cd0:ahcich8:0:0:0): READ(10). CDB: 28 00 00 00 00 00 00 00 01 00 
(cd0:ahcich8:0:0:0): CAM status: SCSI Status Error
(cd0:ahcich8:0:0:0): SCSI status: Check Condition
(cd0:ahcich8:0:0:0): SCSI sense: ILLEGAL REQUEST asc:64,0 (Illegal mode for this track)
(cd0:ahcich8:0:0:0): Error 6, Unretryable error
(cd0:ahcich8:0:0:0): cddone: got error 0x6 back
[...]

The issued command is

growisofs -Z/dev/cd0=rhel-server-7.3-x86_64-dvd.is

used hardware:

CPU:

FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLVM 6.0.0)
VT(efifb): resolution 2560x1440
CPU: Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz (3491.98-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306f2  Family=0x6  Model=0x3f  Stepping=2
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7dfefbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x21<LAHF,ABM>
  Structured Extended Features=0x37ab<FSGSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,NFPUSG>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr
  TSC: P-state invariant, performance statistics
real memory  = 34359738368 (32768 MB)
avail memory = 33002762240 (31473 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <FUJ    D3348-A1>
FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs
FreeBSD/SMP: 1 package(s) x 6 core(s) x 2 hardware threads
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
SMP: AP CPU #1 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #9 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #10 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #11 Launched!
SMP: AP CPU #8 Launched!
SMP: AP CPU #5 Launched!
random: entropy device external interface
netmap: loaded module
module_register_init: MOD_LOAD (vesa, 0xffffffff80add920, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
[...]


and DVD writer is

cd0: <HL-DT-ST DVD-RAM GH22NS30 1.01> Removable CD-ROM SCSI device
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
Comment 1 O. Hartmann 2018-06-06 05:33:40 UTC
This is now on CURRENT (FreeBSD 12.0-CURRENT #38 r334651: Tue Jun  5 13:33:18 CEST 2018) amd64, with another DVD burner (cd0: <hp DVD A  DH16ABLH 3HD9> Removable CD-ROM SCSI device). Prior to this DVD burner, I tried another one (cd0: <HL-DT-ST DVDRAM GH41N MN01>  s/n K5KA3SL4647) with the same result.

The port has been recompiled/installed today to ensure it is not out of sync.

[...]
 4544593920/4617928704 (98.4%) @8.0x, remaining 0:07 RBU 100.0% UBU  99.5%
 4581982208/4617928704 (99.2%) @8.1x, remaining 0:03 RBU 100.0% UBU  99.5%
Segmentation fault
root@ # growisofs -Z/dev/cd0=rhel-server-7.5-x86_64-dvd.iso
:-( unable to stat("/dev/cd0"): Bad file descriptor
root@ # growisofs -Z/dev/cd0=rhel-server-7.5-x86_64-dvd.iso
Executing 'builtin_dd if=rhel-server-7.5-x86_64-dvd.iso of=/dev/pass5 obs=32k seek=0'
:-[ MODE SELECT failed with SK=5h/INVALID FIELD IN PARAMETER LIST]: Input/output error
root@ # growisofs -Z/dev/cd0=rhel-server-7.5-x86_64-dvd.iso
Executing 'builtin_dd if=rhel-server-7.5-x86_64-dvd.iso of=/dev/pass5 obs=32k seek=0'
:-[ MODE SELECT failed with SK=5h/INVALID FIELD IN PARAMETER LIST]: Input/output error
root@ #
Comment 2 Hans Petter Selasky freebsd_committer 2018-06-06 10:37:36 UTC
Do you have the .core file for the segmentation fault or the backtrace?

I thought you had to use tools like sysutils/cdrdao to do this?

--HPS