From owner-freebsd-hackers@freebsd.org Thu Oct 4 18:33:10 2018 Return-Path: Delivered-To: freebsd-hackers@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 BC9A510B69D2 for ; Thu, 4 Oct 2018 18:33:10 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 50BEC7E8AE for ; Thu, 4 Oct 2018 18:33:10 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-pg1-x535.google.com with SMTP id c10-v6so3548564pgq.4 for ; Thu, 04 Oct 2018 11:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0v9XG6CzrCkkpnUqZXwgamDT8gg1gdFnYPsNseIVij8=; b=Qi8x1jAhXLK2++KmIYPRjAk5rQ8hlIcVm3E0040uPTYznBjJbGkDySE061kusjmDTe pvTPb3PEn5jJRb+BS23Q6w0udNJJBKNEwWGfjq+Dwk7Alv+y8IeC5gDa7nQ54+BfWCQr BpGKKff3w6U6d5HMI/Mf90MYdN1id/92MkncAzh96MezQvhE9zLbIsiO3TlgNDSqz4T0 vioSUefvUC6LyeXo2WDoWrEWv78Ekzt/Gzid8zNuhf+UVwiGlUf7ehAbfSTcfzrTZDuG sB/k2ElIg7eCwvw8jjfdoT0fENi/XMqXch7S+mHhCT4iDgdEqfKDBJXiXY0kYJSTQmgm XNbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0v9XG6CzrCkkpnUqZXwgamDT8gg1gdFnYPsNseIVij8=; b=Z04rPjY0Z13he/Cd4NMTAjX2uCIKKoUGe8jD/yfWpI8Iu9ar/eGIAOZvdXr17JduVI Q81BXiP4jJtpppcM7wtgrIGTjJmkCRbLfkybeKWvcedQvlvCBfAGoybGZmft3l1VewSJ Z7e1sOtUuYdybFVosBRA3ELtvCnKfXuuzWTjDz8YGeWJeJSsqjhe+32HLPZLVeu5f0s0 e3w4ncq2DkNcLEDrlmJ19ANSbW7de4dgn4Zhg2/D2TpAb5SLflt7C9a5IZjbh3iNsZDF m9EAEMdkHbJK1tOl3oN3pSXX7Tb2BpypUEViA0vXKjtjXTT2DTvIdy4aUvvWMCdJmyLc B+xw== X-Gm-Message-State: ABuFfogt5E1G+gNRp8EUDaN4fJ8CPNUE2QmEAB3V0WNJOkTLmtUpt2JE pS9dawyHdOXUiYuXOkweuJRff772IpnR+Qe+5+c= X-Google-Smtp-Source: ACcGV6036lq1T9hRWq2b76HIu8975vU1hutxL4Dvxf1vFtZZs6OUoB/4cAD+XMb7ZgbCEpeur0tMTuE5SZOMGihaGSo= X-Received: by 2002:a63:5021:: with SMTP id e33-v6mr6877907pgb.306.1538677989155; Thu, 04 Oct 2018 11:33:09 -0700 (PDT) MIME-Version: 1.0 References: <20180824185328.GE2340@kib.kiev.ua> <4e555da7-9384-0f22-3ef9-8b3661a48529@vangyzen.net> <20180824192315.GF2340@kib.kiev.ua> <20181003213408.GV5335@kib.kiev.ua> <20181004082137.GC5335@kib.kiev.ua> <20181004092631.GD5335@kib.kiev.ua> In-Reply-To: <20181004092631.GD5335@kib.kiev.ua> From: Gleb Popov <6yearold@gmail.com> Date: Thu, 4 Oct 2018 21:32:41 +0300 Message-ID: Subject: Re: Strange hang when calling signal() To: Konstantin Belousov Cc: freebsd-hackers X-Mailman-Approved-At: Thu, 04 Oct 2018 18:40:46 +0000 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2018 18:33:11 -0000 On Thu, Oct 4, 2018 at 12:26 PM Konstantin Belousov wrote: > On Thu, Oct 04, 2018 at 11:39:21AM +0300, Gleb Popov wrote: > > On Thu, Oct 4, 2018 at 11:21 AM Konstantin Belousov > > > wrote: > > > > > On Thu, Oct 04, 2018 at 10:56:41AM +0300, Gleb Popov wrote: > > > > On Thu, Oct 4, 2018 at 12:34 AM Konstantin Belousov < > kostikbel@gmail.com > > > > > > > > wrote: > > > > > > > > > On Wed, Oct 03, 2018 at 03:18:12PM +0300, Gleb Popov wrote: > > > > > > I failed to extract a reproducing testcase from that test. The > > > extracted > > > > > > code works fine, so either I missed something, or some hidden > > > conditions > > > > > > must be fulfilled for the bug to appear. > > > > > > > > > > > > Maybe I can try to dive into libc myself? Can you give me some > > > guidance? > > > > > Or > > > > > > maybe you just build kdevelop yourself? It is a matter of > handful of > > > > > > commands. > > > > > > > > > > Can you provide me the minimal self-contained set of binaries and > > > shared > > > > > libraries and the instruction to reproduce the issue ? > > > > > > > > > > > > > Pull in all needed depndencies > > > > # pkg install kdevelop gmake cmake git > > > > > > > > Get KDevelop sources > > > > # git clone git://anongit.kde.org/kdevelop.git > > > > > > > > # Build the test executable > > > > # mkdir kdevelop/build > > > > # cd kdevelop/build > > > > # cmake .. > > > > # gmake -j4 test_qthelpplugin > > > > > > > > Run the test executable and see that it hangs > > > > # ./plugins/qthelp/tests/test_qthelpplugin testDefaultValue > > > This is exactly the opposite of 'minimal'. Provide me the tarball > which > > > have just the binary and non-base shared libs needed to reproduce. > > > > > > I am not going to install kde on my crash boxes. > > > > > > > Ok, can do that, but > > > > # ldd ./plugins/qthelp/tests/test_qthelpplugin | wc -l > > > > gives 286. Would that suit you? > As far as all the mess is extracted into a single directory and can be > removed with rm -rf, I am fine. > I understand that you are reluctant to install KDE, but this "mess" can also be removed with just # pkg delete kdevelop # pkg autoremove # rm -rf ~/kdevelop Anyway, I've copied all libraries from ldd output except base ones into a separate dir, copied the test executable, set LD_LIBRARY_PATH to "." aaaaaand the hang doesn't happen. Maybe I did something wrong?