From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4742 invoked by alias); 2 Mar 2014 18:37:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4719 invoked by uid 48); 2 Mar 2014 18:37:38 -0000 From: "sree.gooogle at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/60388] New: Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1 Date: Sun, 02 Mar 2014 18:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sree.gooogle at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg00085.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60388 Bug ID: 60388 Summary: Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1 Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sree.gooogle at gmail dot com Created attachment 32242 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D32242&action=3Dedit c program used for Segmentation fault at line number 563 in pthread_create.c Hi, Please take a look at this issue. I have faced a SIGSEGV at line number 563= in pthread_create.c. The program Crashed in the below fashion: (gdb)s 514 in pthread_create.c (gdb) 518 in pthread_create.c (gdb) 563 in pthread_create.c (gdb) Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1 (newthread=3D0x0, attr=3D0x0, start_routine=3D0x80484cc , arg=3D0x0) at pthread_create.c:563 563 in pthread_create.c (gdb) (gdb) bt #0 0xb7fb62ff in __pthread_create_2_1 (newthread=3D0x0, attr=3D0x0, start_routine=3D0x80484cc , arg=3D0x0) at pthread_create.c:563 #1 0x0804853c in main () at max_trd_creation.c:22 (gdb) i frame Stack level 0, frame at 0xbffff670: eip =3D 0xb7fb62ff in __pthread_create_2_1 (pthread_create.c:563); saved e= ip 0x804853c called by frame at 0xbffff6a0 source language c. Arglist at unknown address. Locals at unknown address, Previous frame's sp is 0xbffff670 Saved registers: ebx at 0xbffff65c, ebp at 0xbffff668, esi at 0xbffff660, edi at 0xbffff66= 4, eip at 0xbffff66c (gdb)s Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) I am going through the below link for details about the line number 563 in pthread_create.c http://code.woboq.org/userspace/glibc/nptl/pthread_create.c.html 557 if (iattr->flags & ATTR_FLAG_SCHED_SET) 558 memcpy (&pd->schedparam, &iattr->schedparam, 559 sizeof (struct sched_param)); 560 else if ((pd->flags & ATTR_FLAG_SCHED_SET) =3D=3D 0) 561 { 562 INTERNAL_SYSCALL (sched_getparam, scerr, 2, 0, &pd->schedparam); 563 pd->flags |=3D ATTR_FLAG_SCHED_SET; 564 } What is the gcc version which I have used? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) How I compiled the program and what are all the options given and the warni= ngs produced? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D labro@ubuntu:~/Desktop/sree/DevUnix$ gcc max_trd_creation.c -g -lpthread max_trd_creation.c: In function =C3=A2main=C3=A2: max_trd_creation.c:22:3: warning: passing argument 1 of =C3=A2pthread_creat= e=C3=A2 makes pointer from integer without a cast [enabled by default] In file included from max_trd_creation.c:2:0: /usr/include/pthread.h:225:12: note: expected =C3=A2pthread_t * __restrict_= _=C3=A2 but argument is of type =C3=A2pthread_t=C3=A2 I have attached the piece of code which I have used for producing this seg fault.=20 Kindly ignore this if you dot see something useful.=20 Thanks and Regards, Sreenath >>From gcc-bugs-return-445215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 02 18:37:22 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3944 invoked by alias); 2 Mar 2014 18:37:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3362 invoked by uid 55); 2 Mar 2014 18:37:16 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/60341] [4.7/4.8/4.9 Regression] ICE compiling Nonmem 6.2.0 Date: Sun, 02 Mar 2014 18:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mikael at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg00084.txt.bz2 Content-length: 756 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60341 --- Comment #11 from Mikael Morin --- Author: mikael Date: Sun Mar 2 18:36:42 2014 New Revision: 208258 URL: http://gcc.gnu.org/viewcvs?rev=208258&root=gcc&view=rev Log: fortran/ PR fortran/60341 * frontend-passes.c (optimize_comparison): Guard two union accesses with the corresponding tag checks. testsuite/ PR fortran/60341 * gfortran.dg/str_comp_optimize_1.f90: New test. Added: branches/gcc-4_8-branch/gcc/testsuite/gfortran.dg/str_comp_optimize_1.f90 Modified: branches/gcc-4_8-branch/gcc/fortran/ChangeLog branches/gcc-4_8-branch/gcc/fortran/frontend-passes.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog