NetBSD Problem Report #53144

From  Sat Mar 31 18:33:24 2018
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 894077A18A
	for <>; Sat, 31 Mar 2018 18:33:24 +0000 (UTC)
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
The NetBSD Foundation, Inc.
System: NetBSD 8.99.14 NetBSD 8.99.14 (NIGHT-OWL) #590: Mon Mar 19 14:59:01 CET 2018 amd64
Architecture: x86_64
Machine: amd64

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 ./
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/
#7  0x00007f7ff79057c8 in posix_read () from /usr/pkg/lib/
#8  0x00007f7ff78d54b5 in PyEval_EvalFrameEx ()
   from /usr/pkg/lib/
#9  0x00007f7ff78d75c2 in PyEval_EvalCodeEx ()
   from /usr/pkg/lib/
#10 0x00007f7ff78d3b54 in PyEval_EvalFrameEx ()
   from /usr/pkg/lib/
#11 0x00007f7ff78d75c2 in PyEval_EvalCodeEx ()
   from /usr/pkg/lib/
---Type <return> to continue, or q <return> to quit---q
(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



NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.