Bug 255379 - www/firefox: dumps core with "too much recurson" if PIE ASLR is enabled
Summary: www/firefox: dumps core with "too much recurson" if PIE ASLR is enabled
Status: Closed FIXED
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-24 23:23 UTC by Rajeev Pillai
Modified: 2021-04-26 00:08 UTC (History)
2 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 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.