NetBSD Problem Report #53144

From martin@duskware.de  Sat Mar 31 18:33:24 2018
Return-Path: <martin@duskware.de>
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 894077A18A
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 31 Mar 2018 18:33:24 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: python deadlock when building firefox
X-Send-Pr-Version: 3.95

>Number:         53144
>Category:       pkg
>Synopsis:       python deadlock when building firefox
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 31 18:35:00 +0000 2018
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.14
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 8.99.14 NetBSD 8.99.14 (NIGHT-OWL) #590: Mon Mar 19 14:59:01 CET 2018 martin@night-owl.duskware.de:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

Trying to build firefox on -current and latest pkgsrc from earlier this
morning I end up with:

js/src> checking for valloc in malloc.h... yes
js/src> checking for valloc in unistd.h... no
js/src> checking for setlocale... yes
js/src> checking for localeconv... (cached) yes
js/src> updating cache /usr/pkgobj/www/firefox/work/build/config.cache
js/src> creating ./config.data
js/src> Creating config.status
Creating config.status
Reticulating splines...

... and the python2.7 process doing the reticulation dead locks like this:

[Switching to LWP 1 of process 14845]
pthread__mutex_pause () at /usr/src/lib/libpthread/pthread_mutex.c:227
227             pthread__smt_pause();
(gdb) bt
#0  pthread__mutex_pause () at /usr/src/lib/libpthread/pthread_mutex.c:227
#1  0x00007f7ff6c0874c in pthread__mutex_spin (ptm=ptm@entry=0x7f7ff6b75660, 
    owner=<optimized out>, owner@entry=0x7f7feed13000)
    at /usr/src/lib/libpthread/pthread_mutex.c:253
#2  0x00007f7ff6c08a3f in pthread__mutex_lock_slow (ptm=0x7f7ff6b75660, ts=0x0)
    at /usr/src/lib/libpthread/pthread_mutex.c:343
#3  0x00007f7ff68b6c08 in chunk_alloc (size=size@entry=2097152)
    at /usr/src/lib/libc/stdlib/jemalloc.c:1356
#4  0x00007f7ff68b79b1 in huge_malloc (size=<optimized out>)
    at /usr/src/lib/libc/stdlib/jemalloc.c:2799
#5  0x00007f7ff68b8497 in malloc (size=1048613)
    at /usr/src/lib/libc/stdlib/jemalloc.c:3776
#6  0x00007f7ff7887919 in PyString_FromStringAndSize ()
   from /usr/pkg/lib/libpython2.7.so.1.0
#7  0x00007f7ff79057c8 in posix_read () from /usr/pkg/lib/libpython2.7.so.1.0
#8  0x00007f7ff78d54b5 in PyEval_EvalFrameEx ()
   from /usr/pkg/lib/libpython2.7.so.1.0
#9  0x00007f7ff78d75c2 in PyEval_EvalCodeEx ()
   from /usr/pkg/lib/libpython2.7.so.1.0
#10 0x00007f7ff78d3b54 in PyEval_EvalFrameEx ()
   from /usr/pkg/lib/libpython2.7.so.1.0
#11 0x00007f7ff78d75c2 in PyEval_EvalCodeEx ()
   from /usr/pkg/lib/libpython2.7.so.1.0
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) info thread
  Id   Target Id         Frame 
* 1    LWP 1 of process 14845 pthread__mutex_pause ()
    at /usr/src/lib/libpthread/pthread_mutex.c:227


>How-To-Repeat:
s/a

>Fix:
n/a

NetBSD Home
NetBSD PR Database Search

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