From owner-freebsd-threads@FreeBSD.ORG Mon May 9 11:07:16 2011 Return-Path: Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDB9E1065674 for ; Mon, 9 May 2011 11:07:16 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B27EC8FC0A for ; Mon, 9 May 2011 11:07:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p49B7GL3070773 for ; Mon, 9 May 2011 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p49B7Gfr070771 for freebsd-threads@FreeBSD.org; Mon, 9 May 2011 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 May 2011 11:07:16 GMT Message-Id: <201105091107.p49B7Gfr070771@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-threads@FreeBSD.org X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2011 11:07:17 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o threa/154893 threads pthread_sigmask don't work if mask and oldmask are pas o threa/150959 threads [libc] Stub pthread_once in libc should call _libc_onc o threa/149366 threads pthread_cleanup_pop never runs the configured routine o threa/148515 threads Memory / syslog strangeness in FreeBSD 8.x ( possible o threa/141721 threads rtprio(1): (id|rt)prio priority resets when new thread o threa/136345 threads Recursive read rwlocks in thread A cause deadlock with o threa/135673 threads databases/mysql50-server - MySQL query lock-ups on 7.2 o threa/128922 threads threads hang with xorg running o threa/127225 threads bug in lib/libthr/thread/thr_init.c o threa/122923 threads 'nice' does not prevent background process from steali o threa/121336 threads lang/neko threading ok on UP, broken on SMP (FreeBSD 7 o threa/116668 threads can no longer use jdk15 with libthr on -stable SMP o threa/115211 threads pthread_atfork misbehaves in initial thread o threa/110636 threads [request] gdb(1): using gdb with multi thread applicat o threa/110306 threads apache 2.0 segmentation violation when calling gethost o threa/103975 threads Implicit loading/unloading of libpthread.so may crash o threa/101323 threads [patch] fork(2) in threaded programs broken. s threa/84483 threads problems with devel/nspr and -lc_r on 4.x o threa/80992 threads abort() sometimes not caught by gdb depending on threa o threa/79683 threads svctcp_create() fails if multiple threads call at the s threa/76694 threads fork cause hang in dup()/close() function in child (-l s threa/76690 threads fork hang in child for -lc_r s threa/69020 threads pthreads library leaks _gc_mutex s threa/48856 threads Setting SIGCHLD to SIG_IGN still leaves zombies under s threa/40671 threads pthread_cancel doesn't remove thread from condition qu s threa/34536 threads accept() blocks other threads s threa/30464 threads [patch] pthread mutex attributes -- pshared 27 problems total. From owner-freebsd-threads@FreeBSD.ORG Sat May 14 11:10:14 2011 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6C2E106568E for ; Sat, 14 May 2011 11:10:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CAB1F8FC19 for ; Sat, 14 May 2011 11:10:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4EBADbl035905 for ; Sat, 14 May 2011 11:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4EBADVt035904; Sat, 14 May 2011 11:10:13 GMT (envelope-from gnats) Resent-Date: Sat, 14 May 2011 11:10:13 GMT Resent-Message-Id: <201105141110.p4EBADVt035904@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-threads@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Schaich Alonso Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FA161065674 for ; Sat, 14 May 2011 11:02:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id F32AD8FC08 for ; Sat, 14 May 2011 11:02:38 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4EB2cEn039744 for ; Sat, 14 May 2011 11:02:38 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p4EB2cen039743; Sat, 14 May 2011 11:02:38 GMT (envelope-from nobody) Message-Id: <201105141102.p4EB2cen039743@red.freebsd.org> Date: Sat, 14 May 2011 11:02:38 GMT From: Schaich Alonso To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: threads/157040: valgrind detects leaks in libthr.so.3 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2011 11:10:14 -0000 >Number: 157040 >Category: threads >Synopsis: valgrind detects leaks in libthr.so.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 14 11:10:13 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Schaich Alonso >Release: 8.2-RELEASE >Organization: >Environment: FreeBSD tecra 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #2: Fri May 13 16:22:22 CEST 2011 root@tecra:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I'm not certain whether this is a problem with libthr or valgrind, however when linking against libpthread even a hello world program will cause valgrind to "detect" a 392 octet block not being freed. If compiled in C++ mode, it will also report seven other blocks: ==5254== Memcheck, a memory error detector ==5254== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==5254== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==5254== Command: ./a.out ==5254== ==5254== ==5254== HEAP SUMMARY: ==5254== in use at exit: 872 bytes in 7 blocks ==5254== total heap usage: 7 allocs, 0 frees, 872 bytes allocated ==5254== ==5254== 80 bytes in 1 blocks are still reachable in loss record 1 of 7 ==5254== at 0x258A04: calloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==5254== by 0xD0D257: ??? (in /lib/libthr.so.3) ==5254== by 0xD0D49B: ??? (in /lib/libthr.so.3) ==5254== by 0xD0DA9F: pthread_mutex_lock (in /lib/libthr.so.3) ==5254== by 0xEE1A4F: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xEE2E72: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xE678BD: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0x13E0CF: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x1784E: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x18BB4: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x13758: ??? (in /libexec/ld-elf.so.1) ==5254== ==5254== 80 bytes in 1 blocks are still reachable in loss record 2 of 7 ==5254== at 0x258A04: calloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==5254== by 0xD0D257: ??? (in /lib/libthr.so.3) ==5254== by 0xD0D49B: ??? (in /lib/libthr.so.3) ==5254== by 0xD0DA9F: pthread_mutex_lock (in /lib/libthr.so.3) ==5254== by 0xEDD837: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xEE2E72: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xE678BD: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0x13E0CF: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x1784E: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x18BB4: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x13758: ??? (in /libexec/ld-elf.so.1) ==5254== ==5254== 80 bytes in 1 blocks are still reachable in loss record 3 of 7 ==5254== at 0x258A04: calloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==5254== by 0xD0D257: ??? (in /lib/libthr.so.3) ==5254== by 0xD0D49B: ??? (in /lib/libthr.so.3) ==5254== by 0xD0DA9F: pthread_mutex_lock (in /lib/libthr.so.3) ==5254== by 0xE7CD1B: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xEE2E72: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xE678BD: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0x13E0CF: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x1784E: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x18BB4: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x13758: ??? (in /libexec/ld-elf.so.1) ==5254== ==5254== 80 bytes in 1 blocks are still reachable in loss record 4 of 7 ==5254== at 0x258A04: calloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==5254== by 0xD0D257: ??? (in /lib/libthr.so.3) ==5254== by 0xD0D49B: ??? (in /lib/libthr.so.3) ==5254== by 0xD0DA9F: pthread_mutex_lock (in /lib/libthr.so.3) ==5254== by 0xE7B2C1: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xEE2E72: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xE678BD: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0x13E0CF: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x1784E: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x18BB4: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x13758: ??? (in /libexec/ld-elf.so.1) ==5254== ==5254== 80 bytes in 1 blocks are still reachable in loss record 5 of 7 ==5254== at 0x258A04: calloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==5254== by 0xD0D257: ??? (in /lib/libthr.so.3) ==5254== by 0xD0D49B: ??? (in /lib/libthr.so.3) ==5254== by 0xD0DA9F: pthread_mutex_lock (in /lib/libthr.so.3) ==5254== by 0xE78948: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xEE2E72: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xE678BD: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0x13E0CF: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x1784E: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x18BB4: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x13758: ??? (in /libexec/ld-elf.so.1) ==5254== ==5254== 80 bytes in 1 blocks are still reachable in loss record 6 of 7 ==5254== at 0x258A04: calloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==5254== by 0xD0D257: ??? (in /lib/libthr.so.3) ==5254== by 0xD0D49B: ??? (in /lib/libthr.so.3) ==5254== by 0xD0DA9F: pthread_mutex_lock (in /lib/libthr.so.3) ==5254== by 0xE73F35: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xEE2E72: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xE678BD: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0x13E0CF: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x1784E: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x18BB4: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x13758: ??? (in /libexec/ld-elf.so.1) ==5254== ==5254== 392 bytes in 1 blocks are still reachable in loss record 7 of 7 ==5254== at 0x259790: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so) ==5254== by 0xD0EEFE: ??? (in /lib/libthr.so.3) ==5254== by 0xD0F882: ??? (in /lib/libthr.so.3) ==5254== by 0xD0DA2C: pthread_mutex_lock (in /lib/libthr.so.3) ==5254== by 0xEE1A4F: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xEE2E72: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0xE678BD: ??? (in /usr/lib/libstdc++.so.6) ==5254== by 0x13E0CF: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x1784E: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x18BB4: ??? (in /libexec/ld-elf.so.1) ==5254== by 0x13758: ??? (in /libexec/ld-elf.so.1) ==5254== ==5254== LEAK SUMMARY: ==5254== definitely lost: 0 bytes in 0 blocks ==5254== indirectly lost: 0 bytes in 0 blocks ==5254== possibly lost: 0 bytes in 0 blocks ==5254== still reachable: 872 bytes in 7 blocks ==5254== suppressed: 0 bytes in 0 blocks ==5254== ==5254== For counts of detected and suppressed errors, rerun with: -v ==5254== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) >How-To-Repeat: write any c programm, e.g.: >Fix: >Release-Note: >Audit-Trail: >Unformatted: >#include > >int main() >{ > return (EXIT_SUCCESS); >} > (test.c) for little output: >cc -pthread test.c >valgrind --leak-check=full --show-reachable=yes ./a.out for alot output: >c++ -pthread test.c >valgrind --leak-check=full --show-reachable=yes ./a.out