Received: from [140.186.70.92] (port=38912 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PF4PL-0005Fx-1o for qemu-devel@nongnu.org; Sun, 07 Nov 2010 07:31:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PF4PJ-0007OR-GK for qemu-devel@nongnu.org; Sun, 07 Nov 2010 07:31:38 -0500 Received: from adelie.canonical.com ([91.189.90.139]:40667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PF4PJ-0007ON-3v for qemu-devel@nongnu.org; Sun, 07 Nov 2010 07:31:37 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PF4PG-0001cl-B1 for ; Sun, 07 Nov 2010 12:31:34 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id CEDC02E8277 for ; Sun, 7 Nov 2010 12:31:05 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 07 Nov 2010 12:22:06 -0000 From: =?utf-8?q?Jan-Simon_M=C3=B6ller?= Sender: bounces@canonical.com References: <20101030164240.14186.64841.malonedeb@wampee.canonical.com> Message-Id: <20101107122207.3558.76018.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 668799] Re: qemu-arm segfaults executing msgmerge (gettext) Reply-To: Bug 668799 <668799@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Alternative testcase: compile and "export OMP_NUM_THREADS=3D6" before running. /**************************************************************************= **** * FILE: omp_mm.c * DESCRIPTION: = * OpenMp Example - Matrix Multiply - C Version * Demonstrates a matrix multiply using OpenMP. Threads share row iteratio= ns * according to a predefined chunk size. * AUTHOR: Blaise Barney * LAST REVISED: 06/28/05 ***************************************************************************= ***/ #include #include #include #define NRA 620 /* number of rows in matrix A */ #define NCA 150 /* number of columns in matrix A */ #define NCB 70 /* number of columns in matrix B */ int main (int argc, char *argv[]) = { int tid, nthreads, i, j, k, chunk; double a[NRA][NCA], /* matrix A to be multiplied */ b[NCA][NCB], /* matrix B to be multiplied */ c[NRA][NCB]; /* result matrix C */ chunk =3D 10; /* set loop iteration chunk size */ /*** Spawn a parallel region explicitly scoping all variables ***/ #pragma omp parallel shared(a,b,c,nthreads,chunk) private(tid,i,j,k) { tid =3D omp_get_thread_num(); if (tid =3D=3D 0) { nthreads =3D omp_get_num_threads(); printf("Starting matrix multiple example with %d threads\n",nthreads); printf("Initializing matrices...\n"); } /*** Initialize matrices ***/ #pragma omp for schedule (static, chunk) = for (i=3D0; ijmp_next[n1]; (gdb) bt #0 0x00000000600480d4 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c63540, n= =3D0) at /home/user/git/qemu/exec.c:1333 #1 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c63540) at /home/user/git/qemu/exec.c:1361 #2 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c634d8, n= =3D0) at /home/user/git/qemu/exec.c:1355 #3 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c634d8) at /home/user/git/qemu/exec.c:1361 #4 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c63470, n= =3D0) at /home/user/git/qemu/exec.c:1355 #5 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c63470) at /home/user/git/qemu/exec.c:1361 #6 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c63408, n= =3D1) at /home/user/git/qemu/exec.c:1355 #7 0x00000000600481d1 in tb_reset_jump_recursive (tb=3D0x7ffff4c63408) at /home/user/git/qemu/exec.c:1362 #8 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c633a0, n= =3D0) at /home/user/git/qemu/exec.c:1355 #9 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c633a0) at /home/user/git/qemu/exec.c:1361 #10 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c63338, n= =3D0) at /home/user/git/qemu/exec.c:1355 #11 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c63338) at /home/user/git/qemu/exec.c:1361 #12 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c632d0, n= =3D0) at /home/user/git/qemu/exec.c:1355 ---Type to continue, or q to quit--- #13 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c632d0) at /home/user/git/qemu/exec.c:1361 #14 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c63268, n= =3D1) at /home/user/git/qemu/exec.c:1355 #15 0x00000000600481d1 in tb_reset_jump_recursive (tb=3D0x7ffff4c63268) at /home/user/git/qemu/exec.c:1362 #16 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c63200, n= =3D0) at /home/user/git/qemu/exec.c:1355 #17 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c63200) at /home/user/git/qemu/exec.c:1361 #18 0x00000000600487c5 in cpu_unlink_tb (env=3D0x62385400) at /home/user/gi= t/qemu/exec.c:1617 #19 0x00000000600488e8 in cpu_exit (env=3D0x62385400) at /home/user/git/qem= u/exec.c:1662 #20 0x0000000060000798 in start_exclusive () at /home/user/git/qemu/linux-u= ser/main.c:152 #21 0x0000000060000a4b in do_kernel_trap (env=3D0x62359940) at /home/user/git/qemu/linux-user/main.c:493 #22 0x00000000600023f3 in cpu_loop (env=3D0x62359940) at /home/user/git/qem= u/linux-user/main.c:797 #23 0x00000000600123df in clone_func (arg=3D0x7ffffffd76e0) at /home/user/git/qemu/linux-user/syscall.c:3561 #24 0x00000000600b382d in start_thread (arg=3D) at pth= read_create.c:297 #25 0x00000000600f1809 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clo= ne.S:112 #26 0x0000000000000000 in ?? () (gdb) = Its interesting to see this : #0 0x00000000600480d4 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c63540, n= =3D0) at /home/user/git/qemu/exec.c:1333 tb1 =3D 0x0 <<<<<<<<<< tb_next =3D 0xf4c63610 <<<<<<<<<< ptb =3D 0x60341c91 <<<<<<<<<< n1 =3D 0 #1 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c63540) at /home/user/git/qemu/exec.c:1361 No locals. #2 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c634d8, n= =3D0) at /home/user/git/qemu/exec.c:1355 tb1 =3D 0x7ffff4c634d8 <<<<<<<<<<< tb_next =3D 0x7ffff4c63540 <<<<<<<<<<< ptb =3D 0x7ffff4c63860 <<<<<<<<<<< n1 =3D 0 #3 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c634d8) at /home/user/git/qemu/exec.c:1361 No locals. #4 0x0000000060048160 in tb_reset_jump_recursive2 (tb=3D0x7ffff4c63470, n= =3D0) at /home/user/git/qemu/exec.c:1355 tb1 =3D 0x7ffff4c63470 tb_next =3D 0x7ffff4c634d8 ptb =3D 0x7ffff4c63530 n1 =3D 0 #5 0x00000000600481c0 in tb_reset_jump_recursive (tb=3D0x7ffff4c63470) at /home/user/git/qemu/exec.c:1361