NetBSD Problem Report #53154
From www@NetBSD.org Wed Apr 4 00:43:16 2018
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 1202E7A169
for <gnats-bugs@gnats.NetBSD.org>; Wed, 4 Apr 2018 00:43:16 +0000 (UTC)
Message-Id: <20180404004314.D2A747A1EE@mollari.NetBSD.org>
Date: Wed, 4 Apr 2018 00:43:14 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: ruby 2.5 pegs CPU on DragonFly BSD
X-Send-Pr-Version: www-1.0
>Number: 53154
>Category: pkg
>Synopsis: ruby 2.5 pegs CPU on DragonFly BSD
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 04 00:45:00 +0000 2018
>Last-Modified: Sun Sep 16 14:45:00 +0000 2018
>Originator: Sevan Janiyan
>Release:
>Organization:
>Environment:
DragonFly v5.3.0.28.g29df6-DEVELOPMENT #331: Sun Apr 1 15:41:38 PDT 2018
>Description:
I'm trying to bulkbuild the entire pkgsrc tree on DragonFly BSD. I keep on seeing the ruby25 binary wedging and chewing up CPU.
PID USERNAME NICE SIZE RES STATE C TIME CTIME CPU COMMAND
971573 pbulk 0 34M 28M CPU3 3 41:19 41:19 98.29% ruby25
>How-To-Repeat:
Try to build ruby25-concurrent-ruby or ruby25-thread_safe or ruby25-native-package-installer for example
>Fix:
>Audit-Trail:
From: Takahiro Kambe <taca@NetBSD.org>
To: gnats-bugs@NetBSD.org, venture37@geeklan.co.uk
Cc: taca@NetBSD.org
Subject: Re: pkg/53154: ruby 2.5 pegs CPU on DragonFly BSD
Date: Sun, 16 Sep 2018 23:43:08 +0900 (JST)
In message <20180404004500.9D7827A155@mollari.NetBSD.org>
on Wed, 4 Apr 2018 00:45:00 +0000 (UTC),
venture37@geeklan.co.uk wrote:
>>Number: 53154
>>Category: pkg
>>Synopsis: ruby 2.5 pegs CPU on DragonFly BSD
>>Confidential: no
>>Severity: serious
>>Priority: medium
>>Responsible: pkg-manager
>>State: open
>>Class: sw-bug
>>Submitter-Id: net
>>Arrival-Date: Wed Apr 04 00:45:00 +0000 2018
>>Originator: Sevan Janiyan
>>Release:
>>Organization:
>>Environment:
> DragonFly v5.3.0.28.g29df6-DEVELOPMENT #331: Sun Apr 1 15:41:38 PDT 2018
>>Description:
> I'm trying to bulkbuild the entire pkgsrc tree on DragonFly BSD. I keep on seeing the ruby25 binary wedging and chewing up CPU.
>
> PID USERNAME NICE SIZE RES STATE C TIME CTIME CPU COMMAND
> 971573 pbulk 0 34M 28M CPU3 3 41:19 41:19 98.29% ruby25
>
>
>>How-To-Repeat:
> Try to build ruby25-concurrent-ruby or ruby25-thread_safe or ruby25-native-package-installer for example
I have reproduced on below:
DragonFly v5.3.0.18526.gd0cad-DEVELOPMENT #0: Mon Sep 17 20:41:06 JST 2018
I have no idea but a few point.
# bmake install
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Installing for ruby25-concurrent-ruby-1.0.5
=> Generating pre-install file lists
=> Installing gem into installation root
Successfully installed concurrent-ruby-1.0.5
Parsing documentation for concurrent-ruby-1.0.5
So, somethine wrong on generating rdoc files phase.
And with ktrace(1),
# ktrace -di bmake stage-install &
[1] 191256
dragonfly# => Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Installing for ruby25-concurrent-ruby-1.0.5
=> Generating pre-install file lists
=> Installing gem into installation root
Successfully installed concurrent-ruby-1.0.5
Parsing documentation for concurrent-ruby-1.0.5
kdump | tail
191428:1 ruby25 RET sigprocmask 0
191428:1 ruby25 CALL umtx_wakeup(0x80044eb00,0)
191428:1 ruby25 RET umtx_wakeup 0
191428:1 ruby25 CALL mmap(0,0x80000,0x3<PROT_READ|PROT_WRITE>,0x1402<MAP_PRIVATE|MAP_STACK|MAP_ANON>,0xffffffff,0,0)
191428:1 ruby25 RET mmap 4198400/0x401000
191428:1 ruby25 CALL umtx_wakeup(0x80044eb00,0)
191428:1 ruby25 RET umtx_wakeup 0
191428:1 ruby25 CALL mprotect(0x800401000,0x1000,0<PROT_NONE>)
191428:1 ruby25 RET mprotect 0
191428:1 ruby25 PSIG SIGSEGV caught handler=0x8005ac5d0 mask=0x0 code=0x2
ruby25 caught SIGSEGV??
--
Takahiro Kambe <taca@NetBSD.org>
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.