From owner-freebsd-current@FreeBSD.ORG Fri Feb 1 02:31:03 2008 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 716A116A419 for ; Fri, 1 Feb 2008 02:31:03 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk1.360sip.com [72.236.70.240]) by mx1.freebsd.org (Postfix) with ESMTP id EA82913C45B for ; Fri, 1 Feb 2008 02:31:02 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.0.3] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.8/8.13.8) with ESMTP id m1120Oiv016034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 31 Jan 2008 18:00:25 -0800 (PST) (envelope-from sobomax@FreeBSD.org) Message-ID: <47A27CE8.1090802@FreeBSD.org> Date: Thu, 31 Jan 2008 17:59:04 -0800 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Julian Elischer References: <47A21ED6.5070303@elischer.org> In-Reply-To: <47A21ED6.5070303@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: needs a tester with an SMP 7.0 box X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 02:31:03 -0000 On my 2-way SMP 7.0 system (old 2.6 GHz Xeon), the programs segfaults constantly: pid 57965 (a.out), uid 1001: exited on signal 11 (core dumped) pid 58080 (a.out), uid 1001: exited on signal 11 (core dumped) pid 58126 (a.out), uid 1001: exited on signal 11 (core dumped) pid 58123 (a.out), uid 1001: exited on signal 11 (core dumped) pid 58158 (a.out), uid 1001: exited on signal 11 (core dumped) pid 58188 (a.out), uid 1001: exited on signal 11 (core dumped) pid 58226 (a.out), uid 1001: exited on signal 11 (core dumped) [etc] (gdb) bt #0 0x48086af3 in pthread_sigmask () from /usr/lib/libkse.so.3 #1 0x00000001 in ?? () #2 0x48210734 in ?? () #3 0x48210700 in ?? () #4 0xbf7fcf48 in ?? () #5 0x4809cc41 in __error () from /usr/lib/libkse.so.3 Also, I've got the following after having the program run for a while (about 30 minutes): [sobomax@noisy /tmp]$ ./a.out Fatal error 'thread in syncq when it shouldn't be.' at line 1817 in file /usr/src/lib/libkse/thread/thr_mutex.c (errno = 0) Fatal error 'thread in syncq when it shouldn't be.' at line 1817 in file /usr/src/lib/libkse/thread/thr_mutex.c (errno = 0) Fatal error 'Recurse on a private mutex.' at line 1002 in file /usr/src/lib/libkse/thread/thr_mutex.c (errno = 22) Fatal error 'thread in syncq when it shouldn't be.' at line 1817 in file /usr/src/lib/libkse/thread/thr_mutex.c (errno = 0) Fatal error 'Recurse on a private mutex.' at line 1002 in file /usr/src/lib/libkse/thread/thr_mutex.c (errno = 22) I don't see any hanged process or any other anomalities yet, though. The program continues running, so that I let you know if I see something else. -Maxim P.S. I've compiled the program as follows: $ cc -pthread testkse.c -o a.out -lkse Julian Elischer wrote: > > if you have a 7.0 SMP (8 way if possible) box and can stand > a little down time, I'm looking for someone to test the following: > > This snippet may freeze the process after a while: > > #include > #include > #include > > void *forker (void *arg) { > while (1) { > pid_t pid = fork(); > if (pid == 0) { > exit(0); > } else if (pid > 0) { > int status; > waitpid(pid, &status, 0); > } else { > printf("Fork failed\n"); > abort(); > } > } > } > > int main(void) { > int i = 0; > for (i = 0; i < 4; i++) { > pthread_t thr; > pthread_create(&thr, NULL, forker, NULL); > pthread_detach(thr); > } > > while(1) > sleep(1000); > } > > > with the following patch applied: > http://www.freebsd.org/~julian/kse-7.diff > it should not. > > can someone with a 7.0 machine please confirm this? > (requires a recompile of libkse and linking with libkse.) > (you could call it something else for the test). > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >