public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/17033] New: [x86_64] conditional cfi_undefined missing right after clone()
@ 2014-06-06 15:01 jan.kratochvil at redhat dot com
2014-06-06 15:05 ` [Bug nptl/17033] " jan.kratochvil at redhat dot com
2014-06-12 19:03 ` fweimer at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-06-06 15:01 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=17033
Bug ID: 17033
Summary: [x86_64] conditional cfi_undefined missing right after
clone()
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P2
Component: nptl
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
CC: drepper.fsp at gmail dot com
Target: x86_64-linux-gnu
gdb ~/t/thread2 -ex 'set confirm no' -ex 'set pagination off' -ex 'catch
syscall clone' -ex r -ex 'set $x=$pc' -ex 'delete 1' -ex start -ex 'b *$x' -ex
c -ex 'thread 2' -ex bt -ex 'stepi 3' -ex bt
Actual:
#0 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:81
81 testq %rax,%rax
(gdb) bt
#0 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:81
#1 0x0000003722607e70 in ?? () at pthread_create.c:173
#2 0x00007ffff7fd6700 in ?? ()
#3 0x0000000000000000 in ?? ()
(gdb) _
+
clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:93
93 xorl %ebp, %ebp
(gdb) bt
#0 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:93
(gdb) _
Expected:
#0 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:81
81 testq %rax,%rax
(gdb) bt
#0 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:81
(gdb) _
+
clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:93
93 xorl %ebp, %ebp
(gdb) bt
#0 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:93
(gdb) _
------------------------------------------------------------------------------
These lines are bogus unwind in child thread which is missing cfi_undefined:
#1 0x0000003722607e70 in ?? () at pthread_create.c:173
#2 0x00007ffff7fd6700 in ?? ()
#3 0x0000000000000000 in ?? ()
sysdeps/unix/sysv/linux/x86_64/clone.S
/* End FDE now, because in the child the unwind info will be
wrong. */
cfi_endproc;
syscall
<--- Here is missing CFI which does %rax comparison + conditional cfi_undefined
testq %rax,%rax
jl SYSCALL_ERROR_LABEL
jz L(thread_start)
ret
L(thread_start):
cfi_startproc;
/* Clearing frame pointer is insufficient, use CFI. */
cfi_undefined (rip);
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-12 19:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-06 15:01 [Bug nptl/17033] New: [x86_64] conditional cfi_undefined missing right after clone() jan.kratochvil at redhat dot com
2014-06-06 15:05 ` [Bug nptl/17033] " jan.kratochvil at redhat dot com
2014-06-12 19:03 ` fweimer at redhat dot com
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).