NetBSD Problem Report #59273

From www@netbsd.org  Wed Apr  9 21:32:04 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B0F5B1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  9 Apr 2025 21:32:04 +0000 (UTC)
Message-Id: <20250409213203.399451A923C@mollari.NetBSD.org>
Date: Wed,  9 Apr 2025 21:32:03 +0000 (UTC)
From: tim.andres@gmx.net
Reply-To: tim.andres@gmx.net
To: gnats-bugs@NetBSD.org
Subject: dvdbackup segmentation faults
X-Send-Pr-Version: www-1.0

>Number:         59273
>Category:       pkg
>Synopsis:       dvdbackup segmentation faults
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 09 21:35:00 +0000 2025
>Originator:     Tim Andres
>Release:        10.1
>Organization:
N/A
>Environment:
NetBSD mc-rip 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
(First I want to state that making private copies of DVD media is legal in the country I live in.)
It appears like it is currently not possible to use dvdbackup on NetBSD/i386. Or at least on my specific hardware.
Running dvdbackup -i /dev/cd0 -M -p leads to the following output:
bash-5.2# dvdbackup -i /dev/cd0 -M -p                                                                                                        
The IFO file ./Batman Robin/VIDEO_TS/VIDEO_TS.IFO exists; will try to overwrite it.              
The BUP file ./Batman Robin/VIDEO_TS/VIDEO_TS.BUP exists; will try to overwrite it.              
libdvdread: Attempting to retrieve all CSS keys                                                                                              
libdvdread: This can take a _long_ time, please be patient   
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000014d                                                                                 
libdvdread: Elapsed time 0                                            
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00034673                                                                                 
libdvdread: Elapsed time 0                                            
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0003b672
libdvdread: Elapsed time 0                                            
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0035d487                                                                                 
libdvdread: Elapsed time 0                                                                                                                   
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0035d53a                                                                                 
libdvdread: Elapsed time 0                                                                                                                   
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0036faea                                                                                 
libdvdread: Elapsed time 0                                                                                                                   
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0036fc62                                                                                 
libdvdread: Elapsed time 0                                                                                                                   
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x0036fd39                                                                                 
libdvdread: Elapsed time 0                                            
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x0036fe9f                                                                                 
libdvdread: Elapsed time 0                                                                                                                   
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x00370d23          
libdvdread: Elapsed time 0                                                                                                                   
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x00370dd6                                                                                 
libdvdread: Elapsed time 0                                                                                                                   
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x00370e9b
libdvdread: Elapsed time 0                                            
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x00370f4e
libdvdread: Elapsed time 0                                            
libdvdread: Found 6 VTS's                                             
libdvdread: Elapsed time 0                                            
The menu file ./Batman Robin/VIDEO_TS/VIDEO_TS.VOB exists; will try to overwrite it.
Segmentation fault (core dumped)
>How-To-Repeat:
Install NetBSD von i386 hardware. In my case I used a Pentium 3 from the year ~2000.
The optical drive cd0:
[     5.402096] cd0 at atapibus0 drive 0: <Optiarc DVD RW AD-5170A, , 1.11> cdrom removable
[     5.402096] cd0: 32-bit data port
[     5.402096] cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
[     5.452086] cd1 at atapibus0 drive 1: <TSSTcorpCD/DVDW SH-W162C, , TS10> cdrom removable
[     5.522087] cd1: 32-bit data port
[     5.522087] cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
[     5.522087] cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
[     5.522087] cd1(piixide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
(both drives are really ancient)

I installed dvdbackup via pkgin, then installed libdvdcss via pkgsrc. Running dvdbackup at this point already produced the crash. The command I ran was "dvdbackup -i /dev/cd0 -M -p". However, "dvdbackup -i /dev/cd0 -I" works fine.

Then I compiled dvdbackup from pkgsrc and tried this version. No change.
>Fix:
Not yet discovered. :/

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.