Bug 250914 - www/firefox-esr: Segmentation Fault with 78 and net/dante
Summary: www/firefox-esr: Segmentation Fault with 78 and net/dante
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-gecko (Nobody)
URL: https://www.freshports.org/net/dante/
Keywords:
Depends on: 269844
Blocks:
  Show dependency treegraph
 
Reported: 2020-11-06 21:30 UTC by sega01
Modified: 2023-04-23 14:26 UTC (History)
1 user (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 sega01 2020-11-06 21:30:30 UTC
Hi,

I compile my own packages with portmaster for AMD64. firefox-esr was working great for me until the bump to 78 in the 2020Q3 ports branch. firefox-esr builds fine, however when running it, I get a segmentation fault. This is on 12.2-RELEASE. All of my ports are up to date.

What works:

firefox --version
DISPLAY=:9999 firefox will complaint the display is bad and exit as it should.

What does not:

firefox
firefox --headless

Both segmentation fault.

Have this on two systems. I rebuilt the package with less options and had the same thing.

What should I try next?

Thank you!
Comment 1 sega01 2020-11-06 22:49:45 UTC
www/firefox also behaves the same way.
Comment 2 Jan Beich freebsd_committer freebsd_triage 2020-11-07 02:43:46 UTC
Check bug 243252. Without stacktrace and messages leading up to crash it's impossible to guess. There'd be a lot of noise on gecko@ list if this was a common issue.

I can't reproduce inside 12.2 amd64 jail with locally built packages. pkg.freebsd.org provides packages built on 12.1 for both 12.1 and 12.2 but it's rarely an issue outside of *-kmod ports.
Comment 3 sega01 2020-11-07 04:30:55 UTC
Thanks for getting back to me. I didn't see anything on that thread.

When I run firefox, I get this.

I get the everything before the Segmentation fault, the GUI comes up asking if I want to start it in safe mode because it crashed before. I click safe mode and it segfaults.

JavaScript error: , line 0: UnknownError: The operation failed for reasons unrelated to the database itself and not covered by any other error code.
Extension error: Error while loading 'jar:file:///usr/local/lib/firefox/browser/features/fxmonitor@mozilla.org.xpi!/manifest.json' (NS_ERROR_FILE_NOT_FOUND) resource://gre/modules/Extension.jsm:570 :: readJSON/</<@resource://gre/modules/Extension.jsm:570:20
onStopRequest@resource://gre/modules/NetUtil.jsm:128:18
BG__beforeUIStartup@resource:///modules/BrowserGlue.jsm:1287:19
BG_observe@resource:///modules/BrowserGlue.jsm:960:14

Extension error: Error while loading 'jar:file:///usr/local/lib/firefox/browser/omni.ja!/chrome/browser/search-extensions/twitter/manifest.json' (NS_ERROR_FILE_NOT_FOUND) resource://gre/modules/Extension.jsm:570 :: readJSON/</<@resource://gre/modules/Extension.jsm:570:20
onStopRequest@resource://gre/modules/NetUtil.jsm:128:18
BG__beforeUIStartup@resource:///modules/BrowserGlue.jsm:1287:19
BG_observe@resource:///modules/BrowserGlue.jsm:960:14

(Safe mode dialogue here)

Segmentation fault

--

I think I turned off core dumps. Should I enable that then get the core dump?
Comment 4 sega01 2020-11-10 04:03:28 UTC
I have a 12.1 jail (albeit, built from source) that I just tried the upstream Firefox package with. firefox --headless segfaults in the jail on the 12.2 kernel (also built from source).
Comment 5 Jan Beich freebsd_committer freebsd_triage 2020-11-12 00:32:58 UTC
I've updated firefox to 83 in ports r554921. Check if it helps.

Does it crash with a new profile or a separate HOME directory?
Comment 6 sega01 2020-11-14 20:18:44 UTC
I found the bug!!!!!!!!

I spent hours and hours and hours on this one...

If you install dante, Firefox segfaults and dies.

Can you reproduce this?

If I install dante, firefox fails. Remove, it's fine. Upstream or locally built Firefox, doesn't matter.
Comment 7 sega01 2021-01-21 20:07:59 UTC
Can anyone else confirm this behavior?
Comment 8 Mikael Urankar freebsd_committer freebsd_triage 2021-01-26 09:13:42 UTC
(In reply to Teran McKinney from comment #7)
firefox works for me even if dante is installed (I haven't tried firefox-esr)
Comment 9 Graham Perrin freebsd_committer freebsd_triage 2023-04-23 09:43:05 UTC
(In reply to sega01 from comment #6)

<https://www.freshports.org/net/dante/> is marked as broken.