Bug 255379

Summary: www/firefox: dumps core with "too much recurson" if PIE ASLR is enabled
Product: Ports & Packages Reporter: Rajeev Pillai <rajeev_v_pillai>
Component: Individual Port(s)Assignee: freebsd-gecko (Nobody) <gecko>
Status: Closed FIXED    
Severity: Affects Only Me CC: 2khramtsov, rajeev_v_pillai
Priority: --- Flags: bugzilla: maintainer-feedback? (gecko)
Version: Latest   
Hardware: Any   
OS: Any   

Description Rajeev Pillai 2021-04-24 23:23:06 UTC

    
Comment 1 Rajeev Pillai 2021-04-24 23:27:05 UTC
Firefox 88.0_1,2 dumps core with a "too much recursion" error if PIE ASLR
is enabled:

$ uname -a
FreeBSD x202e 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:24:09 UTC 2021     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

$ cat /boot/loader.conf
...
kern.elf32.allow_wx=0
kern.elf64.allow_wx=0
kern.elf32.aslr.enable=1
kern.elf64.aslr.enable=1
kern.elf32.aslr.pie_enable=1
kern.elf64.aslr.pie_enable=1

It works if PIE ASLR is disabled.
Comment 2 Evgenii Khramtsov 2021-04-25 21:21:59 UTC
Try # elfctl -e +noaslrstkgap /usr/local/lib/firefox/firefox
as a workaround. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239873
Comment 3 Rajeev Pillai 2021-04-26 00:08:56 UTC
(In reply to Evgeniy Khramtsov from comment #2)
That works for me. Closing this bug.