From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: WIP: neomutt. segfaulting outside of gdb, functional inside. Date: Fri, 24 Jun 2016 16:04:43 +0000 Message-ID: <20160624155618.GA18611@shadowwalker> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGTbC-0002X7-RC for guix-devel@gnu.org; Fri, 24 Jun 2016 12:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGTb9-0008Sc-28 for guix-devel@gnu.org; Fri, 24 Jun 2016 12:04:53 -0400 Received: from 93-95-228-168.1984.is ([93.95.228.168]:59206 helo=beleriand.n0.is) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGTb8-0008SS-Kw for guix-devel@gnu.org; Fri, 24 Jun 2016 12:04:50 -0400 Received: by beleriand.n0.is (OpenSMTPD) with ESMTPSA id 7645ef39 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO for ; Fri, 24 Jun 2016 16:04:46 +0000 (UTC) Content-Disposition: inline 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 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? (define-public neomutt (package (inherit mutt) (name "neomutt") (version "20160611") (source (origin (method url-fetch) (uri (string-append "https://github.com/" name "/" name "/archive/" name "-" version ".tar.gz")) (sha256 (base32 "1v4ck1dqdmlfsbh2lwmlrx222qhs3prh72nc3a8aq282mard59zy")))) ;;(patches (search-patches "mutt-store-references.patch")))) (inputs `(("cyrus-sasl" ,cyrus-sasl) ("gdbm" ,gdbm) ("gpgme" ,gpgme) ("ncurses" ,ncurses) ("openssl" ,openssl) ("perl" ,perl) ("libxslt" ,libxslt) ("autoconf" ,autoconf) ("automake" ,automake))) ;;("libidn" ,libidn) ;;("notmuch" ,notmuch))) ;; (native-inputs ;; `(("autoconf" ,autoconf) ;; ("automake" ,automake))) ;; ;("libtool" ,libtool) ;; ;("gettext" ,gettext))) (arguments `(#:configure-flags '("--enable-smtp" "--enable-imap" "--enable-pop" "--enable-gpgme" "--enable-hcache" ; for header caching "--with-ssl" "--with-sasl" ;"--with-regex" ;"--enable-smime" ;"--enable-notmuch" ;"--with-idn" ;"--enable-sidebar" ;; so that mutt does not check whether the path ;; exists, which it does not in the chroot "--with-mailpath=/var/mail") #:phases (modify-phases %standard-phases (add-after 'unpack 'autoconf (lambda _ (zero? (system* "sh" "autoreconf" "-vfi"))))))))) ;; (system* "sh" "aclocal" "-I m4") ;; (system* "sh" "automake" "--foreign") ;; #t))))))) -- ♥Ⓐ ng0 For non-prism friendly talk find me on psyced.org / loupsycedyglgamf.onion