NetBSD Problem Report #55013

From www@netbsd.org  Mon Feb 24 19:10:19 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E2EFE1A9213
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 24 Feb 2020 19:10:18 +0000 (UTC)
Message-Id: <20200224191017.C66AB1A9217@mollari.NetBSD.org>
Date: Mon, 24 Feb 2020 19:10:17 +0000 (UTC)
From: fixerb@national.shitposting.agency
Reply-To: fixerb@national.shitposting.agency
To: gnats-bugs@NetBSD.org
Subject: spectrwm crashes when attempting to start any X program
X-Send-Pr-Version: www-1.0

>Number:         55013
>Category:       pkg
>Synopsis:       spectrwm crashes when attempting to start any X program
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 24 19:15:00 +0000 2020
>Closed-Date:    
>Last-Modified:  Thu Nov 05 08:28:47 +0000 2020
>Originator:     fixerb
>Release:        NetBSD 9.0
>Organization:
>Environment:
NetBSD localhost 9.0 NetBSD 9.0 (EEEPC) #1: Sat Feb 22 12:28:38 CET 2020 fixerb@localhost:/usr/src/sys/arch/i386/compile/EEEPC i386
>Description:
Attempting to start any X11 program through spectrwm causes it to segfault (on i386 at least). The only exception I was able to find was dmenu, but for some reason starting programs through it crashes spectrwm too (dmenu itself seems okay, works perfectly otherwise).
GDB's backtrace shows that at the very end it crashes at strtonum() in libc and after finding out this I realized that during compilation there's actually a warning about an implicit declaration of such function.

spectrwm.c:6587:16: warning: implicit declaration of function 'strtonum'; did you mean 'strtouq'? [-Wimplicit-function-declaration]
ws_idx = (int)strtonum(q, 1, workspace_limit, &errstr);
>How-To-Repeat:
Build spectrwm from pkgsrc-2019Q4 and try to launch any X program from it.
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sun, 15 Mar 2020 20:10:07 +0000
State-Changed-Why:
Did you report this upstream on Github? If not, could you file a
bug there please? This issue sounds like it is not related to pkgsrc.


Responsible-Changed-From-To: pkg-manager->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Fri, 24 Apr 2020 13:51:00 +0000
Responsible-Changed-Why:
Since I am disagreeing with this bug being in feedback, I'll try to handle it.


State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 24 Apr 2020 13:51:00 +0000
State-Changed-Why:
Probably not right for it to be in feedback...


Responsible-Changed-From-To: maya->xsrc-manager
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Thu, 05 Nov 2020 08:28:47 +0000
Responsible-Changed-Why:
unassign


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.