From nobody@FreeBSD.org  Sun Oct  7 17:53:31 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C58DE16A417
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  7 Oct 2007 17:53:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id B2D6B13C447
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  7 Oct 2007 17:53:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l97HrUT1003924
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 7 Oct 2007 17:53:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l97HrU4r003923;
	Sun, 7 Oct 2007 17:53:30 GMT
	(envelope-from nobody)
Message-Id: <200710071753.l97HrU4r003923@www.freebsd.org>
Date: Sun, 7 Oct 2007 17:53:30 GMT
From: David Naylor <dragonsa@highveldmail.co.za>
To: freebsd-gnats-submit@FreeBSD.org
Subject: csup: csup core dumps with SMP
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         116998
>Category:       bin
>Synopsis:       csup: csup core dumps with SMP
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    mux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 07 18:00:02 GMT 2007
>Closed-Date:    Mon Mar 03 07:22:30 UTC 2008
>Last-Modified:  Mon Mar 03 07:22:30 UTC 2008
>Originator:     David Naylor
>Release:        FreeBSD-Current (07/10/2007)
>Organization:
Private
>Environment:
FreeBSD dragon 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Oct 7 16:59:38 SASR 2007 root@dragon:/tmp/usr/src/sys/GENERIC i386
>Description:
I am running FreeBSD-Current under vmware (on openSuse 10.3 (Quad Core 2)).  When vmware is configured to use two cores for FreeBSD csup (with socksify from net/dante) core dumps on signal 6 however if only one core is used then csup works fine.  Running cvsup with 2 cores does work without a problem.  

I'm running a stock GENERIC except all debugging options have been removed and with SHED_ULE enabled.  
>How-To-Repeat:
Run csup (and possibly with socksify) on SMP system with 2+ CPU's.  
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mux 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Oct 7 18:18:50 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116998 

From: David Naylor <blackdragon@highveldmail.co.za>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/116998: csup: csup core dumps with SMP
Date: Sun, 7 Oct 2007 20:32:31 +0200

 Sorry, new to submitting PR's.  I managed to run csup under gdb and here are 
 the results: 
 
 Starting program: /usr/bin/csup src.sup
 Connected to 196.30.227.198
 Updating collection src-all/cvs
 
 Program received signal SIGABRT, Aborted.
 0x2828cc47 in thr_kill () from /lib/libc.so.7
 (gdb) bt
 #0  0x2828cc47 in thr_kill () from /lib/libc.so.7
 #1  0x282401b6 in pthread_kill () from /lib/libthr.so.3
 #2  0x2823dfc3 in raise () from /lib/libthr.so.3
 #3  0x2831bf99 in abort () from /lib/libc.so.7
 #4  0x28097f46 in sys_getsockname (s=-1080038828, name=0xbf9feea8,
     namelen=0xbf9feeb8) at interposition.c:333
 #5  0x280a67c9 in Rsendmsg (s=7, msg=0xbf9feee0, flags=0)
     at ../lib/Rcompat.c:183
 #6  0x280a6a24 in Rwritev (d=7, iov=0xbf9fef7c, iovcnt=2)
     at ../lib/Rcompat.c:136
 #7  0x28096cf1 in writev (d=7, iov=0xbf9fef7c, iovcnt=2)
     at interposition.c:740
 #8  0x08051fdf in fnmatch ()
 #9  0x08052944 in fnmatch ()
 #10 0x2823ba1d in pthread_getprio () from /lib/libthr.so.3
 #11 0x00000000 in ?? ()
 
 
 I hope this help clarify things.  
 
 David
State-Changed-From-To: open->feedback 
State-Changed-By: mux 
State-Changed-When: Mon Oct 8 11:06:29 UTC 2007 
State-Changed-Why:  
Someone reported problems with csup under socksify previously, you can find 
the PR here: 

http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/108518 

As explained in the audit trail, I had a quick look at socksify's code, and 
while I don't remember the specifics, it appears that socksify isn't safe to 
use with multi-threaded binaries.  I suggested the reporter to try linking 
csup to libc_r, but he could not reproduce the problem then. 

It would be interesting to see what happens for you when you link to libc_r, 
could you give this a try using libmap.conf? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116998 

From: "David Naylor" <blackdragon@highveldmail.co.za>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/116998: csup: csup core dumps with SMP
Date: Wed, 19 Dec 2007 00:01:12 +0200

 Hi,
 
 Sorry but e-mail got lost in the post and I have only just checked the
 PR.  I'm in the middle of updating the base to BETA4, once it is done
 I will check again if csup works (with or without socksify and
 libc_r).
 
 Apologies about the delay
 
 David
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Mar 3 07:21:50 UTC 2008 
State-Changed-Why:  
Feedback timeout (> 2 months).  Please let us know if this problem 
persists. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116998 
>Unformatted:
