From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 9994E3858D35 for ; Mon, 22 May 2023 21:19:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9994E3858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684790378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=QOn98rXiWlVa4zpbCU+NoCyZaLRl0gjawRyDEkQHR8E=; b=JZ58jNh5CFK5zwMTofxvnym4J8FBYZmThWGaN0IhxWATX0VRbJV3jebxXF/wVRGV1xFW+5 YfhO6RekNPGeCYeQCj0CoSsHUr3onHq8o4jDBEvcM7fRcNLygBXsXnTbMbwVc995vkJYwh uWuw21Y9tmdrN9nCWA3Vsomzq/GbruQ= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-26-Ua3AYeSzMweFl3MIhLEzBw-1; Mon, 22 May 2023 17:19:37 -0400 X-MC-Unique: Ua3AYeSzMweFl3MIhLEzBw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BE9563C0012F; Mon, 22 May 2023 21:19:36 +0000 (UTC) Received: from greed.delorie.com (unknown [10.22.9.251]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9C350400F17; Mon, 22 May 2023 21:19:36 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.15.2/8.15.2) with ESMTP id 34MLJZLh3574618; Mon, 22 May 2023 17:19:35 -0400 From: DJ Delorie To: Adhemerval Zanella Netto Cc: libc-alpha@sourceware.org, carlos@redhat.com Subject: Re: [PATCH v6 1/1] nptl: Fix Race conditions in pthread cancellation [BZ#12683] In-Reply-To: Date: Mon, 22 May 2023 17:19:35 -0400 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: FYI I did a build on my F35 machine with the trybot's commands and replicated the large list of failures from the trybot. dj@envy pts/23 ~/tools/upstream/glibc.cancel.build $ ./debugglibc.sh rt/tst-timer2 Debugging glibc... Build directory : /envy/dj/tools/upstream/glibc.cancel.build/ Source directory : /envy/dj/tools/upstream/glibc.cancel GLIBC Testcase : rt/tst-timer2 GDB Commands : /envy/dj/tools/upstream/glibc.cancel.build/debugglibc.gdb Env vars : LC_ALL=C LOCPATH=/envy/dj/tools/upstream/glibc.cancel.build//localedata GCONV_PATH=/envy/dj/tools/upstream/glibc.cancel.build//iconvdata Reading symbols from /envy/dj/tools/upstream/glibc.cancel.build//elf/ld.so... add symbol table from file "rt/tst-timer2" Breakpoint 1 at 0x1970e Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit. warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. Breakpoint 1, 0xf7fe470e in _dl_start_user () from /envy/dj/tools/upstream/glibc.cancel.build/elf/ld.so [ gdb ] c Continuing. cnt = 0 [New LWP 3163750] Thread 1 "ld.so" received signal SIGSEGV, Segmentation fault. __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/i386/syscall_cancel.S:50 50 testb $TCB_CANCELED_BITMASK, (%eax) [ gdb ] where #0 __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/i386/syscall_cancel.S:50 #1 0xf7e0101d in __internal_syscall_cancel (a1=1, a2=-13216, a3=8, a4=0, a5=0, a6=0, nr=4) at cancellation.c:49 #2 0xf7e01070 in __syscall_cancel (a1=1, a2=-13216, a3=8, a4=0, a5=0, a6=0, nr=4) at cancellation.c:70 #3 0xf7e84ffc in __GI___libc_write (fd=1, buf=0xffffcc60, nbytes=8) at ../sysdeps/unix/sysv/linux/write.c:26 #4 0xf7dfcc3b in _IO_new_file_write (f=0xf7fb1da0 <_IO_2_1_stdout_>, data=0xffffcc60, n=8) at fileops.c:1180 #5 0xf7dfaba3 in new_do_write (fp=fp@entry=0xf7fb1da0 <_IO_2_1_stdout_>, data=data@entry=0xffffcc60 "cnt = 1\n\300\342\377", , to_do=to_do@entry=8) at /envy/dj/tools/upstream/glibc.cancel/libio/libioP.h:1031 #6 0xf7dfcde7 in _IO_new_file_xsputn (n=8, data=, f=0xf7fb1da0 <_IO_2_1_stdout_>) at fileops.c:1254 #7 _IO_new_file_xsputn (f=0xf7fb1da0 <_IO_2_1_stdout_>, data=, n=8) at fileops.c:1196 #8 0xf7dd37f6 in __printf_buffer_flush_to_file (buf=0xffffcc44) at ../libio/libioP.h:1031 #9 0xf7dd38b8 in __printf_buffer_to_file_done (buf=0xffffcc44) at printf_buffer_to_file.c:120 #10 0xf7ddceaf in __vfprintf_internal (s=0xf7fb1da0 <_IO_2_1_stdout_>, format=0xf7fc1010 "cnt = %d\n", ap=0xffffcd24 "\001", mode_flags=0) at vfprintf-internal.c:1475 #11 0xf7dd2fb5 in __printf (format=0xf7fc1010 "cnt = %d\n") at printf.c:33 #12 0xf7fbf65a in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) [ gdb ] info reg eax 0x1 1 ecx 0xf7d80780 -136837248 edx 0x0 0 ebx 0xf7d80700 -136837376 esp 0xffffca5c 0xffffca5c ebp 0xf7fb1da0 0xf7fb1da0 <_IO_2_1_stdout_> esi 0x8 8 edi 0xffffcc60 -13216 eip 0xf7e0d4c4 0xf7e0d4c4 <__syscall_cancel_arch+4> eflags 0x10246 [ PF ZF IF RF ] cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x0 0 gs 0x63 99 [ gdb ]