From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 14 21:00:05 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01FCB1065670 for ; Tue, 14 Apr 2009 21:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D22388FC1C for ; Tue, 14 Apr 2009 21:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3EL04CG068393 for ; Tue, 14 Apr 2009 21:00:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3EL04oI068392; Tue, 14 Apr 2009 21:00:04 GMT (envelope-from gnats) Resent-Date: Tue, 14 Apr 2009 21:00:04 GMT Resent-Message-Id: <200904142100.n3EL04oI068392@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stephen Sanders Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24F90106566B for ; Tue, 14 Apr 2009 20:54:46 +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 EDEBF8FC18 for ; Tue, 14 Apr 2009 20:54:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3EKsjlo065130 for ; Tue, 14 Apr 2009 20:54:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3EKsjXN065121; Tue, 14 Apr 2009 20:54:45 GMT (envelope-from nobody) Message-Id: <200904142054.n3EKsjXN065121@www.freebsd.org> Date: Tue, 14 Apr 2009 20:54:45 GMT From: Stephen Sanders To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/133735: Multi-threaded 32 bit cores can't be used on 64 bit systems X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2009 21:00:05 -0000 >Number: 133735 >Category: misc >Synopsis: Multi-threaded 32 bit cores can't be used on 64 bit systems >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 14 21:00:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Stephen Sanders >Release: 6.3 - 64 Bit >Organization: OPNET >Environment: FreeBSD alt-4100-1.lab.opnet.com 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Tue Mar 31 14:11:07 PDT 2009 pmai@focus7.networkphysics.com:/u1/builds/ping/NP/FreeBSD/package/NPbabkernel/bld-tmp/sys/amd64/compile/NPBAB amd64 >Description: The following program will produce a core file. Running the program on a FreeBSD 6.3/64 bit system will produce a core file. Attempts to use gdb on the core will fail on the following error: Core was generated by `threadcore'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib32/libpthread.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib32/libpthread.so.2 Reading symbols from /usr/lib32/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib32/libc.so.6 Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x0804d100 in ?? () [New Thread 0x805301408053200 (runnable)] [New Thread 0x280a05a808053000 (runnable)] Cannot get thread info: generic error (gdb) --------------------------- The Program ------------------ #include #include #include #include #include #include void *thr(void *a) { int *ip = (int *)a; printf("started thread %d\n", *ip); pause(); return 0; } int main(int argc, char **argv) { const int THREADCOUNT =4; int i; pthread_t threads[THREADCOUNT]; for (i =0; i < THREADCOUNT; i++) if (pthread_create(&threads[i], 0, thr, (void *)&i) != 0) errx(-1, "cannot create thread"); sleep(1); kill(0, SIGBUS); return 0; } >How-To-Repeat: Compile the program in the description section on a FreeBSD 6.3/32 bit system. Run it on a 6.3/64 bit system and attempt to look at the core file ('info threads' for example) >Fix: >Release-Note: >Audit-Trail: >Unformatted: