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