unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* WIP: neomutt. segfaulting outside of gdb, functional inside.
@ 2016-06-24 16:04 ng0
  2016-06-27  7:58 ` Ricardo Wurmus
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: ng0 @ 2016-06-24 16:04 UTC (permalink / raw)
  To: guix-devel

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WIP: neomutt. segfaulting outside of gdb, functional inside.
  2016-06-24 16:04 WIP: neomutt. segfaulting outside of gdb, functional inside ng0
@ 2016-06-27  7:58 ` Ricardo Wurmus
  2016-06-29  9:54   ` Florian Paul Schmidt
  2016-07-26 15:17   ` [PATCH] gnu: Add neomutt ng0
  2016-07-26 18:47 ` WIP: neomutt. segfaulting outside of gdb, functional inside Tomáš Čech
  2016-08-03 10:30 ` Tomáš Čech
  2 siblings, 2 replies; 12+ messages in thread
From: Ricardo Wurmus @ 2016-06-27  7:58 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel


ng0 <ng0@we.make.ritual.n0.is> 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?

~~ Ricardo

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WIP: neomutt. segfaulting outside of gdb, functional inside.
  2016-06-27  7:58 ` Ricardo Wurmus
@ 2016-06-29  9:54   ` Florian Paul Schmidt
  2016-07-26 15:17   ` [PATCH] gnu: Add neomutt ng0
  1 sibling, 0 replies; 12+ messages in thread
From: Florian Paul Schmidt @ 2016-06-29  9:54 UTC (permalink / raw)
  To: guix-devel



On 27.06.2016 09:58, Ricardo Wurmus wrote:
> ng0 <ng0@we.make.ritual.n0.is> 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH] gnu: Add neomutt.
  2016-06-27  7:58 ` Ricardo Wurmus
  2016-06-29  9:54   ` Florian Paul Schmidt
@ 2016-07-26 15:17   ` ng0
  2016-07-26 15:22     ` ng0
  1 sibling, 1 reply; 12+ messages in thread
From: ng0 @ 2016-07-26 15:17 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Hi,

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:

> ng0 <ng0@we.make.ritual.n0.is> writes:
>
>> In gnu/packages/mail.scm I created this package.
>> It builds succesfully, but when I run it, it segfaults.

A version bump fixed this.
Fixed, if the problem was not getting into the application and exiting,
this is now possible.

>> 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?
>
> ~~ Ricardo

Email in general makes me angry at the moment and I'm looking
for a fix to the many many messages I have, so I'm looking to use this
again in combination with notmuch instead of Gnus to see if it makes me
less angry and gets me faster down to almost zero inbox.

Configure "--enable-notmuch" requires gmime fix as it depends on notmuch
and then on emacs which in turn requires this fix, this is disabled now.
neomutt has many features, the ones I enable are the most obvious ones
to me.


From a530c2b70e8216d54dd48e1ca2ef5853c4b08f3f Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Tue, 26 Jul 2016 14:15:55 +0000
Subject: [PATCH] gnu: Add neomutt.

* gnu/packages/mail.scm (neomutt): New variable.

Signed-off-by: ng0 <ng0@we.make.ritual.n0.is>
---
 gnu/packages/mail.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 9214b73..24638a6 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
 ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
+;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -214,6 +215,55 @@ aliasing facilities to work just as they would on normal mail.")
 operating systems.")
     (license gpl2+)))

+(define-public neomutt
+  (package
+    (inherit mutt)
+    (name "neomutt")
+    (version "20160723")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/" name "/" name
+                           "/archive/" name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "038f7g3hwbb9cxmxq69gx01cw6ayxscbgsqblksrfsqf7fggxvnh"))))
+    (inputs
+     `(("cyrus-sasl" ,cyrus-sasl)
+       ("gdbm" ,gdbm)
+       ("gpgme" ,gpgme)
+       ("ncurses" ,ncurses)
+       ("openssl" ,openssl)
+       ("perl" ,perl)
+       ("libxslt" ,libxslt)
+       ("libidn" ,libidn)))
+       ;;("notmuch" ,notmuch))) ; enable once gmime is fixed
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("pkg-config" ,pkg-config)))
+    (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" ; enable once gmime is fixed
+         "--with-idn"
+         ;; 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")))))))))
+
 (define-public gmime
   (package
     (name "gmime")
--
2.9.1


--
♥Ⓐ  ng0
Current Keys: https://we.make.ritual.n0.is/ng0.txt
For non-prism friendly talk find me on http://www.psyced.org

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] gnu: Add neomutt.
  2016-07-26 15:17   ` [PATCH] gnu: Add neomutt ng0
@ 2016-07-26 15:22     ` ng0
  2016-07-26 17:12       ` ng0
  0 siblings, 1 reply; 12+ messages in thread
From: ng0 @ 2016-07-26 15:22 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Correction.

Segfaults when new emails are being added.
This is close to working, but needs some more fixes.

ng0 <ng0@we.make.ritual.n0.is> writes:

> Hi,
>
> Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:
>
>> ng0 <ng0@we.make.ritual.n0.is> writes:
>>
>>> In gnu/packages/mail.scm I created this package.
>>> It builds succesfully, but when I run it, it segfaults.
>
> A version bump fixed this.
> Fixed, if the problem was not getting into the application and exiting,
> this is now possible.
>
>>> 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?
>>
>> ~~ Ricardo
>
> Email in general makes me angry at the moment and I'm looking
> for a fix to the many many messages I have, so I'm looking to use this
> again in combination with notmuch instead of Gnus to see if it makes me
> less angry and gets me faster down to almost zero inbox.
>
> Configure "--enable-notmuch" requires gmime fix as it depends on notmuch
> and then on emacs which in turn requires this fix, this is disabled now.
> neomutt has many features, the ones I enable are the most obvious ones
> to me.
>
>
> From a530c2b70e8216d54dd48e1ca2ef5853c4b08f3f Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Tue, 26 Jul 2016 14:15:55 +0000
> Subject: [PATCH] gnu: Add neomutt.
>
> * gnu/packages/mail.scm (neomutt): New variable.
>
> Signed-off-by: ng0 <ng0@we.make.ritual.n0.is>
> ---
>  gnu/packages/mail.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 50 insertions(+)
>
> diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
> index 9214b73..24638a6 100644
> --- a/gnu/packages/mail.scm
> +++ b/gnu/packages/mail.scm
> @@ -15,6 +15,7 @@
>  ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
>  ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
>  ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
> +;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -214,6 +215,55 @@ aliasing facilities to work just as they would on normal mail.")
>  operating systems.")
>      (license gpl2+)))
>
> +(define-public neomutt
> +  (package
> +    (inherit mutt)
> +    (name "neomutt")
> +    (version "20160723")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://github.com/" name "/" name
> +                           "/archive/" name "-" version ".tar.gz"))
> +       (sha256
> +        (base32
> +         "038f7g3hwbb9cxmxq69gx01cw6ayxscbgsqblksrfsqf7fggxvnh"))))
> +    (inputs
> +     `(("cyrus-sasl" ,cyrus-sasl)
> +       ("gdbm" ,gdbm)
> +       ("gpgme" ,gpgme)
> +       ("ncurses" ,ncurses)
> +       ("openssl" ,openssl)
> +       ("perl" ,perl)
> +       ("libxslt" ,libxslt)
> +       ("libidn" ,libidn)))
> +       ;;("notmuch" ,notmuch))) ; enable once gmime is fixed
> +    (native-inputs
> +     `(("autoconf" ,autoconf)
> +       ("automake" ,automake)
> +       ("pkg-config" ,pkg-config)))
> +    (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" ; enable once gmime is fixed
> +         "--with-idn"
> +         ;; 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")))))))))
> +
>  (define-public gmime
>    (package
>      (name "gmime")
> --
> 2.9.1
>
>
> --
> ♥Ⓐ  ng0
> Current Keys: https://we.make.ritual.n0.is/ng0.txt
> For non-prism friendly talk find me on http://www.psyced.org
>

-- 
♥Ⓐ  ng0
Current Keys: https://we.make.ritual.n0.is/ng0.txt
For non-prism friendly talk find me on http://www.psyced.org

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] gnu: Add neomutt.
  2016-07-26 15:22     ` ng0
@ 2016-07-26 17:12       ` ng0
  0 siblings, 0 replies; 12+ messages in thread
From: ng0 @ 2016-07-26 17:12 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 3839 bytes --]

It's not functional yet, but this reflects my work in progress.

From 4bf9dd1e37bfba583fcf2d9a1c749c535eedf612 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Tue, 26 Jul 2016 14:15:55 +0000
Subject: [PATCH] gnu: Add neomutt.

* gnu/packages/mail.scm (neomutt): New variable.

Signed-off-by: ng0 <ng0@we.make.ritual.n0.is>
---
 gnu/packages/mail.scm | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 9214b73..b54127d 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
 ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
+;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -72,6 +73,7 @@
   #:use-module (gnu packages tls)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
+  #:use-module (gnu packages docbook)
   #:use-module ((guix licenses)
                 #:select (gpl2 gpl2+ gpl3 gpl3+ lgpl2.1 lgpl2.1+ lgpl3+
                            non-copyleft (expat . license:expat)))
@@ -214,6 +216,76 @@ aliasing facilities to work just as they would on normal mail.")
 operating systems.")
     (license gpl2+)))

+(define-public neomutt
+  (package
+    (inherit mutt)
+    (name "neomutt")
+    (version "20160723")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/" name "/" name
+                           "/archive/" name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "038f7g3hwbb9cxmxq69gx01cw6ayxscbgsqblksrfsqf7fggxvnh"))))
+    (inputs
+     `(("cyrus-sasl" ,cyrus-sasl)
+       ("gdbm" ,gdbm)
+       ("gpgme" ,gpgme)
+       ("ncurses" ,ncurses) ; ncurses or slang
+       ("gnutls" ,gnutls)
+       ("openssl" ,openssl) ; smime
+       ("perl" ,perl)
+       ("libxslt" ,libxslt)
+       ("libidn" ,libidn)
+       ("libxml2" ,libxml2)
+       ("docbook-xsl" ,docbook-xsl)))
+       ;;("notmuch" ,notmuch))) ; enable once gmime is fixed
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("pkg-config" ,pkg-config)))
+    (arguments
+     `(#:configure-flags
+       (list "--enable-smtp"
+             "--enable-imap"
+             "--enable-pop"
+             "--enable-gpgme"
+
+             ;; header caching and a database
+             "--without-tokyocabinet"
+             "--without-qdbm"
+             "--without-bdb"
+             "--without-lmdb"
+             "--with-gdbm"
+             "--enable-hcache" ; for header caching
+
+             "--with-gnutls"
+             "--without-ssl"
+             "--with-sasl"
+
+             "--with-regex"
+             "--enable-smime"
+             ;;"--enable-notmuch" ; enable once gmime is fixed
+             "--with-idn"
+
+             ;; so that mutt does not check whether the path
+             ;; exists, which it does not in the chroot
+             "--with-mailpath=/var/mail"
+
+             "--with-external-dotlock"
+             "--enable-nntp"
+             "--enable-compressed"
+
+             (string-append "--with-curses="
+                            (assoc-ref %build-inputs "ncurses")))
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'autoconf
+           (lambda _
+             (zero? (system* "sh" "autoreconf" "-vfi")))))))))
+
 (define-public gmime
   (package
     (name "gmime")
--
2.9.1


--
♥Ⓐ  ng0
Current Keys: https://we.make.ritual.n0.is/ng0.txt
For non-prism friendly talk find me on http://www.psyced.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: WIP: neomutt. segfaulting outside of gdb, functional inside.
  2016-06-24 16:04 WIP: neomutt. segfaulting outside of gdb, functional inside ng0
  2016-06-27  7:58 ` Ricardo Wurmus
@ 2016-07-26 18:47 ` Tomáš Čech
  2016-07-29 14:56   ` ng0
  2016-08-03 10:30 ` Tomáš Čech
  2 siblings, 1 reply; 12+ messages in thread
From: Tomáš Čech @ 2016-07-26 18:47 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]

On Fri, Jun 24, 2016 at 04:04:43PM +0000, ng0 wrote:
>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?

Let it generate coredump and open that in GDB.

S_W

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WIP: neomutt. segfaulting outside of gdb, functional inside.
  2016-07-26 18:47 ` WIP: neomutt. segfaulting outside of gdb, functional inside Tomáš Čech
@ 2016-07-29 14:56   ` ng0
  2016-07-31 10:52     ` Danny Milosavljevic
  0 siblings, 1 reply; 12+ messages in thread
From: ng0 @ 2016-07-29 14:56 UTC (permalink / raw)
  To: guix-devel

Tomáš Čech <sleep_walker@gnu.org> writes:

> On Fri, Jun 24, 2016 at 04:04:43PM +0000, ng0 wrote:
>>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?
>
> Let it generate coredump and open that in GDB.
>
> S_W

Thanks, I'll look into how to do this and see if I can get further
results with this.
-- 
♥Ⓐ  ng0
Current Keys: https://we.make.ritual.n0.is/ng0.txt
For non-prism friendly talk find me on http://www.psyced.org

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WIP: neomutt. segfaulting outside of gdb, functional inside.
  2016-07-29 14:56   ` ng0
@ 2016-07-31 10:52     ` Danny Milosavljevic
  0 siblings, 0 replies; 12+ messages in thread
From: Danny Milosavljevic @ 2016-07-31 10:52 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

On Fri, 29 Jul 2016 14:56:37 +0000
ng0 <ng0@we.make.ritual.n0.is> wrote:

> Tomáš Čech <sleep_walker@gnu.org> writes:
> 
> > On Fri, Jun 24, 2016 at 04:04:43PM +0000, ng0 wrote:  
> >>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?  
> >
> > Let it generate coredump and open that in GDB.
> >
> > S_W  
> 
> Thanks, I'll look into how to do this and see if I can get further
> results with this.

$ ulimit -c unlimited
$ neomutt # in the same shell!
$ gdb `which neomutt` core*

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WIP: neomutt. segfaulting outside of gdb, functional inside.
  2016-06-24 16:04 WIP: neomutt. segfaulting outside of gdb, functional inside ng0
  2016-06-27  7:58 ` Ricardo Wurmus
  2016-07-26 18:47 ` WIP: neomutt. segfaulting outside of gdb, functional inside Tomáš Čech
@ 2016-08-03 10:30 ` Tomáš Čech
  2016-08-03 12:27   ` ng0
  2 siblings, 1 reply; 12+ messages in thread
From: Tomáš Čech @ 2016-08-03 10:30 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 365 bytes --]

On Fri, Jun 24, 2016 at 04:04:43PM +0000, ng0 wrote:
>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?

I applied the patch and built neomutt. Works for me. I'd commit your
patch and solve your issue as bug.

S_W

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WIP: neomutt. segfaulting outside of gdb, functional inside.
  2016-08-03 10:30 ` Tomáš Čech
@ 2016-08-03 12:27   ` ng0
  2016-08-03 13:10     ` Tomáš Čech
  0 siblings, 1 reply; 12+ messages in thread
From: ng0 @ 2016-08-03 12:27 UTC (permalink / raw)
  To: Tomáš Čech, guix-devel

Tomáš Čech <sleep_walker@gnu.org> writes:

> On Fri, Jun 24, 2016 at 04:04:43PM +0000, ng0 wrote:
>>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?
>
> I applied the patch and built neomutt. Works for me. I'd commit your
> patch and solve your issue as bug.
>
> S_W
The latest version of the patch with the more recent neomutt version?

I had no time to further debug this.
Do you mean my runtime problem is unique and you were able to run and
use it without segfault?

It's okay to commit I think. I had hessitations with lispf4 which is
also bugged on Guix, but it was commited too.

Any other opinions on this?
-- 
♥Ⓐ  ng0
Current Keys: https://we.make.ritual.n0.is/ng0.txt
For non-prism friendly talk find me on http://www.psyced.org

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: WIP: neomutt. segfaulting outside of gdb, functional inside.
  2016-08-03 12:27   ` ng0
@ 2016-08-03 13:10     ` Tomáš Čech
  0 siblings, 0 replies; 12+ messages in thread
From: Tomáš Čech @ 2016-08-03 13:10 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 868 bytes --]

On Wed, Aug 03, 2016 at 12:27:07PM +0000, ng0 wrote:
>Tomáš Čech <sleep_walker@gnu.org> writes:
>
>> On Fri, Jun 24, 2016 at 04:04:43PM +0000, ng0 wrote:
>>>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?
>>
>> I applied the patch and built neomutt. Works for me. I'd commit your
>> patch and solve your issue as bug.
>>
>> S_W
>The latest version of the patch with the more recent neomutt version?

Yes. /gnu/store/bx3krsvdq3n9l3y8awdvm4kzm5zbz237-neomutt-20160723/


>I had no time to further debug this.
>Do you mean my runtime problem is unique and you were able to run and
>use it without segfault?

Yes. It may be related to your configuration, I haven't had a problem.

S_W

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-08-03 13:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24 16:04 WIP: neomutt. segfaulting outside of gdb, functional inside ng0
2016-06-27  7:58 ` Ricardo Wurmus
2016-06-29  9:54   ` Florian Paul Schmidt
2016-07-26 15:17   ` [PATCH] gnu: Add neomutt ng0
2016-07-26 15:22     ` ng0
2016-07-26 17:12       ` ng0
2016-07-26 18:47 ` WIP: neomutt. segfaulting outside of gdb, functional inside Tomáš Čech
2016-07-29 14:56   ` ng0
2016-07-31 10:52     ` Danny Milosavljevic
2016-08-03 10:30 ` Tomáš Čech
2016-08-03 12:27   ` ng0
2016-08-03 13:10     ` Tomáš Čech

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).