NetBSD Problem Report #58677

From h.fath@spg.tu-darmstadt.de  Wed Sep 18 12:09:23 2024
Return-Path: <h.fath@spg.tu-darmstadt.de>
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)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 811B21A9242
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 18 Sep 2024 12:09:23 +0000 (UTC)
Message-Id: <202409181209.48IC9Hee014865@Gstoder.nt.e-technik.tu-darmstadt.de>
Date: Wed, 18 Sep 2024 14:09:17 +0200 (CEST)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Subject: netbsd-10 linux emulation breaks sysutils/tsm8
X-Send-Pr-Version: 3.95

>Number:         58677
>Category:       kern
>Synopsis:       netbsd-10 linux emulation breaks sysutils/tsm8
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 18 12:10:00 +0000 2024
>Last-Modified:  Tue Aug 19 12:25:01 +0000 2025
>Originator:     Hauke Fath
>Release:        NetBSD 10.0_STABLE
>Organization:
Technische Universitaet Darmstadt
>Environment:


System: NetBSD Gstoder 10.0_STABLE NetBSD 10.0_STABLE (THRIP-$Revision$) #0: Tue Jul 2 07:07:25 CEST 2024 hf4kh@Hochstuhl:/var/obj/netbsd-builds/10/amd64/sys/arch/amd64/compile/THRIP amd64
Architecture: x86_64
Machine: amd64
>Description:

	The advent of netbsd-10 broke sysutils/tsm8, a linux binary
	that we have been running on NetBSD since NetBSD 2.

	A backup run will send a few dozen files, then stall until
	interrupted.

	After the last successfully submitted file, the ktrace has a
	lot of recvfrom and sendto calls, each followed by

  3873   3873 dsmc     RET   gettimeofday 0
  3873   3873 dsmc     CALL  futex(0x13fab14,FUTEX_WAIT_BITSET_PRIVATEFUTEX_CLOCK_REALTIME,0x183,0x7f7fffff24f0,0x13fc4c0,0xffffffff)
  3873  11319 dsmc     RET   futex -1 errno -110 Operation timed out
  3873  11319 dsmc     CALL  futex(0x142ed30,FUTEX_WAKE_PRIVATE,1,0x7f7ff2212bd0,0,0x142ed30)
  3873  11319 dsmc     RET   futex 0
  3873  11319 dsmc     CALL  futex(0x7f7fdc03d93c,FUTEX_WAKE_OP_PRIVATE,1,1,0x7f7fdc03d938,0x4000001)
  3873  23543 dsmc     RET   futex 0
  3873  23543 dsmc     CALL  futex(0x7f7fdc0413e0,FUTEX_WAIT_PRIVATE,2,0,0x7f7fdc0413e0,0xb4)
  3873  11319 dsmc     RET   futex 1
  3873  11319 dsmc     CALL  futex(0x7f7fdc0413e0,FUTEX_WAKE_PRIVATE,1,1,0,0x7f7fdc0413e0)
  3873  23543 dsmc     RET   futex 0
  3873  23543 dsmc     CALL  gettimeofday(0x1117310,0)
  3873  23543 dsmc     RET   gettimeofday 0

	(I can provide the entire humongous ktrace file on request)
	and I understand netbsd-10 brought changes to the linux compat
	system call.

	The tsm package works fine in emulation under netbsd-9 and
	(ftfoi) freebsd13.

	I am setting priority "high" since this bug stops a handful of
	servers here from an upgrade to netbsd-10.


>How-To-Repeat:

	Install sysutils/tsm8, attempt to backup a filesystem. The
	backup run will stall eventually.


>Fix:

	Yes, please.

>Audit-Trail:
From: "Hauke Fath" <hauke@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58677 CVS commit: pkgsrc/sysutils/tsm8
Date: Tue, 1 Jul 2025 11:48:23 +0000

 Module Name:	pkgsrc
 Committed By:	hauke
 Date:		Tue Jul  1 11:48:23 UTC 2025

 Modified Files:
 	pkgsrc/sysutils/tsm8: DESCR Makefile PLIST distinfo options.mk

 Log Message:
 sysutils/tsm8: Update to v8.1.27.0

 This is a patch release, upstream does not provide a changelog

 Product rename, update HOMEPAGE and DESCR

 Clean up NOT_FOR_PLATFORM, there is no supported suse_emul for NetBSD 1.5

 Point dsmj script to the selected JDK. Java support is currently
 broken; upstream went from a conservative jdk 8 straight to mandating
 their "semeru" fork of OpenJDK, which does not run on NetBSD

 XXX tsm still does not work on netbsd-10+, see PR kern/58677


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/tsm8/DESCR
 cvs rdiff -u -r1.17 -r1.18 pkgsrc/sysutils/tsm8/Makefile
 cvs rdiff -u -r1.12 -r1.13 pkgsrc/sysutils/tsm8/PLIST
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/sysutils/tsm8/distinfo
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/sysutils/tsm8/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/58677: netbsd-10 linux emulation breaks sysutils/tsm8
Date: Tue, 19 Aug 2025 14:12:13 +0200

 [re-sent, I mistakenly left off gnats-bugs@]

 On 9/18/24 14:10, Hauke Fath wrote:
 > =09(I can provide the entire humongous ktrace file on request)
 > =09and I understand netbsd-10 brought changes to the linux compat
 > =09system call.

 A ktrace.out from a dsmc backup run (amd64 netbsd-10 userland, 10.99.15=20
 kernel) is at

 <ftp://ftp.causeuse.org/pub/NetBSD/kern-58677/kern-58677-dsmc-ktrace.out.xz=
 >=20
 (~60 MB compressed).

 Cheerio,
 Hauke

 --=20
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email=09        Institut f=FCr Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.