From owner-freebsd-threads@freebsd.org Sat Apr 28 14:01:17 2018 Return-Path: Delivered-To: freebsd-threads@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 062DFFAFF54 for ; Sat, 28 Apr 2018 14:01:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 913098AA9F for ; Sat, 28 Apr 2018 14:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 47D6BFAFF53; Sat, 28 Apr 2018 14:01:16 +0000 (UTC) Delivered-To: threads@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 23863FAFF52 for ; Sat, 28 Apr 2018 14:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ACC7A8AA9C for ; Sat, 28 Apr 2018 14:01:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C444E6DFA for ; Sat, 28 Apr 2018 14:01:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3SE1E81017042 for ; Sat, 28 Apr 2018 14:01:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3SE1EFD017041 for threads@FreeBSD.org; Sat, 28 Apr 2018 14:01:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 227826] FUSE: fuse_main() hangs in pthread_cleanup_pop() Date: Sat, 28 Apr 2018 14:01:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ben.rubson@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 14:01:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227826 Bug ID: 227826 Summary: FUSE: fuse_main() hangs in pthread_cleanup_pop() Product: Base System Version: 11.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: threads Assignee: threads@FreeBSD.org Reporter: ben.rubson@gmail.com Hi, I'm facing an issue where, from time to time, unmounting a FUSE FS, threads hang in pthread_cleanup_pop(). For example with sysutils/fusefs-encfs. When it starts, it enters fuse_main(). And when FS is unmounted, sometimes, main thread hangs in fuse_main(), all threads being stuck in pthread_cleanup_pop(). Here is a backtrace : (gdb) thread apply all bt Thread 2 (Thread 802618000 (LWP 100408/encfs)): #0 0x0000000801da267c in pthread_cleanup_pop () from /lib/libthr.so.3 #1 0x00000008008c8b1b in fuse_session_loop_mt () from /usr/local/lib/libfuse.so.2 #2 0x00000008008cd8c2 in fuse_loop_mt () from /usr/local/lib/libfuse.so.2 #3 0x00000008008d0618 in fuse_main_real () from /usr/local/lib/libfuse.so.2 #4 0x000000000040a246 in ?? () #5 0x0000000000408a8f in ?? () #6 0x00000008006b4000 in ?? () #7 0x0000000000000000 in ?? () Thread 1 (Thread 802c69000 (LWP 101304/encfs)): #0 0x0000000801da267c in pthread_cleanup_pop () from /lib/libthr.so.3 #1 0x0000000801d9f9f3 in pthread_timedjoin_np () from /lib/libthr.so.3 #2 0x000000080069dc72 in _rtld_is_dlopened () from /libexec/ld-elf.so.1 #3 0x000000080069af21 in _rtld_is_dlopened () from /libexec/ld-elf.so.1 #4 0x0000000800698301 in dlopen () from /libexec/ld-elf.so.1 #5 0x0000000801da1f0f in pthread_exit () from /lib/libthr.so.3 #6 0x0000000801da1e3b in pthread_exit () from /lib/libthr.so.3 #7 0x0000000801d94b5d in pthread_create () from /lib/libthr.so.3 #8 0x0000000000000000 in ?? () Here are other similar backtraces : https://pastebin.com/raw/ubxzKck8 https://pastebin.com/raw/FXRy2u22 https://pastebin.com/raw/7CG9BuDq Process then hangs indefinitely, and only exits upon a SIGKILL. I also reported this in sysutils/fusefs-encfs, but does not seem to be a po= rt issue. https://github.com/vgough/encfs/issues/470 Thank you very much for your support ! Best regards, Ben --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-threads@freebsd.org Sat Apr 28 14:04:47 2018 Return-Path: Delivered-To: freebsd-threads@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75568FB0185 for ; Sat, 28 Apr 2018 14:04:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0C93D8ACD9 for ; Sat, 28 Apr 2018 14:04:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B7A76FB0184; Sat, 28 Apr 2018 14:04:46 +0000 (UTC) Delivered-To: threads@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4CDFFB0183 for ; Sat, 28 Apr 2018 14:04:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3F5CF8ACD8 for ; Sat, 28 Apr 2018 14:04:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7DE396F46 for ; Sat, 28 Apr 2018 14:04:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3SE4jgC028368 for ; Sat, 28 Apr 2018 14:04:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3SE4jYd028367 for threads@FreeBSD.org; Sat, 28 Apr 2018 14:04:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 227826] FUSE: fuse_main() hangs in pthread_cleanup_pop() Date: Sat, 28 Apr 2018 14:04:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ben.rubson@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 14:04:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227826 --- Comment #1 from Ben RUBSON --- Of course I know I'm not running the last FreeBSD release : # uname -r 11.0-RELEASE-p16 But I did not find anything relevant in bugs history regarding pthread_cleanup_pop(). I have a process currently stuck like this, so if needed I'm available for a live debug session. Thx ! --=20 You are receiving this mail because: You are the assignee for the bug.=