NetBSD Problem Report #55328

From www@netbsd.org  Sun May 31 13:26:24 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 287CD1A9218
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 31 May 2020 13:26:24 +0000 (UTC)
Message-Id: <20200531132622.E36FD1A921A@mollari.NetBSD.org>
Date: Sun, 31 May 2020 13:26:22 +0000 (UTC)
From: jruohonen@iki.fi
Reply-To: jruohonen@iki.fi
To: gnats-bugs@NetBSD.org
Subject: math/R fails to build
X-Send-Pr-Version: www-1.0

>Number:         55328
>Category:       pkg
>Synopsis:       math/R fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 31 13:30:00 +0000 2020
>Last-Modified:  Wed Jul 15 06:20:01 +0000 2020
>Originator:     Jukka Ruohonen
>Release:        NetBSD 9.0_STABLE
>Organization:
-
>Environment:
System: NetBSD kafka 9.0_STABLE NetBSD 9.0_STABLE (GENERIC_KASLR) #0: Sun May 31 12:08:44 EEST 2020
jruoho@kafka:/usr/obj/sys/arch/amd64/compile/GENERIC_KASLR amd64
Architecture: x86_64 Machine: amd64
>Description:
R-3.6.1 fails to build. The relevant trace is:

gmake[4]: Leaving directory '/tmp/pkgsrc/math/R/work/R-3.6.1/src/library/tools'
gmake[4]: Entering directory '/tmp/pkgsrc/math/R/work/R-3.6.1/src/library/tools'
installing 'sysdata.rda'

 *** caught segfault ***
address 0x608, cause 'memory not mapped'

Traceback:
[...]
19: get(name, envir = asNamespace(pkg), inherits = FALSE)
20: tools:::sysdata2LazyLoadDB
An irrecoverable exception occurred. R is aborting now ...
[1]   Done                    echo "tools:::sysdata2LazyLoadDB("./R/sysdata.... |
      Segmentation fault (core dumped) R_DEFAULT_PACKAGES=NULL LC_ALL=C R_ENABLE_JIT=...
gmake[4]: *** [../../../share/make/basepkg.mk:151: sysdata] Error 139
gmake[4]: Leaving directory '/tmp/pkgsrc/math/R/work/R-3.6.1/src/library/tools'
gmake[3]: *** [Makefile:36: all] Error 2
gmake[3]: Leaving directory '/tmp/pkgsrc/math/R/work/R-3.6.1/src/library/tools'
gmake[2]: *** [Makefile:37: R] Error 1
gmake[2]: Leaving directory '/tmp/pkgsrc/math/R/work/R-3.6.1/src/library'
gmake[1]: *** [Makefile:28: R] Error 1
gmake[1]: Leaving directory '/tmp/pkgsrc/math/R/work/R-3.6.1/src'
gmake: *** [Makefile:61: R] Error 1
*** Error code 2

>How-To-Repeat:
Try to build the package.
>Fix:
NA

>Audit-Trail:
From: Jukka Ruohonen <jruohonen@iki.fi>
To: gnats-bugs@netbsd.org
Cc: jruohonen@iki.fi
Subject: Re: pkg/55328: math/R fails to build
Date: Wed, 15 Jul 2020 09:16:22 +0300

 Fortunately, this issue is simpler than I feared. Thus, I will close this
 PR and file another one if and when I better understand what is wrong.

 In any case, the problem is related to unicode; R works fine on NetBSD with,
 e.g., LC_ALL="en_US.ISO8859-1".  However, with UTF-8 most functions that
 invoke graphical output systematically segfault. An example:

 $ locale
 LANG=""
 LC_CTYPE="en_US.UTF-8"
 LC_COLLATE="C"
 LC_TIME="en_US.UTF-8"
 LC_NUMERIC="en_US.UTF-8"
 LC_MONETARY="en_US.UTF-8"
 LC_MESSAGES="en_US.UTF-8"
 LC_ALL="en_US.UTF-8"
 $ R

 R version 3.6.1 (2019-07-05) -- "Action of the Toes"
 Copyright (C) 2019 The R Foundation for Statistical Computing
 Platform: x86_64--netbsd (64-bit)

 R is free software and comes with ABSOLUTELY NO WARRANTY.
 You are welcome to redistribute it under certain conditions.
 Type 'license()' or 'licence()' for distribution details.

   Natural language support but running in an English locale

 R is a collaborative project with many contributors.
 Type 'contributors()' for more information and
 'citation()' on how to cite R or R packages in publications.

 Type 'demo()' for some demos, 'help()' for on-line help, or
 'help.start()' for an HTML browser interface to help.
 Type 'q()' to quit R.

 During startup - Warning message:
 Setting LC_COLLATE failed, using "C" 
 > hist(rnorm(3000))

  *** caught segfault ***
 address 0x64c, cause 'memory not mapped'

 Traceback:
  1: tolower(breaks)
  2: match.arg(tolower(breaks), c("sturges", "fd", "freedman-diaconis", "scott"))
  3: hist.default(rnorm(3000))
  4: hist(rnorm(3000))

 Possible actions:
 1: abort (with core dump, if enabled)
 2: normal R exit
 3: exit R without saving workspace
 4: exit R saving workspace
 Selection: 1
 R is aborting now ...
 Memory fault (core dumped) 

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.