From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 539 invoked by alias); 28 Oct 2011 16:46:02 -0000 Received: (qmail 508 invoked by uid 22791); 28 Oct 2011 16:45:58 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,LOTS_OF_MONEY,TW_JN,TW_OV X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Oct 2011 16:45:44 +0000 From: "hjl.tools at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug nptl/13358] New: R15 may be uninitialized in x86_64/pthread_cond_timedwait.S Date: Fri, 28 Oct 2011 16:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00177.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13358 Bug #: 13358 Summary: R15 may be uninitialized in x86_64/pthread_cond_timedwait.S Product: glibc Version: 2.14 Status: NEW Severity: normal Priority: P2 Component: nptl AssignedTo: drepper.fsp@gmail.com ReportedBy: hjl.tools@gmail.com Classification: Unclassified When glibc is configured with --enable-kernel=2.6.38 on x86-64, R15 may be uninitialized in x86_64/pthread_cond_timedwait.S when called from nptl/tst-abstime.c. The backtrace is Breakpoint 5, pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:50 50 pushq %r12 (gdb) bt #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:50 #1 0x0040081d in main () at fixed.c:85 (gdb) and sequence is (gdb) next 53 pushq %r13 (gdb) 56 pushq %r14 (gdb) 59 pushq %r15 (gdb) [Thread 0xf7a42940 (LWP 2393) exited] 67 subq $FRAME_SIZE, %rsp (gdb) 71 cmpq $1000000000, 8(%rdx) (gdb) 72 movl $EINVAL, %eax (gdb) 73 jae 48f (gdb) 93 CMP_LP $-1, dep_mutex(%rdi) (gdb) 96 movq %rdi, 8(%rsp) (gdb) 97 movq %rsi, 16(%rsp) (gdb) 98 movq %rdx, %r13 (gdb) 100 je 22f (gdb) 101 mov %RSI_LP, dep_mutex(%rdi) (gdb) 114 movl $1, %esi (gdb) 115 xorl %eax, %eax (gdb) 116 LOCK (gdb) 122 jnz 31f (gdb) 125 32: movq 16(%rsp), %rdi (gdb) 126 xorl %esi, %esi (gdb) 127 callq __pthread_mutex_unlock_usercnt (gdb) 129 testl %eax, %eax (gdb) 130 jne 46f (gdb) 132 movq 8(%rsp), %rdi (gdb) 133 incq total_seq(%rdi) (gdb) 134 incl cond_futex(%rdi) (gdb) 135 addl $(1 << nwaiters_shift), cond_nwaiters(%rdi) (gdb) 138 movq 8(%rsp), %rdi (gdb) 139 movq wakeup_seq(%rdi), %r9 (gdb) 140 movl broadcast_seq(%rdi), %edx (gdb) 141 movq %r9, 24(%rsp) (gdb) 142 movl %edx, 4(%rsp) (gdb) 144 cmpq $0, (%r13) (gdb) 145 movq $-ETIMEDOUT, %r14 (gdb) 146 js 36f (gdb) 231 36: movl broadcast_seq(%rdi), %edx (gdb) 233 movq woken_seq(%rdi), %rax (gdb) 235 movq wakeup_seq(%rdi), %r9 (gdb) 237 cmpl 4(%rsp), %edx (gdb) 238 jne 53f (gdb) 240 cmpq 24(%rsp), %r9 (gdb) 241 jbe 45f (gdb) 246 45: cmpq $-ETIMEDOUT, %r14 (gdb) 247 jne 38b (gdb) 249 99: incq wakeup_seq(%rdi) (gdb) 250 incl cond_futex(%rdi) (gdb) 251 movl $ETIMEDOUT, %r14d (gdb) 252 jmp 44f (gdb) 258 44: incq woken_seq(%rdi) (gdb) 260 54: subl $(1 << nwaiters_shift), cond_nwaiters(%rdi) (gdb) 263 cmpq $0xffffffffffffffff, total_seq(%rdi) (gdb) 264 jne 55f (gdb) 286 55: LOCK (gdb) 292 jne 40f (gdb) 296 41: movq 16(%rsp), %rdi (gdb) Breakpoint 6, pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:297 297 testl %r15d, %r15d (gdb) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.