From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Paul Schmidt Subject: Re: WIP: neomutt. segfaulting outside of gdb, functional inside. Date: Wed, 29 Jun 2016 11:54:13 +0200 Message-ID: <57739AC5.4000107@gmx.net> References: <20160624155618.GA18611@shadowwalker> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bICCK-0006Wv-Je for guix-devel@gnu.org; Wed, 29 Jun 2016 05:54:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bICCH-0007hQ-2U for guix-devel@gnu.org; Wed, 29 Jun 2016 05:54:20 -0400 Received: from mout.gmx.net ([212.227.17.20]:55631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bICCG-0007h7-OX for guix-devel@gnu.org; Wed, 29 Jun 2016 05:54:16 -0400 Received: from [129.70.76.160] ([129.70.76.160]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LejNC-1bgoie0X0w-00qQDT for ; Wed, 29 Jun 2016 11:54:14 +0200 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org On 27.06.2016 09:58, Ricardo Wurmus wrote: > ng0 writes: > >> In gnu/packages/mail.scm I created this package. >> It builds succesfully, but when I run it, it segfaults. >> Running it in gdb however makes it succeed and not >> segfault. How do I debug such a software? > Have you tried running with “strace -f” to see what it appears to be > doing when the segfault occurs? > Another option would be a tool like valgrind (memcheck, etc..). Regards, Flo