Bug 200053 - mail/sylpheed crashes on ARM
Summary: mail/sylpheed crashes on ARM
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Some People
Assignee: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-08 15:47 UTC by Ulrich Grey
Modified: 2015-07-06 07:15 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (ehaupt)


Attachments
sigbus fix (981 bytes, patch)
2015-06-30 18:43 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Grey 2015-05-08 15:47:32 UTC
I think this is related to the files:

.sylpheed_cache and .sylpheed_mark

in the mail folders.

If I do this in a mail folder ("Inbox" for instance):

rm .sylpheed_*
touch .sylpheed_cache .sylpheed_mark
chflags uchg .sylpheed_*

then mail/sylpheed does not crash, but it is slow showing the contents of a mail folder.
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2015-06-30 18:43:56 UTC
Created attachment 158197 [details]
sigbus fix

Hi,

The sigbus is caused by unaligned access:
Program received signal SIGBUS, Bus error.
[Switching to Thread 21c03300 (LWP 100078/sylpheed)]
procmsg_read_cache_data_str_mem (p=0xbfbff5f4, endp=0x217c4335 "", str=0x21fb8844) at procmsg.c:167
167		len = *(__packed const guint32 *)(*p);

a second sigbus is triggered in READ_CACHE_DATA_INT: n = *(const guint32 *)p;

The attached patch fixes that, tested successfully by Ulrich.

Thanks.
Comment 2 Emanuel Haupt freebsd_committer freebsd_triage 2015-07-01 07:59:11 UTC
Has this patch been submitted upstream?
Comment 3 Mikael Urankar freebsd_committer freebsd_triage 2015-07-01 08:01:06 UTC
(In reply to Emanuel Haupt from comment #2)
No
Comment 4 Emanuel Haupt freebsd_committer freebsd_triage 2015-07-06 07:04:20 UTC
Reported upstream:

http://sylpheed.sraoss.jp/redmine/issues/242
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-07-06 07:15:04 UTC
A commit references this bug:

Author: ehaupt
Date: Mon Jul  6 07:14:30 UTC 2015
New revision: 391392
URL: https://svnweb.freebsd.org/changeset/ports/391392

Log:
  Provide fix for sigbus on ARM caused by unaligned access.

  PR:		200053
  Submitted by:	mikael.urankar@gmail.com, usenet@ulrich-grey.de

Changes:
  head/mail/sylpheed/Makefile
  head/mail/sylpheed/files/patch-libsylph_procmsg.c
Comment 6 Emanuel Haupt freebsd_committer freebsd_triage 2015-07-06 07:15:28 UTC
Committed, thanks!