Bug 274719 - www/firefox: 119.0_1,2 crashes at start: Exiting due to channel error.
Summary: www/firefox: 119.0_1,2 crashes at start: Exiting due to channel error.
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gecko (Nobody)
URL: https://bugzilla.mozilla.org/show_bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-25 21:56 UTC by Yuri Victorovich
Modified: 2023-10-28 13:05 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2023-10-25 21:56:45 UTC
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Segmentation fault


13.2-STABLE
Comment 1 Christopher Hall 2023-10-26 01:53:01 UTC
I had this error on one machine, but another identical setup was ok. This was on the update from 117 to 118 I think. The only way I fixed it was to create a fresh profile then shutdown Firefox, copy the session-store dirs/files to the new profile; it took a few attempts but I did get all 300+ tabs back. I still had to reinstall extensions and do other setup. I think it happened because Firefox was running during the upgrade and I ran it for a while before it popped up the "Restart Firefox" dialog. Now I stop fFirefox, run a script to backup the profile, then do pkg upgrade. The upgrade to firefox-119.0_1,2 was successful.for me with this method.
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2023-10-26 03:03:04 UTC
(In reply to Christopher Hall from comment #1)

Firefox-199 fails this way even when ~/.mozilla is removed - without any pre-existing configuration.
Comment 3 Ken DEGUCHI 2023-10-27 03:05:56 UTC
I think this is the same bug #273291.
What do you think?
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2023-10-27 03:15:53 UTC
(In reply to Ken DEGUCHI from comment #3)

But in the bug#273291 it doesn't have the "Exiting due to channel error" error.
Comment 5 Tomoaki AOKI 2023-10-27 13:10:29 UTC
(In reply to Yuri Victorovich from comment #4)

See my attachement dated 2023-09-03 17:48 JST [1] on Bug 273291.
The exactly same error appears near the end.

[1] https://bz-attachments.freebsd.org/attachment.cgi?id=244607
Comment 6 Tomoaki AOKI 2023-10-27 13:17:25 UTC
I think Bug 273291, would be the same as this, is caused by out-of-bound accesses or mis-alignments exposed by any of optimization options implied by -O1 option.
But firefox is tooo huge for me to track down. :-(

Possibly, the root cause could be in other ports, but as firefox is the only software I've bitten by, so it could be fixed (at least worked around) on firefox side.
But not by me, unfortunately. It's beyond my hand.
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2023-10-28 03:01:27 UTC
The complete set of error messages now is:

> [Parent 2159, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /wrkdirs/usr/ports/www/firefox/work/firefox-119.0/toolkit/xre/nsSigHandlers.cpp:167
> 
> (firefox:2159): GLib-GObject-CRITICAL **: 20:00:21.413: invalid (NULL) pointer instance
> [Parent 2159, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /wrkdirs/usr/ports/www/firefox/work/firefox-119.0/toolkit/xre/nsSigHandlers.cpp:167
> 
> (firefox:2159): GLib-GObject-CRITICAL **: 20:00:21.413: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
> [Parent 2159, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /wrkdirs/usr/ports/www/firefox/work/firefox-119.0/toolkit/xre/nsSigHandlers.cpp:167
> 
> (firefox:2159): GLib-GObject-CRITICAL **: 20:00:21.413: invalid (NULL) pointer instance
> [Parent 2159, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /wrkdirs/usr/ports/www/firefox/work/firefox-119.0/toolkit/xre/nsSigHandlers.cpp:167
> 
> (firefox:2159): GLib-GObject-CRITICAL **: 20:00:21.413: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
> JavaScript error: resource://gre/modules/XULStore.sys.mjs, line 60: Error: Can't find profile directory.
> console.error: "Experiment next-generation-accessibility-engine-powering-screen-readers has unknown featureId: accessibilityCache"
> console.error: "Experiment next-generation-accessibility-engine-powering-screen-readers-and-other-ats-copy has unknown featureId: accessibilityCache"
> console.error: "Experiment next-generation-accessibility-engine-powering-screen-readers-and-other-ats-copy has unknown featureId: accessibilityCache"
> Exiting due to channel error.
> Exiting due to channel error.
> Exiting due to channel error.
> Exiting due to channel error.
> Exiting due to channel error.
> Segmentation fault
Comment 8 Tomoaki AOKI 2023-10-28 13:05:58 UTC
(In reply to Yuri Victorovich from comment #7)

Console error messages part of what I've introduced at comment #5 are as follows.
Continuously repeated more tham 5 lines are snipped.

(firefox:8181): GLib-GObject-CRITICAL **: 16:39:57.432: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
console.error: "Experiment next-generation-accessibility-engine-powering-screen-readers has unknown featureId: accessibilityCache"
console.error: "Experiment next-generation-accessibility-engine-powering-screen-readers-and-other-ats-copy has unknown featureId: accessibilityCache"
console.error: "Experiment next-generation-accessibility-engine-powering-screen-readers-and-other-ats-copy has unknown featureId: accessibilityCache"
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
console.error: "Experiment next-generation-accessibility-engine-powering-screen-readers has unknown featureId: accessibilityCache"
console.error: "Experiment next-generation-accessibility-engine-powering-screen-readers-and-other-ats-copy has unknown featureId: accessibilityCache"
console.error: "Experiment next-generation-accessibility-engine-powering-screen-readers-and-other-ats-copy has unknown featureId: accessibilityCache"
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined

   (snip)

console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
console.error: "update.locale" " file doesn't exist in either the application or GRE directories"
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined

   (snip)

console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
console.warn: services.settings: Could not determine network status. Message: TypeError: lazy.gNetworkLinkService is undefined
[Parent 8181, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /wrkdirs/usr/ports/www/firefox/work/firefox-117.0/toolkit/xre/nsSigHandlers.cpp:167

(firefox:8181): GLib-GObject-CRITICAL **: 16:40:08.740: invalid (NULL) pointer instance
[Parent 8181, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /wrkdirs/usr/ports/www/firefox/work/firefox-117.0/toolkit/xre/nsSigHandlers.cpp:167

(firefox:8181): GLib-GObject-CRITICAL **: 16:40:08.740: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 8181, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /wrkdirs/usr/ports/www/firefox/work/firefox-117.0/toolkit/xre/nsSigHandlers.cpp:167

(firefox:8181): GLib-GObject-CRITICAL **: 16:40:08.754: invalid (NULL) pointer instance
[Parent 8181, Main Thread] WARNING: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /wrkdirs/usr/ports/www/firefox/work/firefox-117.0/toolkit/xre/nsSigHandlers.cpp:167

(firefox:8181): GLib-GObject-CRITICAL **: 16:40:08.754: g_signal_emit_by_name: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.

[1]  + segmentation fault (core dumped)  firefox --safe-mode