public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/15843] core dump when pthread_cancel() while thread is inside pthread_cond_timedwait()
  2013-08-15 21:16 [Bug nptl/15843] New: core dump when pthread_cancel() while thread is inside pthread_cond_timedwait() olivier.pis.langlois at transport dot alstom.com
@ 2013-08-15 21:16 ` olivier.pis.langlois at transport dot alstom.com
  2013-08-16 14:29 ` olivier.pis.langlois at transport dot alstom.com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: olivier.pis.langlois at transport dot alstom.com @ 2013-08-15 21:16 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15843

--- Comment #1 from Olivier Langlois <olivier.pis.langlois at transport dot alstom.com> ---
Created attachment 7146
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7146&action=edit
config file used to compile glibc

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nptl/15843] New: core dump when pthread_cancel() while thread is inside pthread_cond_timedwait()
@ 2013-08-15 21:16 olivier.pis.langlois at transport dot alstom.com
  2013-08-15 21:16 ` [Bug nptl/15843] " olivier.pis.langlois at transport dot alstom.com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: olivier.pis.langlois at transport dot alstom.com @ 2013-08-15 21:16 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15843

            Bug ID: 15843
           Summary: core dump when pthread_cancel() while thread is inside
                    pthread_cond_timedwait()
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: olivier.pis.langlois at transport dot alstom.com
                CC: drepper.fsp at gmail dot com

Created attachment 7145
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7145&action=edit
modified unittest to highlight problem

Description:

I have modified the tst-cond25.c test to compile with glibc test driver as the
driver forbibs the test to create core dumps. See attachement.

I have investigated the core dump a bit and it seems to come from cancelling
pthread_cond_timedwait call:

(gdb) where
#0 0xb77762c1 in ?? () from /usr/lib/libgcc_s.so.1
#1 0xb7776a3a in ?? () from /usr/lib/libgcc_s.so.1
#2 0xb7776e40 in _Unwind_Resume () from /usr/lib/libgcc_s.so.1
#3 0xb77517a2 in _Unwind_Resume () from /usr/lib/libpthread.so.0
#4 0xb774d2d7 in __condvar_tw_cleanup () from /usr/lib/libpthread.so.0
#5 0x00000001 in ?? ()

The problem seem to be introduced by commit

http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=4f682b2ae941b9bacde6015799b7ae77301a6d87

If I roll back that commit, the core dump goes away.

Additional info:
* 2.18
* i686

lano1106@hpmini /usr/src/linux-3.10.6-2-ck/include $ gcc --version
gcc (GCC) 4.8.1 20130725 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

lano1106@hpmini /usr/src/linux-3.10.6-2-ck/include $ uname -a
Linux hpmini 3.10.6-2-ck #1 SMP PREEMPT Tue Aug 13 23:16:33 EDT 2013 i686
GNU/Linux

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nptl/15843] core dump when pthread_cancel() while thread is inside pthread_cond_timedwait()
  2013-08-15 21:16 [Bug nptl/15843] New: core dump when pthread_cancel() while thread is inside pthread_cond_timedwait() olivier.pis.langlois at transport dot alstom.com
  2013-08-15 21:16 ` [Bug nptl/15843] " olivier.pis.langlois at transport dot alstom.com
@ 2013-08-16 14:29 ` olivier.pis.langlois at transport dot alstom.com
  2013-08-16 21:46 ` allan at archlinux dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: olivier.pis.langlois at transport dot alstom.com @ 2013-08-16 14:29 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15843

--- Comment #2 from Olivier Langlois <olivier.pis.langlois at transport dot alstom.com> ---
Created attachment 7147
  --> http://sourceware.org/bugzilla/attachment.cgi?id=7147&action=edit
cpuinfo output

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nptl/15843] core dump when pthread_cancel() while thread is inside pthread_cond_timedwait()
  2013-08-15 21:16 [Bug nptl/15843] New: core dump when pthread_cancel() while thread is inside pthread_cond_timedwait() olivier.pis.langlois at transport dot alstom.com
  2013-08-15 21:16 ` [Bug nptl/15843] " olivier.pis.langlois at transport dot alstom.com
  2013-08-16 14:29 ` olivier.pis.langlois at transport dot alstom.com
@ 2013-08-16 21:46 ` allan at archlinux dot org
  2013-12-01  9:49 ` adconrad at 0c3 dot net
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: allan at archlinux dot org @ 2013-08-16 21:46 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15843

Allan McRae <allan at archlinux dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allan at archlinux dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nptl/15843] core dump when pthread_cancel() while thread is inside pthread_cond_timedwait()
  2013-08-15 21:16 [Bug nptl/15843] New: core dump when pthread_cancel() while thread is inside pthread_cond_timedwait() olivier.pis.langlois at transport dot alstom.com
                   ` (2 preceding siblings ...)
  2013-08-16 21:46 ` allan at archlinux dot org
@ 2013-12-01  9:49 ` adconrad at 0c3 dot net
  2013-12-01  9:51 ` adconrad at 0c3 dot net
  2013-12-09 12:56 ` schwab@linux-m68k.org
  5 siblings, 0 replies; 7+ messages in thread
From: adconrad at 0c3 dot net @ 2013-12-01  9:49 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15843

Adam Conrad <adconrad at 0c3 dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adconrad at 0c3 dot net,
                   |                            |schwab at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nptl/15843] core dump when pthread_cancel() while thread is inside pthread_cond_timedwait()
  2013-08-15 21:16 [Bug nptl/15843] New: core dump when pthread_cancel() while thread is inside pthread_cond_timedwait() olivier.pis.langlois at transport dot alstom.com
                   ` (3 preceding siblings ...)
  2013-12-01  9:49 ` adconrad at 0c3 dot net
@ 2013-12-01  9:51 ` adconrad at 0c3 dot net
  2013-12-09 12:56 ` schwab@linux-m68k.org
  5 siblings, 0 replies; 7+ messages in thread
From: adconrad at 0c3 dot net @ 2013-12-01  9:51 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15843

--- Comment #3 from Adam Conrad <adconrad at 0c3 dot net> ---
I'm seeing this same test failure on Debian/i386 as well (built for an i586
target), if there's anything I can provide to help debug the issue, I'd be
happy to.  For now, I'm going to revert that commit (which I note from the git
log has happened once before, and then it was un-reverted...)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug nptl/15843] core dump when pthread_cancel() while thread is inside pthread_cond_timedwait()
  2013-08-15 21:16 [Bug nptl/15843] New: core dump when pthread_cancel() while thread is inside pthread_cond_timedwait() olivier.pis.langlois at transport dot alstom.com
                   ` (4 preceding siblings ...)
  2013-12-01  9:51 ` adconrad at 0c3 dot net
@ 2013-12-09 12:56 ` schwab@linux-m68k.org
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2013-12-09 12:56 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15843

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.19

--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> ---
Fixed by caecf2a.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-12-09 12:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-15 21:16 [Bug nptl/15843] New: core dump when pthread_cancel() while thread is inside pthread_cond_timedwait() olivier.pis.langlois at transport dot alstom.com
2013-08-15 21:16 ` [Bug nptl/15843] " olivier.pis.langlois at transport dot alstom.com
2013-08-16 14:29 ` olivier.pis.langlois at transport dot alstom.com
2013-08-16 21:46 ` allan at archlinux dot org
2013-12-01  9:49 ` adconrad at 0c3 dot net
2013-12-01  9:51 ` adconrad at 0c3 dot net
2013-12-09 12:56 ` 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).