Bug 991027

Summary: Seamonkey Mail crashes on startup since version 2.40-2.1
Product: [openSUSE] openSUSE Tumbleweed Reporter: Björn Voigt <bjoernv>
Component: OtherAssignee: Wolfgang Rosenauer <wolfgang>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: antoine.belvire, i22a
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Stacktrace produced with "seamonkey -safe-mode --debugger gdb -mail 2>&1"

Description Björn Voigt 2016-07-28 10:16:04 UTC
Created attachment 685863 [details]
Stacktrace produced with "seamonkey -safe-mode --debugger gdb -mail 2>&1"

The latest release of Seamonkey (2.40-2.1) crashes on startup. It only crashes, if E-Mail accounts are configured in selected profile. Add-Ons do not matter, because I run Seamonkey in safe-mode for testing.

The previous version 2.40-1.12 which is still available for download is unaffected, so it can be used until this bug is fixed.

A full GDB stacktrace is attached.
Comment 1 Antoine Belvire 2016-08-07 22:41:58 UTC
It may be related to GCC 6 optimizations.

Please test Seamonkey from home:1Antoine1:branches:mozilla:Factory:
> sudo zypper ar -f obs://home:1Antoine1:branches:mozilla:Factory fix-991027
> sudo zypper dup --from fix-991027

I removed the "delete-null-pointer-checks", "lifetime-dse" and "schedule-insns2" optimizations, as suggested by LFS (http://www.linuxfromscratch.org/blfs/view/svn/xsoft/seamonkey.html). Arch Linux guys do that too (https://bugs.archlinux.org/task/49790).
Comment 2 Ian Jones 2016-08-08 09:10:38 UTC
I have applied the patch and it works. (Note that I am not the original reporter of the bug).
Comment 3 Antoine Belvire 2016-08-08 09:30:08 UTC
Rosenauer has committed its own changes (only add "-fno-delete-null-pointer-checks" and no -fno-lifetime-dse" and "-fno-schedule-insns2").

That breaks my repo, I hope it's sufficient to fix the problem (I don't use Seamonkey myself). Check mozilla:Factory repo when it's finished to build (https://build.opensuse.org/package/show/mozilla:Factory/seamonkey).

Thanks for your feedback anyway.
Comment 4 Bernhard Wiedemann 2016-08-08 10:00:39 UTC
This is an autogenerated message for OBS integration:
This bug (991027) was mentioned in
https://build.opensuse.org/request/show/417437 Factory / seamonkey
Comment 5 Björn Voigt 2016-08-08 18:26:08 UTC
(In reply to Antoine Belvire from comment #1)
> It may be related to GCC 6 optimizations.
> 
> Please test Seamonkey from home:1Antoine1:branches:mozilla:Factory:
> > sudo zypper ar -f obs://home:1Antoine1:branches:mozilla:Factory fix-991027
> > sudo zypper dup --from fix-991027
> 
> I removed the "delete-null-pointer-checks", "lifetime-dse" and
> "schedule-insns2" optimizations, as suggested by LFS
> (http://www.linuxfromscratch.org/blfs/view/svn/xsoft/seamonkey.html). Arch
> Linux guys do that too (https://bugs.archlinux.org/task/49790).

Seamonkey from Antoine's repo works for me.

(I already saw the LFS Seamonkey page, but I only tried the patch seamonkey-2.40-gcc6-1.patch which is not enough. The compiler options are needed too.)
Comment 6 Antoine Belvire 2016-08-17 16:41:55 UTC
Fix has reached Tumbleweed, closing as resolved fixed.
Comment 7 Ian Jones 2016-08-19 12:12:33 UTC
(In reply to Antoine Belvire from comment #6)
> Fix has reached Tumbleweed, closing as resolved fixed.

When will this be released? I am still getting an error.

Information for package seamonkey:
----------------------------------
Repository     : Main Repository (OSS)                         
Name           : seamonkey                                     
Version        : 2.40-4.1                                      
Arch           : i586                                          
Vendor         : openSUSE                                      
Installed Size : 117.4 MiB                                     
Installed      : Yes                                           
Status         : up-to-date                                    
Summary        : The successor of the Mozilla Application Suite

 seamonkey -new-instance
/usr/bin/seamonkey: line 140: 25715 Segmentation fault      (core dumped) $MOZ_PROGRAM "$@"
Comment 8 Antoine Belvire 2016-08-19 12:23:00 UTC
It's released.

You can check changelog:
> rpm -q --changelog seamonkey | less
to see if this bug is mentioned.

If yes, then "-fno-delete-null-pointer-checks" is not enough and Rosenauer needs to add "-fno-lifetime-dse -fno-schedule-insns2" to CFLAGS as well, and this bug needs to be reopen.

If no, check if you have the last tumbleweed snapshot (20160817).
Comment 9 Wolfgang Rosenauer 2016-08-19 13:48:46 UTC
Hmm, the no-delete-null-pointer-checks fixed it for all other Mozilla-based applications (Thunderbird and Firefox). So the expectation was that it would be enough for SeaMonkey as well.
I mean I have no objections to add a few more if really required.
Comment 10 Ian Jones 2016-08-19 14:21:44 UTC
rpm shows the patch is in place:

build with -fno-delete-null-pointer-checks for Tumbleweed/gcc6
  as long as underlying issues have been addressed upstream
  (boo#991027)
Comment 11 Antoine Belvire 2016-08-19 15:08:41 UTC
(In reply to Wolfgang Rosenauer from comment #9)
> Hmm, the no-delete-null-pointer-checks fixed it for all other Mozilla-based
> applications (Thunderbird and Firefox). So the expectation was that it would
> be enough for SeaMonkey as well.
> I mean I have no objections to add a few more if really required.

It seems they're required indeed (see comment #1 and comment #2).
Comment 12 Bernhard Wiedemann 2016-08-22 14:01:37 UTC
This is an autogenerated message for OBS integration:
This bug (991027) was mentioned in
https://build.opensuse.org/request/show/421048 Factory / seamonkey
Comment 13 Ian Jones 2016-08-30 08:13:58 UTC
It's working now for me.
Comment 14 Antoine Belvire 2016-08-30 19:02:20 UTC
Resolved fixed then.
Comment 15 Bernhard Wiedemann 2017-01-27 09:03:55 UTC
This is an autogenerated message for OBS integration:
This bug (991027) was mentioned in
https://build.opensuse.org/request/show/452887 42.1 / seamonkey
Comment 16 OBSbugzilla Bot 2021-07-08 07:30:50 UTC
This is an autogenerated message for OBS integration:
This bug (991027) was mentioned in
https://build.opensuse.org/request/show/904702 15.3 / seamonkey
Comment 17 OBSbugzilla Bot 2021-07-22 12:30:51 UTC
This is an autogenerated message for OBS integration:
This bug (991027) was mentioned in
https://build.opensuse.org/request/show/907731 15.3 / seamonkey
Comment 18 OBSbugzilla Bot 2021-08-26 17:40:51 UTC
This is an autogenerated message for OBS integration:
This bug (991027) was mentioned in
https://build.opensuse.org/request/show/914429 15.3 / seamonkey
Comment 19 OBSbugzilla Bot 2021-09-28 18:40:57 UTC
This is an autogenerated message for OBS integration:
This bug (991027) was mentioned in
https://build.opensuse.org/request/show/922046 15.3 / seamonkey
Comment 20 OBSbugzilla Bot 2021-11-16 11:41:15 UTC
This is an autogenerated message for OBS integration:
This bug (991027) was mentioned in
https://build.opensuse.org/request/show/931737 15.3 / seamonkey