NetBSD Problem Report #55013

From  Mon Feb 24 19:10:19 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id E2EFE1A9213
	for <>; Mon, 24 Feb 2020 19:10:18 +0000 (UTC)
Message-Id: <>
Date: Mon, 24 Feb 2020 19:10:17 +0000 (UTC)
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
>Last-Modified:  Thu Nov 05 08:28:47 +0000 2020
>Originator:     fixerb
>Release:        NetBSD 9.0
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
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);
Build spectrwm from pkgsrc-2019Q4 and try to launch any X program from it.



State-Changed-From-To: open->feedback
State-Changed-When: Sun, 15 Mar 2020 20:10:07 +0000
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-When: Fri, 24 Apr 2020 13:51:00 +0000
Since I am disagreeing with this bug being in feedback, I'll try to handle it.

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

Responsible-Changed-From-To: maya->xsrc-manager
Responsible-Changed-When: Thu, 05 Nov 2020 08:28:47 +0000


NetBSD Home
NetBSD PR Database Search

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