azynheira / mu0

Automatically exported from code.google.com/p/mu0
0 stars 0 forks source link

mu view -> Core Dump #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
mu view '/path/to/mbox'

Command always seems to give a Core Dump on FreeBSD 8.1-RELEASE (GENERIC)

On all messages...

Version 9.9.9_1 (ports) and 9.9.9.5 (git)

Any clues on that one?

I've attached a Core Dump file and the mbox message...

Original issue reported on code.google.com by jan.catr...@gmail.com on 17 Apr 2013 at 6:34

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks! I've checked, pushed a candidate fix. Can you see if fixes the problem?

--Dirk.

Original comment by digg...@gmail.com on 17 Apr 2013 at 9:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Still a core dump... I used this commit: "mu: fix some valgrind reports", is 
that the one? I patched the official 9.9.5 version with that commit...

I've attached a core dump...

Original comment by jan.catr...@gmail.com on 18 Apr 2013 at 10:30

GoogleCodeExporter commented 8 years ago
I tried the complete master branch... Same issue...

Regs,
Jan

Original comment by jan.catr...@gmail.com on 18 Apr 2013 at 1:14

GoogleCodeExporter commented 8 years ago
Can you send me a (textual) backtrace? I don't have the tools to read the 
FreeBSD core file. Thanks!

Original comment by digg...@gmail.com on 18 Apr 2013 at 1:31

GoogleCodeExporter commented 8 years ago
[root@www]/root: gdb mu
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
(gdb) run view '/usr/local/users/pst.maildir/.backup 2012 pxm.backup 2012 
pxm.Postvak IN.mbox/cur/1357808791.000597.mbox:2,S'
Starting program: /usr/local/bin/mu view '/usr/local/users/pst.maildir/.backup 
2012 pxm.backup 2012 pxm.Postvak IN.mbox/cur/1357808791.000597.mbox:2,S'
[New LWP 101750]
[New Thread 803a041c0 (LWP 101750)]
From: Jan Catrysse <j.catrysse@proximedia.be>
To: Nathalie Goossens <n.goossens@proximedia.be>
Subject: RE: Opname bijwonen DE FRUITFABRIEK
Date: Wed Dec 19 13:24:41 2012

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 803a041c0 (LWP 101750)]
0x0000000000433f1d in mu_util_fputs_encoded (
    str=0x803a81500 "Ja, dat is goed\n\n\nNathalie Goossens <n.goossens@proximedia.be> schreef:\n\n\tMoet ik ons inschrijven?\n\n\t\n\n\t \n\n\t \n\n\tVan: Jan Catrysse [mailto:j.catrysse@proximedia.be] \n\tVerzonden: woensdag 19 december 20"..., stream=0x8021db830) at mu-util.c:462
462     mu-util.c: No such file or directory.
        in mu-util.c
Current language:  auto; currently c
(gdb) bt full
#0  0x0000000000433f1d in mu_util_fputs_encoded (
    str=0x803a81500 "Ja, dat is goed\n\n\nNathalie Goossens <n.goossens@proximedia.be> schreef:\n\n\tMoet ik ons inschrijven?\n\n\t\n\n\t \n\n\t \n\n\tVan: Jan Catrysse [mailto:j.catrysse@proximedia.be] \n\tVerzonden: woensdag 19 december 20"..., stream=0x8021db830) at mu-util.c:462
        err = (GError *) 0x800000000
        bytes = 1202
        conv = 0x0
        rv = 8
        __PRETTY_FUNCTION__ = "mu_util_fputs_encoded"
        __FUNCTION__ = "mu_util_fputs_encoded"
#1  0x0000000000434162 in print_args (stream=0x8021db830, frm=0x43c2f7 "%s", 
args=0x7fffffffe7e0) at mu-util.c:509
        str = (
    gchar *) 0x803a81500 "Ja, dat is goed\n\n\nNathalie Goossens <n.goossens@proximedia.be> schreef:\n\n\tMoet ik ons inschrijven?\n\n\t\n\n\t \n\n\t \n\n\tVan: Jan Catrysse [mailto:j.catrysse@proximedia.be] \n\tVerzonden: woensdag 19 december 20"...
        rv = 8
#2  0x0000000000434297 in mu_util_print_encoded (frm=0x43c2f7 "%s") at 
mu-util.c:526
        args = {{gp_offset = 16, fp_offset = 48, overflow_arg_area = 0x7fffffffe8c0, reg_save_area = 0x7fffffffe800}}
        rv = 8
        __PRETTY_FUNCTION__ = "mu_util_print_encoded"
#3  0x00000000004123a5 in body_or_summary (msg=0x803a18c60, opts=0x54d2c0) at 
mu-cmd.c:144
        body = 0x803a7f000 "Ja, dat is goed\n\n\nNathalie Goossens <n.goossens@proximedia.be> schreef:\n\n\tMoet ik ons inschrijven?\n\n\t\n\n\t \n\n\t \n\n\tVan: Jan Catrysse [mailto:j.catrysse@proximedia.be] \n\tVerzonden: woensdag 19 december 20"...
        color = 1
#4  0x000000000041251c in view_msg_plain (msg=0x803a18c60, opts=0x54d2c0) at 
mu-cmd.c:185
        attachs = (gchar *) 0x0
        date = 1355919881
        lst = (const GSList *) 0x0
        color = 1
#5  0x000000000041259a in handle_msg (
    fname=0x803a42160 "/usr/local/users/pst.maildir/.backup 2012 pxm.backup 2012 pxm.Postvak IN.mbox/cur/1357808791.000597.mbox:2,S", opts=0x54d2c0, err=0x0)
    at mu-cmd.c:204
        msg = (MuMsg *) 0x803a18c60
        rv = 0
#6  0x0000000000412736 in mu_cmd_view (opts=0x54d2c0, err=0x7fffffffea38) at 
mu-cmd.c:259
        i = 1
        rv = 1
        __PRETTY_FUNCTION__ = "mu_cmd_view"
#7  0x000000000041301d in mu_cmd_execute (opts=0x54d2c0, err=0x7fffffffea38) at 
mu-cmd.c:615
        merr = MU_OK
        __PRETTY_FUNCTION__ = "mu_cmd_execute"
#8  0x000000000040a512 in main (argc=1, argv=0x7fffffffeaa8) at mu.cc:113
        err = (GError *) 0x0
        rv = MU_OK
        conf = (MuConfig *) 0x54d2c0
(gdb)

Original comment by jan.catr...@gmail.com on 19 Apr 2013 at 1:21

GoogleCodeExporter commented 8 years ago
Any updates on this issue?

Original comment by jan.catr...@gmail.com on 30 Apr 2013 at 12:57

GoogleCodeExporter commented 8 years ago
Thanks -- and sorry for the delay; I usually check the github issue list. 
Anyway, I've made some minor change in the code, but it's not clear what's 
going on here.

Are you still seeing crashes? If it's only with this particular e-mail, it'd be 
useful if I could get that one (of course, feel free to strip any personal 
information -- as long as the crash still happens).

Original comment by digg...@gmail.com on 14 Aug 2013 at 7:02

GoogleCodeExporter commented 8 years ago
Hi,

No problem, thank you for your feedback. The problem is not solved.
I've attached the e-mail and this is the full backtrace.

Regs,
Jan

[root@www]/root: gdb mu
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
(gdb) run view "/usr/local/users/pst.maildir/.backup 2012 pxm.backup 2012 
pxm.Postvak IN.mbox/cur/1357808791.002525.mbox:2,S"
Starting program: /usr/local/bin/mu view "/usr/local/users/pst.maildir/.backup 
2012 pxm.backup 2012 pxm.Postvak IN.mbox/cur/1357808791.002525.mbox:2,S"
[New LWP 101005]
[New Thread 803e041c0 (LWP 101005)]
From: Nele De Vriendt <nele@nise-solutions.be>

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 803e041c0 (LWP 101005)]
0x0000000000434a9d in mu_util_fputs_encoded (
    str=0x803e21800 "Willaert David <davidwillaert@gmail.com>, Casneuf Annelies <Annelies.Casneuf@nuance.com>, Dominique Van den Hove <dominiquevdh@hotmail.com>, Robbens Sven <s.robbens@gmail.com>, Wendy Lee <wendy_lee28@"..., stream=0x80242e830) at mu-util.c:460
460     mu-util.c: No such file or directory.
        in mu-util.c
Current language:  auto; currently c
(gdb) bt full
#0  0x0000000000434a9d in mu_util_fputs_encoded (
    str=0x803e21800 "Willaert David <davidwillaert@gmail.com>, Casneuf Annelies <Annelies.Casneuf@nuance.com>, Dominique Van den Hove <dominiquevdh@hotmail.com>, Robbens Sven <s.robbens@gmail.com>, Wendy Lee <wendy_lee28@"..., stream=0x80242e830) at mu-util.c:460
        err = (GError *) 0x800000000
        bytes = 411
        conv = 0x0
        rv = 32767
        __PRETTY_FUNCTION__ = "mu_util_fputs_encoded"
        __FUNCTION__ = "mu_util_fputs_encoded"
#1  0x0000000000412f23 in print_field (field=0x43dc31 "To",
    val=0x803e21800 "Willaert David <davidwillaert@gmail.com>, Casneuf Annelies <Annelies.Casneuf@nuance.com>, Dominique Van den Hove <dominiquevdh@hotmail.com>, Robbens Sven <s.robbens@gmail.com>, Wendy Lee <wendy_lee28@"..., color=1) at mu-cmd.c:106
No locals.
#2  0x0000000000413114 in view_msg_plain (msg=0x803e1ae90, opts=0x54f6c0) at 
mu-cmd.c:164
        attachs = (gchar *) 0x0
        date = 0
        lst = (const GSList *) 0x803e42160
        color = 1
#3  0x000000000041328a in handle_msg (
    fname=0x803e42160 "/usr/local/users/pst.maildir/.backup 2012 pxm.backup 2012 pxm.Postvak IN.mbox/cur/1357808791.002525.mbox:2,S", opts=0x54f6c0, err=0x0)
    at mu-cmd.c:204
        msg = (MuMsg *) 0x803e1ae90
        rv = 0
#4  0x0000000000413426 in mu_cmd_view (opts=0x54f6c0, err=0x7fffffffea48) at 
mu-cmd.c:259
        i = 1
        rv = 1
        __PRETTY_FUNCTION__ = "mu_cmd_view"
#5  0x000000000041415d in mu_cmd_execute (opts=0x54f6c0, err=0x7fffffffea48) at 
mu-cmd.c:605
        merr = MU_OK
        __PRETTY_FUNCTION__ = "mu_cmd_execute"
#6  0x000000000040b062 in main (argc=1, argv=0x7fffffffeab0) at mu.cc:120
        err = (GError *) 0x0
        rv = MU_OK
        conf = (MuConfig *) 0x54f6c0
(gdb) quit
The program is running.  Exit anyway? (y or n) y
[root@www]/root:

Original comment by jan.catr...@gmail.com on 5 Sep 2013 at 4:50

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks! I don't have a FreeBSD system handy, but some people on MacOS were 
reporting similar stack traces... 

With your message I have been able to reproduce it now, when the locale is set 
to non-UTF8, and only when *not* running inside gdb -- a true heisenbug.

It seems that g_locale_from_utf8 behaves a bit differently on macos/bsd... I've 
pushed a workaround which, at least on macos, avoids the problem. can you give 
it a try?

Original comment by digg...@gmail.com on 7 Sep 2013 at 3:42

GoogleCodeExporter commented 8 years ago
Like a charm :-)

Thnx

Original comment by jan.catr...@gmail.com on 11 Sep 2013 at 9:08

GoogleCodeExporter commented 8 years ago
Okay, closing this.

Original comment by digg...@gmail.com on 21 Dec 2013 at 6:29