Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 837491 - www-client/seamonkey-2.53.11.1: crashes on startup on aarch64 (little endian)
Summary: www-client/seamonkey-2.53.11.1: crashes on startup on aarch64 (little endian)
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Myckel Habets
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-09 12:56 UTC by Marcus Comstedt
Modified: 2022-04-09 16:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb backtrace of the crash (gdb_backtrace.txt,9.58 KB, text/plain)
2022-04-09 12:58 UTC, Marcus Comstedt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Comstedt 2022-04-09 12:56:15 UTC
When trying to run seamonkey 2.53.11.1 on arm64, it crashes before the window
even opens, due to trying to realloc an invalid pointer.  See valgrind
backtrace below:

momoka:~% valgrind seamonkey
==30735== Memcheck, a memory error detector
==30735== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==30735== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==30735== Command: seamonkey
==30735== 
---8<---
==30735== Invalid free() / delete / delete[] / realloc()
==30735==    at 0x4853500: realloc (vg_replace_malloc.c:1437)
==30735==    by 0xAE580E7: js::irregexp::RegExpStackScope::~RegExpStackScope() (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xAC7FFB7: js::RegExpShared::execute(JSContext*, JS::MutableHandle<js::RegExpShared*>, JS::Handle<JSLinearString*>, unsigned long, js::MatchPairs*, unsigned long*) (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xAE69D03: js::RegExpTester(JSContext*, unsigned int, JS::Value*) (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xA8ABC9F: InternalCall(JSContext*, js::AnyInvokeArgs const&) (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xA89F2DB: Interpret(JSContext*, js::RunState&) (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xA8AA467: js::RunScript(JSContext*, js::RunState&) (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xA8ABDDF: InternalCall(JSContext*, js::AnyInvokeArgs const&) (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xA89F2DB: Interpret(JSContext*, js::RunState&) (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xA8AA467: js::RunScript(JSContext*, js::RunState&) (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xA8ABDDF: InternalCall(JSContext*, js::AnyInvokeArgs const&) (in /usr/lib64/seamonkey/libxul.so)
==30735==    by 0xA89F2DB: Interpret(JSContext*, js::RunState&) (in /usr/lib64/seamonkey/libxul.so)
==30735==  Address 0x7100081f340000a0 is not stack'd, malloc'd or (recently) free'd
==30735== 
---8<---


Reproducible: Always

Steps to Reproduce:
1.Try to start seamonkey
2.
3.
Actual Results:  
Segmentation fault

Expected Results:  
seamonkey starts

I'm building with
EXTRA_ECONF='--disable-content-sandbox'
in case it makes any difference.  I can try without but it will take some time
to rebuild.

emerge --info follows:

---8<---
Portage 3.0.30 (python 3.9.11-final-0, default/linux/arm64/17.0/desktop, gcc-11.2.1, glibc-2.33-r13, 4.9.299 aarch64)
=================================================================
System uname: Linux-4.9.299-aarch64-with-glibc2.33
KiB Mem:     8042652 total,    525704 free
KiB Swap:   16777212 total,  16053296 free
Timestamp of repository gentoo: Mon, 28 Mar 2022 11:30:01 +0000
Head commit of repository gentoo: 34a8ed6df7c616aa71c0bd28114bdc28a1106a46
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p14::gentoo, 3.9.11::gentoo, 3.10.3::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r13::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.42.40/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

zeldin
    location: /usr/local/portage
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

java
    location: /var/lib/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="sv_SE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/tcsh"
USE="X a52 aac acl acpi alsa arm64 bluetooth branding bzip2 cairo cdda cdr cjk cli crypt css cups curl dbus dri dts dvb dvd dvdr elogind encode exif ffmpeg flac gdbm gif gmp gnutls gpm gtk gui iconv icu idn ipv6 jpeg lcms libffi libglvnd libnotify libtirpc lua mad mng mp3 mp4 mpeg mule multitarget ncurses nis nls nptl offensive ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seamonkey seccomp smp spell split-usr ssl startup-notification svg theora threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xemacs xft xml xmpp xv xvid zlib" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Marcus Comstedt 2022-04-09 12:58:57 UTC
Created attachment 769646 [details]
gdb backtrace of the crash
Comment 2 Marcus Comstedt 2022-04-09 14:28:37 UTC
Oh, now I remember why I have EXTRA_ECONF='--disable-content-sandbox'; seamonkey
does not compile without it:

---8<---
work/seamonkey-2.53.11.1/security/sandbox/chromium/sandbox/linux/bpf_dsl/policy_compiler.cc:24:
816:15.93 /var/tmp/portage/www-client/seamonkey-2.53.11.1/work/seamonkey-2.53.11.1/security/sandbox/chromium/sandbox/linux/system_headers/linux_syscalls.h:33:10: fatal error: sandbox/linux/system_headers/arm64_linux_syscalls.h: No such file or directory
816:15.94    33 | #include "sandbox/linux/system_headers/arm64_linux_syscalls.h"
816:15.94       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
816:15.94 compilation terminated.
---8<---