GNU bug report logs - #43610
IceCat segfault

Previous Next

Package: guix;

Reported by: Dominik Delgado <d <at> delgado.nrw>

Date: Fri, 25 Sep 2020 13:27:01 UTC

Severity: important

Tags: notabug

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43610 in the body.
You can then email your comments to 43610 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Fri, 25 Sep 2020 13:27:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to raingloom <raingloom <at> riseup.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 25 Sep 2020 13:27:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: raingloom <raingloom <at> riseup.net>
To: Guix Bugs <bug-guix <at> gnu.org>
Subject: IceCat segfault
Date: Fri, 25 Sep 2020 15:26:09 +0200
Haven't had time to look deeper into it yet. It worked in my profile
from sept 11, it broke after pulling and upgrading yesterday.
Idk what my commit is because I'm using a private branch.




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Fri, 25 Sep 2020 16:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: raingloom <raingloom <at> riseup.net>, 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Fri, 25 Sep 2020 12:11:10 -0400
Hi,

raingloom <raingloom <at> riseup.net> writes:
> Haven't had time to look deeper into it yet. It worked in my profile
> from sept 11, it broke after pulling and upgrading yesterday.
> Idk what my commit is because I'm using a private branch.

On Sept 22, I pushed a major update of IceCat from 68.12.0 to 78.3.0:

  commit c7011ff850420fdbe1319b3d218bd362f2f9d618
  Author: Mark H Weaver <mhw <at> netris.org>
  Date:   Sun Sep 6 21:47:33 2020 -0400

  gnu: icecat: Update to 78.3.0-guix0-preview1 [security-fixes].
  
  Includes fixes for CVE-2020-15673, CVE-2020-15676, CVE-2020-15677, and
  CVE-2020-15678.

  [...]

More details would be helpful.  For example, it's not clear from your
report whether it segfaults immediately on startup or sometime later,
whether a window appears, etc.  Also, are you using Guix on top of a
foreign distro, or natively?  Wayland or X?

It would also be useful to know how IceCat 78 behaves on your system
with a fresh profile.  Try it by running "icecat -p", creating a new
profile from the profile manager window, and then starting icecat with
that new profile selected.  If that works, it would then be useful to
try adding back any extensions that were installed in the profile that
crashed, and see if that makes a difference.

      Thanks,
        Mark




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Sat, 26 Sep 2020 02:35:01 GMT) Full text and rfc822 format available.

Message #11 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: raingloom <raingloom <at> riseup.net>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Sat, 26 Sep 2020 04:34:25 +0200
On Fri, 25 Sep 2020 12:11:10 -0400
Mark H Weaver <mhw <at> netris.org> wrote:

> Hi,
> 
> raingloom <raingloom <at> riseup.net> writes:
> > Haven't had time to look deeper into it yet. It worked in my profile
> > from sept 11, it broke after pulling and upgrading yesterday.
> > Idk what my commit is because I'm using a private branch.  
> 
> On Sept 22, I pushed a major update of IceCat from 68.12.0 to 78.3.0:
> 
>   commit c7011ff850420fdbe1319b3d218bd362f2f9d618
>   Author: Mark H Weaver <mhw <at> netris.org>
>   Date:   Sun Sep 6 21:47:33 2020 -0400
> 
>   gnu: icecat: Update to 78.3.0-guix0-preview1 [security-fixes].
>   
>   Includes fixes for CVE-2020-15673, CVE-2020-15676, CVE-2020-15677,
> and CVE-2020-15678.
> 
>   [...]
> 
> More details would be helpful.  For example, it's not clear from your
> report whether it segfaults immediately on startup or sometime later,
> whether a window appears, etc.  Also, are you using Guix on top of a
> foreign distro, or natively?  Wayland or X?
> 
> It would also be useful to know how IceCat 78 behaves on your system
> with a fresh profile.  Try it by running "icecat -p", creating a new
> profile from the profile manager window, and then starting icecat with
> that new profile selected.  If that works, it would then be useful to
> try adding back any extensions that were installed in the profile that
> crashed, and see if that makes a difference.
> 
>       Thanks,
>         Mark

It crashed immediately without any visible activity.
It does start up properly with a fresh profile. I'll try to bisect the
addons list later.

Tbh this would be a good time to have a debug output for IceCat on hand.




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Sat, 26 Sep 2020 18:08:02 GMT) Full text and rfc822 format available.

Message #14 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: raingloom <raingloom <at> riseup.net>
Cc: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Sat, 26 Sep 2020 14:05:53 -0400
Hi,

raingloom <raingloom <at> riseup.net> writes:
> It crashed immediately without any visible activity.

Okay.

> It does start up properly with a fresh profile. I'll try to bisect the
> addons list later.

In the meantime, to start IceCat 78 with your existing profile but with
addons temporarily disabled, try running:

  icecat -safe-mode

That should allow you to recover your existing bookmarks, history,
cookies, saved passwords, tabs, etc.  Then you can try adding back your
preferred addons incrementally to find out which one is causing the
problem.

> Tbh this would be a good time to have a debug output for IceCat on hand.

While I acknowledge that it might occasionally be useful in edge cases
like this, it would also dramatically increase the memory requirements
at build time.  For what it's worth, in the ~6 years that I've been
maintaining the IceCat package in Guix, I don't recall being asked for a
debug output before now.

I'm particularly sensitive to the memory requirements at build time,
because I choose not to trust the build farm and therefore to build my
entire Guix system with GNOME from source code on a relatively old
Thinkpad X200 with only 4 GB of RAM.  I've been doing this for many
years, and I'd like to enable other Guix users to do so if they wish.

My impression is that IceCat debug outputs would primarily useful to
people who are actively developing IceCat, in which case it makes more
sense to build it manually to allow incremental rebuilds after modifying
the source code.

If it turns out that there's more interest in IceCat debug outputs than
I've anticipated (others: please speak up if you need this!), I'm not
necessarily opposed to adding them, but someone with a more powerful
machine would need to take over maintenance of our IceCat package,
because I would be unable to locally test the official build.

What do you think?  Do other people need IceCat 'debug' outputs?

      Thanks,
        Mark




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Sun, 27 Sep 2020 05:50:02 GMT) Full text and rfc822 format available.

Message #17 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: raingloom <raingloom <at> riseup.net>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Sun, 27 Sep 2020 07:49:37 +0200
On Sat, 26 Sep 2020 14:05:53 -0400
Mark H Weaver <mhw <at> netris.org> wrote:

> Hi,
> 
> raingloom <raingloom <at> riseup.net> writes:
> > It crashed immediately without any visible activity.  
> 
> Okay.
> 
> > It does start up properly with a fresh profile. I'll try to bisect
> > the addons list later.  
> 
> In the meantime, to start IceCat 78 with your existing profile but
> with addons temporarily disabled, try running:
> 
>   icecat -safe-mode
> 
> That should allow you to recover your existing bookmarks, history,
> cookies, saved passwords, tabs, etc.  Then you can try adding back
> your preferred addons incrementally to find out which one is causing
> the problem.

It still crashes with the -safe-mode flag. Luckily I keep most things
outside modern browsers, so it's not a huge loss. (For obvious reasons
I do not consider them reliable.)

> > Tbh this would be a good time to have a debug output for IceCat on
> > hand.  
> 
> While I acknowledge that it might occasionally be useful in edge cases
> like this, it would also dramatically increase the memory requirements
> at build time.  For what it's worth, in the ~6 years that I've been
> maintaining the IceCat package in Guix, I don't recall being asked
> for a debug output before now.
> 
> I'm particularly sensitive to the memory requirements at build time,
> because I choose not to trust the build farm and therefore to build my
> entire Guix system with GNOME from source code on a relatively old
> Thinkpad X200 with only 4 GB of RAM.  I've been doing this for many
> years, and I'd like to enable other Guix users to do so if they wish.
> 
> My impression is that IceCat debug outputs would primarily useful to
> people who are actively developing IceCat, in which case it makes more
> sense to build it manually to allow incremental rebuilds after
> modifying the source code.
> 
> If it turns out that there's more interest in IceCat debug outputs
> than I've anticipated (others: please speak up if you need this!),
> I'm not necessarily opposed to adding them, but someone with a more
> powerful machine would need to take over maintenance of our IceCat
> package, because I would be unable to locally test the official build.
> 
> What do you think?  Do other people need IceCat 'debug' outputs?
> 
>       Thanks,
>         Mark


Huh, I was not aware that it increased build time memory requirements.
I assumed it just gets sent to the void in the 'strip phase, just like
it is in other packages.
Maybe feature flags could help with this in the future. Since
(hopefully) nothing depends on IceCat, the build farm could just build
it with debug symbols, and those who want to build it locally can
build it without them. But that's off topic for this thread.
Local builds are definitely cool. As a fellow 4 gigger/thinkpadder I
appreciate anything that lets me build things locally without 16+ gigs
of swap. (you might think that's an exaggeration, but then you haven't
tried to build Idris 2 with Idris 1.)




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Sun, 27 Sep 2020 20:39:01 GMT) Full text and rfc822 format available.

Message #20 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: raingloom <raingloom <at> riseup.net>
Cc: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Sun, 27 Sep 2020 16:36:52 -0400
Hi,

raingloom <raingloom <at> riseup.net> writes:

> On Sat, 26 Sep 2020 14:05:53 -0400
> Mark H Weaver <mhw <at> netris.org> wrote:
>
>> In the meantime, to start IceCat 78 with your existing profile but
>> with addons temporarily disabled, try running:
>> 
>>   icecat -safe-mode
>> 
>> That should allow you to recover your existing bookmarks, history,
>> cookies, saved passwords, tabs, etc.  Then you can try adding back
>> your preferred addons incrementally to find out which one is causing
>> the problem.
>
> It still crashes with the -safe-mode flag. Luckily I keep most things
> outside modern browsers, so it's not a huge loss. (For obvious reasons
> I do not consider them reliable.)

If you'd like to try another experiment, it would be interesting to know
if you're able to recover most of your old profile by running "icecat
-safe-mode -p", selecting your old profile, and clicking on the "Refresh
IceCat" button that is presented.  That will reset all preferences to
the IceCat defaults, but might enable you to recover the things I listed
above.

>> > Tbh this would be a good time to have a debug output for IceCat on
>> > hand.  
>> 
>> While I acknowledge that it might occasionally be useful in edge cases
>> like this, it would also dramatically increase the memory requirements
>> at build time. [...]
>
> Huh, I was not aware that it increased build time memory requirements.
> I assumed it just gets sent to the void in the 'strip phase, just like
> it is in other packages.

We currently pass "--disable-debug" and "--disable-debug-symbols" to
IceCat's configure script, which causes it to pass compiler flags that
disable generation of debug symbols during the build.

> As a fellow 4 gigger/thinkpadder I
> appreciate anything that lets me build things locally without 16+ gigs
> of swap. (you might think that's an exaggeration, but then you haven't
> tried to build Idris 2 with Idris 1.)

I've actually tried (and failed) to build Idris 1 locally, so I can
sympathize :-/

       Mark




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Thu, 01 Oct 2020 01:58:02 GMT) Full text and rfc822 format available.

Message #23 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Mike Gerwitz <mtg <at> gnu.org>
To: Mark H Weaver <mhw <at> netris.org>
Cc: raingloom <raingloom <at> riseup.net>, 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Wed, 30 Sep 2020 21:56:04 -0400
On Sat, Sep 26, 2020 at 14:05:53 -0400, Mark H Weaver wrote:
> I'm particularly sensitive to the memory requirements at build time,
> because I choose not to trust the build farm and therefore to build my
> entire Guix system with GNOME from source code on a relatively old
> Thinkpad X200 with only 4 GB of RAM.  I've been doing this for many
> years, and I'd like to enable other Guix users to do so if they wish.

As someone with the same system as you, I have appreciated this for
as long as I've used Guix.  Thank you.

> My impression is that IceCat debug outputs would primarily useful to
> people who are actively developing IceCat, in which case it makes more
> sense to build it manually to allow incremental rebuilds after modifying
> the source code.

I agree---I think it's best not to burden all users (that choose to or
have to build) in this case.

-- 
Mike Gerwitz




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Thu, 01 Oct 2020 22:58:01 GMT) Full text and rfc822 format available.

Message #26 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: raingloom <raingloom <at> riseup.net>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Fri, 2 Oct 2020 00:57:39 +0200
On Sun, 27 Sep 2020 16:36:52 -0400
Mark H Weaver <mhw <at> netris.org> wrote:

> Hi,
> 
> raingloom <raingloom <at> riseup.net> writes:
> 
> > On Sat, 26 Sep 2020 14:05:53 -0400
> > Mark H Weaver <mhw <at> netris.org> wrote:
> >  
> >> In the meantime, to start IceCat 78 with your existing profile but
> >> with addons temporarily disabled, try running:
> >> 
> >>   icecat -safe-mode
> >> 
> >> That should allow you to recover your existing bookmarks, history,
> >> cookies, saved passwords, tabs, etc.  Then you can try adding back
> >> your preferred addons incrementally to find out which one is
> >> causing the problem.  
> >
> > It still crashes with the -safe-mode flag. Luckily I keep most
> > things outside modern browsers, so it's not a huge loss. (For
> > obvious reasons I do not consider them reliable.)  
> 
> If you'd like to try another experiment, it would be interesting to
> know if you're able to recover most of your old profile by running
> "icecat -safe-mode -p", selecting your old profile, and clicking on
> the "Refresh IceCat" button that is presented.  That will reset all
> preferences to the IceCat defaults, but might enable you to recover
> the things I listed above.

What I tried was running the old IceCat and disabling every single
addon. It did not fix anything.
Gonna see if my about:config modifications are messing something up.

I hate these "modern" (transl.: google approved) browsers so fricking
much...




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Thu, 01 Oct 2020 23:29:01 GMT) Full text and rfc822 format available.

Message #29 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: raingloom <raingloom <at> riseup.net>
To: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Fri, 2 Oct 2020 01:28:49 +0200
On Fri, 2 Oct 2020 00:57:39 +0200
raingloom <raingloom <at> riseup.net> wrote:

> On Sun, 27 Sep 2020 16:36:52 -0400
> Mark H Weaver <mhw <at> netris.org> wrote:
> 
> > Hi,
> > 
> > raingloom <raingloom <at> riseup.net> writes:
> >   
> > > On Sat, 26 Sep 2020 14:05:53 -0400
> > > Mark H Weaver <mhw <at> netris.org> wrote:
> > >    
> > >> In the meantime, to start IceCat 78 with your existing profile
> > >> but with addons temporarily disabled, try running:
> > >> 
> > >>   icecat -safe-mode
> > >> 
> > >> That should allow you to recover your existing bookmarks,
> > >> history, cookies, saved passwords, tabs, etc.  Then you can try
> > >> adding back your preferred addons incrementally to find out
> > >> which one is causing the problem.    
> > >
> > > It still crashes with the -safe-mode flag. Luckily I keep most
> > > things outside modern browsers, so it's not a huge loss. (For
> > > obvious reasons I do not consider them reliable.)    
> > 
> > If you'd like to try another experiment, it would be interesting to
> > know if you're able to recover most of your old profile by running
> > "icecat -safe-mode -p", selecting your old profile, and clicking on
> > the "Refresh IceCat" button that is presented.  That will reset all
> > preferences to the IceCat defaults, but might enable you to recover
> > the things I listed above.  
> 
> What I tried was running the old IceCat and disabling every single
> addon. It did not fix anything.
> Gonna see if my about:config modifications are messing something up.
> 
> I hate these "modern" (transl.: google approved) browsers so fricking
> much...

Well, what ended up working was deleting a bunch of file from the
profile directory. No idea which deletion made it work and at this
point I just wanna crawl back to Netsurf.
Can't say I'd recommend this workaround to regular users, but if you
can guess what those files are, you should be safe.

Files and directories I deleted: (taken from ~/.local/share/Trash/files)

```
{513646f8-fb87-4135-a41e-4cf1d1ccccf2}
{74145f27-f039-47ce-a470-a662b129930a}
{9063c2e9-e07c-4c2c-9646-cfe7ca8d0498}
AlternateServices.2.txt
AlternateServices.txt
blocklist.xml
broadcast-listeners.json
{c2c003ee-bd69-42a2-b0e9-6f34222cb046}
{c607c8df-14a7-4f28-894f-29e8722976af}
cert_override.txt
compatibility.2.ini
compatibility.ini
containers.json
datareporting
{de89ec3b-0f2a-45af-aeec-931d16988f72}
{e4a8a97b-f2ed-450b-b12d-ee082ba24781}
enumerate_devices.txt
gmp
handlers.json
https-everywhere <at> eff.org
pkcs11.txt
prefs.js
SecurityPreloadState.txt
sessionCheckpoints.json
sessionstore.jsonlz4
shinigamieyes <at> shinigamieyes
SiteSecurityServiceState.txt
staged
storage.sqlite
storage-sync.sqlite
Telemetry.ShutdownTime.txt
times.json
TRRBlacklist.txt
wappalyzer <at> crunchlabz.com
weave
```




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Fri, 09 Oct 2020 07:41:02 GMT) Full text and rfc822 format available.

Message #32 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: raingloom <raingloom <at> riseup.net>, Mark H Weaver <mhw <at> netris.org>    
Cc: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Fri, 09 Oct 2020 09:42:04 +0200
I have the same problem.  Icecat segfaults right away without any window
appearing.  “-safe-mode” does not make a difference, but with “-p” I’m
presented with the profile manager.  I haven’t tried creating a new
profile yet, nor have I tried deleting files from my existing profile.

I’m using Gnome on Guix System.  To be sure that it isn’t caused by a
known bug in how we packaged Gnome Shell, I unset LD_LIBRARY_PATH before
running icecat, but with no effect.

I see a segfault with the latest icecat-78.3.1-guix0-preview1 and with
the older 78.3.0-guix0-preview1.  No segfault with
68.12.0-guix0-preview1.

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Mon, 30 Nov 2020 20:07:02 GMT) Full text and rfc822 format available.

Message #35 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: raingloom <raingloom <at> riseup.net>, Mark H Weaver <mhw <at> netris.org>
Cc: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Mon, 30 Nov 2020 21:06:09 +0100
Ricardo Wurmus <rekado <at> elephly.net> writes:

> I have the same problem.  Icecat segfaults right away without any window
> appearing.  “-safe-mode” does not make a difference, but with “-p” I’m
> presented with the profile manager.  I haven’t tried creating a new
> profile yet, nor have I tried deleting files from my existing profile.
>
> I’m using Gnome on Guix System.  To be sure that it isn’t caused by a
> known bug in how we packaged Gnome Shell, I unset LD_LIBRARY_PATH before
> running icecat, but with no effect.
>
> I see a segfault with the latest icecat-78.3.1-guix0-preview1 and with
> the older 78.3.0-guix0-preview1.  No segfault with
> 68.12.0-guix0-preview1.

Starting the new Icecat with “icecat --migration” and telling it to
import the existing Icecat profile did the trick for me.  I did not
delete anything from my existing profile.

It would certainly be nice if Icecat didn’t segfault when loading data
that it can in principle migrate, but that’s not actually a Guix bug I
think.

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Mon, 30 Nov 2020 20:13:02 GMT) Full text and rfc822 format available.

Message #38 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: raingloom <raingloom <at> riseup.net>, Mark H Weaver <mhw <at> netris.org>
Cc: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Mon, 30 Nov 2020 21:12:48 +0100
Ricardo Wurmus <rekado <at> elephly.net> writes:

> Ricardo Wurmus <rekado <at> elephly.net> writes:
>
>> I have the same problem.  Icecat segfaults right away without any window
>> appearing.  “-safe-mode” does not make a difference, but with “-p” I’m
>> presented with the profile manager.  I haven’t tried creating a new
>> profile yet, nor have I tried deleting files from my existing profile.
>>
>> I’m using Gnome on Guix System.  To be sure that it isn’t caused by a
>> known bug in how we packaged Gnome Shell, I unset LD_LIBRARY_PATH before
>> running icecat, but with no effect.
>>
>> I see a segfault with the latest icecat-78.3.1-guix0-preview1 and with
>> the older 78.3.0-guix0-preview1.  No segfault with
>> 68.12.0-guix0-preview1.
>
> Starting the new Icecat with “icecat --migration” and telling it to
> import the existing Icecat profile did the trick for me.  I did not
> delete anything from my existing profile.

This is not a complete fix, though.  Icecat goes straight back to
segfaulting when restarted.  When I start it with “icecat --migration”
and import the profile (every time I start it) I can get past the
segfault.  So, whatever it does there does not seem to be permanent.

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Sun, 13 Dec 2020 18:20:01 GMT) Full text and rfc822 format available.

Message #41 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Alex ter Weele <alex.ter.weele <at> gmail.com>
To: raingloom <raingloom <at> riseup.net>
Cc: 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Sun, 13 Dec 2020 13:19:36 -0500
raingloom <raingloom <at> riseup.net> writes:

> On Fri, 2 Oct 2020 00:57:39 +0200
> raingloom <raingloom <at> riseup.net> wrote:
>
> Well, what ended up working was deleting a bunch of file from the
> profile directory. No idea which deletion made it work and at this
> point I just wanna crawl back to Netsurf.
> Can't say I'd recommend this workaround to regular users, but if you
> can guess what those files are, you should be safe.

Thanks to raingloom, we know that deleting some parts of the profile can
work around the segfault. I set out to find the minimal part of my
profile that I could delete while still working around the
segfault.

All I had to delete was the line

user_pref("network.captive-portal-service.enabled", true);

from ~/.mozilla/icecat/$my-profile/prefs.js.

Methodology: I put my whole profile into a git repo, then deleted it file
by file with

for i in * ; do
rm $i
git commit -am "Remove $i"
done

then I used git bisect to find which file(s) had to be deleted before
icecat wouldn't segfault.

Once I had a set of files whose deletion avoided the segfault, I
minimized that set by "un"deleting them by git reverting the commits
that deleted them. Eventually I undeleted all the files in the set
except prefs.js.

I then bisected on the lines in prefs.js, this time manually. I found
that the deletion of just the network.captive-portal-service.enabled
pref is sufficient to avoid the segfault.

I tested this with icecat 78.4.0-guix0-preview1.

  $ guix describe
  Generation 318	Nov 12 2020 07:36:51	(current)
    ...
    guix 07914de
      repository URL: https://git.savannah.gnu.org/git/guix.git
      branch: master
      commit: 07914def98ca0d148e3522466227304e45286786




Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Tue, 15 Dec 2020 11:25:02 GMT) Full text and rfc822 format available.

Message #44 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Alex ter Weele <alex.ter.weele <at> gmail.com>
Cc: raingloom <raingloom <at> riseup.net>, 43610 <at> debbugs.gnu.org
Subject: Re: bug#43610: IceCat segfault
Date: Tue, 15 Dec 2020 12:24:21 +0100
Hi Alex,

Alex ter Weele <alex.ter.weele <at> gmail.com> skribis:

> All I had to delete was the line
>
> user_pref("network.captive-portal-service.enabled", true);
>
> from ~/.mozilla/icecat/$my-profile/prefs.js.

Good to know.  Who could have guessed?

> Methodology: I put my whole profile into a git repo, then deleted it file
> by file with
>
> for i in * ; do
> rm $i
> git commit -am "Remove $i"
> done
>
> then I used git bisect to find which file(s) had to be deleted before
> icecat wouldn't segfault.

Heh, smart!

Thanks for sharing your findings,
Ludo’.




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Mon, 11 Jul 2022 18:39:02 GMT) Full text and rfc822 format available.

Notification sent to raingloom <raingloom <at> riseup.net>:
bug acknowledged by developer. (Mon, 11 Jul 2022 18:39:02 GMT) Full text and rfc822 format available.

Message #49 received at 43610-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 43610-done <at> debbugs.gnu.org, Alex ter Weele <alex.ter.weele <at> gmail.com>,
 raingloom <raingloom <at> riseup.net>
Subject: Re: bug#43610: IceCat segfault
Date: Mon, 11 Jul 2022 14:38:02 -0400
Hi,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi Alex,
>
> Alex ter Weele <alex.ter.weele <at> gmail.com> skribis:
>
>> All I had to delete was the line
>>
>> user_pref("network.captive-portal-service.enabled", true);
>>
>> from ~/.mozilla/icecat/$my-profile/prefs.js.
>
> Good to know.  Who could have guessed?
>
>> Methodology: I put my whole profile into a git repo, then deleted it file
>> by file with
>>
>> for i in * ; do
>> rm $i
>> git commit -am "Remove $i"
>> done
>>
>> then I used git bisect to find which file(s) had to be deleted before
>> icecat wouldn't segfault.

It seems the problem had to do with problematic migration of an IceCat
profile between versions?

If so, I'd think that'd be an upstream rather than a Guix issue.
Closing, because the issue is very old, and the lack of activity on its
tracker suggests it hasn't reoccurred since.

Feel free to reopen otherwise.

Thanks,

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 09 Aug 2022 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Dominik Delgado <d <at> delgado.nrw> to control <at> debbugs.gnu.org. (Fri, 07 Apr 2023 15:32:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Sat, 08 Apr 2023 07:17:01 GMT) Full text and rfc822 format available.

Message #56 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Dominik Delgado <d <at> delgado.nrw>
To: 43610 <at> debbugs.gnu.org
Subject: Segfault still an issue
Date: Fri, 07 Apr 2023 18:14:21 +0200
[Message part 1 (text/plain, inline)]
Hi, the segfault is still an issue (at least for me). Steps to reproduce:

rm -rf ~/.mozilla/icecat/

Start IceCat, go to IceCat Settings and activate "Detect captive portal". Close IceCat. When I now want to start IceCat again, it segfaults immediately.
[Message part 2 (text/html, inline)]

Changed bug submitter to 'Dominik Delgado <d <at> delgado.nrw>' from 'raingloom <raingloom <at> riseup.net>' Request was from Dominik Delgado <d <at> delgado.nrw> to control <at> debbugs.gnu.org. (Sat, 08 Apr 2023 07:17:02 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 08 Apr 2023 07:17:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#43610; Package guix. (Sat, 08 Apr 2023 18:39:03 GMT) Full text and rfc822 format available.

Message #63 received at 43610 <at> debbugs.gnu.org (full text, mbox):

From: Dominik Delgado <d <at> delgado.nrw>
To: 43610 <at> debbugs.gnu.org
Subject: Segfault still an issue
Date: Sat, 08 Apr 2023 09:55:06 +0200
[Message part 1 (text/plain, inline)]
I should add: This error is happening with a freshly installed IceCat on Guix System, both on X and Wayland.
[Message part 2 (text/html, inline)]

Severity set to 'important' from 'normal' Request was from Dominik Delgado Steuter <d <at> delgado.nrw> to control <at> debbugs.gnu.org. (Sun, 16 Apr 2023 18:58:02 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 20 Jan 2024 02:51:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 43610 <at> debbugs.gnu.org and Dominik Delgado <d <at> delgado.nrw> Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 20 Jan 2024 02:51:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 17 Feb 2024 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 40 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.