#1795 new
Christophe Simonis

Crash when synchronising account

Reported by Christophe Simonis | 2017-07-03 12:09:27 UTC

Find crash report in attachment.

When running from commandline, There is no extra log helping to find what's wrong.

Comments and changes to this ticket

  • benny

    benny 2017-07-03 18:26:31 UTC

    I believe the problem is likely to be a specific email within that account. It'll be tricky for you to figure out which one, but you can probably narrow it down to a single mailbox within the account (by taking all mailboxes offline and then take them online one by one until MailMate crashes).

    If I'm right that it's the parsing of a message that crashes MailMate then we can get a copy of the email like this. Open a Terminal window and then issue this command:

    defaults write com.freron.MailMate MmDebugFetchCrash -bool YES
    

    Launch MailMate and wait for it to crash. Then try this command to see if something has been saved:

    ls /tmp/*.eml
    

    (This debug variable exists because of a similar issue long ago.)

    Let me know what you find. I'm naturally very interested in figuring out what the issue is.

  • benny

    benny 2017-07-03 18:27:04 UTC

    In order to disable the debug variable:

    defaults delete com.freron.MailMate MmDebugFetchCrash
    
  • Christophe Simonis

    Christophe Simonis 2017-07-03 18:44:36 UTC

    No luck :(

    [chs:~/] $ ls /tmp/*.eml                                                                                                                                                       20:41
    fish: No matches for wildcard '/tmp/*.eml'. See `help expand`.
    ls /tmp/*.eml
       ^
    [chs:~/]¬124 $ defaults write com.freron.MailMate MmDebugFetchCrash -bool YES                                                                                                  20:41
    [chs:~/] $ /Applications/MailMate.app/Contents/MacOS/MailMate                                                                                                                  20:42
    2017-07-03 20:42:29.368 MailMate[71652:380212] Bartender: Loaded BartenderHelperTwoOneThree
    fish: '/Applications/MailMate.app/Cont…' terminated by signal SIGBUS (Misaligned address error)
    [chs:~/]¬138 $ ls /tmp/*.eml                                                                                                                                               26s 297ms
    fish: No matches for wildcard '/tmp/*.eml'. See `help expand`.
    ls /tmp/*.eml
       ^
    [chs:~/]¬124 $
    
  • benny

    benny 2017-07-03 19:12:08 UTC

    Thanks for trying. I'm not sure why that didn't work, but I'll take a look at the code which seems to be related to the crash reports. Maybe I can spot what could trigger a crash.

    You can try the latest test release just to make sure it's not a fixed issue (I don't think it is).

  • benny

    benny 2017-07-03 19:26:47 UTC

    Ok, here's another release. Before launching it then enable this debug variable:

    defaults write com.freron.MailMate MmDebugMergeCrash -bool YES
    

    Launch from a Terminal window and there should be a lot of output. I'm mostly interested in some of the last lines I believe.

  • benny
  • Christophe Simonis

    Christophe Simonis 2017-07-03 21:51:43 UTC

    Wow! A personal build!

    Indeed, there is a lot of output (44M, non attached as it may contains sensible data).
    The important part seems to be logged to file /tmp/mailmate_logs/mailmate_parser_problems.log (see attachment)

  • benny

    benny 2017-07-04 11:02:19 UTC

    It's actually the other data I'm interested in. Not all of it, but maybe a few hundreds of the final lines. I'm looking for a string which I think causes part of my code to go into an infinite loop. These lines start with Merge.

    You can send it to me privately if the content is sensitive in any way.

    Thanks in advance.

  • benny

    benny 2017-07-04 21:45:35 UTC

    • State changed from “new” to “fixcommitted”

    Try this test release.

    The email triggering this is really weird, but it exists and therefore MailMate should be able to handle it. Let me know whether or not it works now.

  • Christophe Simonis

    Christophe Simonis 2017-07-04 22:04:17 UTC

    Thank you.
    The bug has been fixed. I can finally read my emails.

  • benny

    benny 2017-09-22 12:54:57 UTC

    • State changed from “fixcommitted” to “fixreleased”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages