public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/60388] New: Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1
@ 2014-03-02 18:37 sree.gooogle at gmail dot com
2014-03-02 18:42 ` [Bug c/60388] " sree.gooogle at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: sree.gooogle at gmail dot com @ 2014-03-02 18:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60388
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=32242&action=edit
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=0x0, attr=0x0,
start_routine=0x80484cc <mx_thrd>, arg=0x0) at pthread_create.c:563
563 in pthread_create.c
(gdb)
(gdb) bt
#0 0xb7fb62ff in __pthread_create_2_1 (newthread=0x0, attr=0x0,
start_routine=0x80484cc <mx_thrd>, arg=0x0) 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 = 0xb7fb62ff in __pthread_create_2_1 (pthread_create.c:563); saved eip
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 0xbffff664,
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) == 0)
561 {
562 INTERNAL_SYSCALL (sched_getparam, scerr, 2, 0, &pd->schedparam);
563 pd->flags |= ATTR_FLAG_SCHED_SET;
564 }
What is the gcc version which I have used?
==========================================
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 warnings
produced?
===============================================================================
labro@ubuntu:~/Desktop/sree/DevUnix$ gcc max_trd_creation.c -g -lpthread
max_trd_creation.c: In function âmainâ:
max_trd_creation.c:22:3: warning: passing argument 1 of âpthread_createâ 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 âpthread_t * __restrict__â but
argument is of type âpthread_tâ
I have attached the piece of code which I have used for producing this seg
fault.
Kindly ignore this if you dot see something useful.
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: <gcc-bugs-return-445215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.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: <bug-60341-4-FehHUaPpNI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60341-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60341-4@http.gcc.gnu.org/bugzilla/>
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`341
--- Comment #11 from Mikael Morin <mikael at gcc dot gnu.org> ---
Author: mikael
Date: Sun Mar 2 18:36:42 2014
New Revision: 208258
URL: http://gcc.gnu.org/viewcvs?rev 8258&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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/60388] Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1
2014-03-02 18:37 [Bug c/60388] New: Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1 sree.gooogle at gmail dot com
@ 2014-03-02 18:42 ` sree.gooogle at gmail dot com
2014-03-02 18:55 ` mikpelinux at gmail dot com
2014-03-02 19:13 ` schwab@linux-m68k.org
2 siblings, 0 replies; 4+ messages in thread
From: sree.gooogle at gmail dot com @ 2014-03-02 18:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60388
Sreenath U S <sree.gooogle at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
CC| |sree.gooogle at gmail dot com
Severity|normal |minor
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/60388] Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1
2014-03-02 18:37 [Bug c/60388] New: Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1 sree.gooogle at gmail dot com
2014-03-02 18:42 ` [Bug c/60388] " sree.gooogle at gmail dot com
@ 2014-03-02 18:55 ` mikpelinux at gmail dot com
2014-03-02 19:13 ` schwab@linux-m68k.org
2 siblings, 0 replies; 4+ messages in thread
From: mikpelinux at gmail dot com @ 2014-03-02 18:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60388
--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
User error. s/pthread_create(tid,/pthread_create(&tid1[i],/g fixes it, as
gcc's warnings correctly identified.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/60388] Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1
2014-03-02 18:37 [Bug c/60388] New: Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1 sree.gooogle at gmail dot com
2014-03-02 18:42 ` [Bug c/60388] " sree.gooogle at gmail dot com
2014-03-02 18:55 ` mikpelinux at gmail dot com
@ 2014-03-02 19:13 ` schwab@linux-m68k.org
2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2014-03-02 19:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60388
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
Not a bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-02 19:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-02 18:37 [Bug c/60388] New: Program received signal SIGSEGV, Segmentation fault. 0xb7fb62ff in __pthread_create_2_1 sree.gooogle at gmail dot com
2014-03-02 18:42 ` [Bug c/60388] " sree.gooogle at gmail dot com
2014-03-02 18:55 ` mikpelinux at gmail dot com
2014-03-02 19:13 ` schwab@linux-m68k.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).