NetBSD Problem Report #60574

From www@netbsd.org  Tue Aug 11 04:27:58 2026
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 "YR2" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9818F1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 11 Aug 2026 04:27:58 +0000 (UTC)
Message-Id: <20260811042757.6A6451A923C@mollari.NetBSD.org>
Date: Tue, 11 Aug 2026 04:27:57 +0000 (UTC)
From: wcm@sigwinch.xyz
Reply-To: wcm@sigwinch.xyz
To: gnats-bugs@NetBSD.org
Subject: transmission-daemon etc. abort on invalid toupper(3) call
X-Send-Pr-Version: www-1.0
X-From4GNATS: "wcm@sigwinch.xyz via gnats" <gnats-admin@NetBSD.org>

>Number:         60574
>Category:       pkg
>Synopsis:       transmission-daemon etc. abort on invalid toupper(3) call
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 11 04:30:00 +0000 2026
>Closed-Date:    Sat Sep 05 19:40:06 +0000 2026
>Last-Modified:  Sat Sep 05 19:40:06 +0000 2026
>Originator:     Wolfgang Corcoran-Mathe
>Release:        NetBSD 11.0 / transmission 4.06
>Organization:
>Environment:
NetBSD xanthus.sigwinch.xyz 11.0 NetBSD 11.0 (GENERIC) #0: Thu Jul 30 15:23:12 UTC 2026  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
transmission-daemon and transmission-show 4.0.6 both abort and dump core with "ctype(3) toupper: invalid input: -61" when parsing certain torrent seed files.  The message is always the same, i.e. the erroneous toupper input is always -61. This problem began occurring after I upgraded the system to NetBSD 11.0: the problem files worked with transmission 4.0.6 on NetBSD 10.1.
>How-To-Repeat:
Invoke transmission-show on a problematic torrent file, or try to add it to the daemon's active torrents using 'transmission-remote -a <file>'. Unfortunately, I have not been to pin down which seeds cause this behavior.
>Fix:

>Release-Note:

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60574 CVS commit: pkgsrc/net
Date: Tue, 11 Aug 2026 14:21:47 +0000

 Module Name:	pkgsrc
 Committed By:	riastradh
 Date:		Tue Aug 11 14:21:47 UTC 2026

 Modified Files:
 	pkgsrc/net/transmission: Makefile distinfo
 	pkgsrc/net/transmission-common: Makefile
 	pkgsrc/net/transmission-gtk: Makefile
 	pkgsrc/net/transmission-qt: Makefile
 Added Files:
 	pkgsrc/net/transmission/patches: patch-libtransmission_crypto-utils.cc
 	    patch-libtransmission_file-win32.cc
 	    patch-libtransmission_torrent-files.cc
 	    patch-libtransmission_utils.cc patch-libtransmission_utils.h
 	    patch-libtransmission_web-utils.cc patch-utils_remote.cc

 Log Message:
 net/transmission: Fix ctype abuse.

 Excluding the third-party/ directory for now -- lot more patching to do
 for that.

 PR pkg/60574: transmission-daemon etc. abort on invalid toupper(3) call


 To generate a diff of this commit:
 cvs rdiff -u -r1.54 -r1.55 pkgsrc/net/transmission/Makefile
 cvs rdiff -u -r1.30 -r1.31 pkgsrc/net/transmission/distinfo
 cvs rdiff -u -r1.19 -r1.20 pkgsrc/net/transmission-common/Makefile
 cvs rdiff -u -r1.88 -r1.89 pkgsrc/net/transmission-gtk/Makefile
 cvs rdiff -u -r1.102 -r1.103 pkgsrc/net/transmission-qt/Makefile
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/net/transmission/patches/patch-libtransmission_crypto-utils.cc \
     pkgsrc/net/transmission/patches/patch-libtransmission_file-win32.cc \
     pkgsrc/net/transmission/patches/patch-libtransmission_torrent-files.cc \
     pkgsrc/net/transmission/patches/patch-libtransmission_utils.cc \
     pkgsrc/net/transmission/patches/patch-libtransmission_utils.h \
     pkgsrc/net/transmission/patches/patch-libtransmission_web-utils.cc \
     pkgsrc/net/transmission/patches/patch-utils_remote.cc

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

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 02 Sep 2026 18:24:07 +0000
State-Changed-Why:
Do the changes fix the problem?


From: Wolfgang Corcoran-Mathe <wcm@sigwinch.xyz>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
	maya@NetBSD.org
Subject: Re: pkg/60574 (transmission-daemon etc. abort on invalid toupper(3)
 call)
Date: Sat, 5 Sep 2026 10:51:43 -0400

 On 2026-09-02 18:24 +0000, maya@NetBSD.org wrote:
 > Do the changes fix the problem?

 Yes, thank you!  The bug seems no longer to be present in the latest
 pkgsrc build of transmission.

 -- 
 Wolfgang Corcoran-Mathe  <wcm@sigwinch.xyz>

State-Changed-From-To: feedback->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 05 Sep 2026 19:40:06 +0000
State-Changed-Why:
confirmed fixed


>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.