Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Seamonkey-2.46-r1/Firefox-52 crash with Segmentation fault
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Sun Mar 26, 2017 9:43 am    Post subject: Seamonkey-2.46-r1/Firefox-52 crash with Segmentation fault Reply with quote

Good morning,

after my 2nd frustrating attempt to give Pulseaudio a chance, I removed that piece of crap from my machine again. Pulseaudio simply doesn't seem to be able to handle the mixer controls of the Asus Xonar soundcards. No chance to get the Headphone volume control. And yeah, be happy, this problem exists already for ages. After altering the mixer number from 2 to 8 nothing changed in alsamixer or KMix, but my favourite game in Wine (Spider Solitaire) didn't work anymore. Wine simply hangs.

After removing Pulseaudio (incl. Use-flag) and recompiling the concerned packages (inc. Seamonkey and Firefox) both programs refuse to run.

The short version:
firefox:
Segmentation fault (core dumped)


The long version:
strace -f firefox:


[pid  4893] futex(0x7f1a4ee156cc, FUTEX_WAIT_PRIVATE, 5, NULL <unfinished ...>
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1a4f400000
[pid  4839] madvise(0x7f1a4f400000, 1032192, MADV_DONTNEED) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] mmap(NULL, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f1a4ec00000
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0
[pid  4839] getrandom("\x6b\x42\xeb\x5d\x63\xc4\xe5\x97", 8, GRND_NONBLOCK) = 8
[pid  4839] getrandom("\x72\xb1\xac\x06\x12\x71\x5e\x1e", 8, GRND_NONBLOCK) = 8
[pid  4839] open("/usr/lib64/libsoftokn3.so", O_RDONLY|O_CLOEXEC) = 29
[pid  4839] read(29, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200B\0\0\0\0\0\0"..., 832) = 832
[pid  4839] fstat(29, {st_mode=S_IFREG|0755, st_size=253896, ...}) = 0
[pid  4839] mmap(NULL, 2349680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 29, 0) = 0x7f1a4e9c2000
[pid  4839] mprotect(0x7f1a4e9fe000, 2097152, PROT_NONE) = 0
[pid  4839] mmap(0x7f1a4ebfe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 29, 0x3c000) = 0x7f1a4ebfe000
[pid  4839] close(29)                   = 0
[pid  4839] mprotect(0x7f1a4ebfe000, 4096, PROT_READ) = 0
[pid  4839] open("/usr/lib64/libfreebl3.so", O_RDONLY|O_CLOEXEC) = 29
[pid  4839] read(29, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@7\0\0\0\0\0\0"..., 832) = 832
[pid  4839] fstat(29, {st_mode=S_IFREG|0755, st_size=514448, ...}) = 0
[pid  4839] mmap(NULL, 2627320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 29, 0) = 0x7f1a4e740000
[pid  4839] mprotect(0x7f1a4e7bc000, 2093056, PROT_NONE) = 0
[pid  4839] mmap(0x7f1a4e9bb000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 29, 0x7b000) = 0x7f1a4e9bb000
[pid  4839] mmap(0x7f1a4e9be000, 14072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1a4e9be000
[pid  4839] close(29)                   = 0
[pid  4839] mprotect(0x7f1a4e9bb000, 8192, PROT_READ) = 0
[pid  4839] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20} ---
[pid  4839] unlink("/tmp/firefox_sm/lock") = 0
[pid  4839] close(8)                    = 0
[pid  4839] unlink("/home/sm/.mozilla/firefox/372zvm0z.default/lock") = 0
[pid  4839] close(9)                    = 0
[pid  4839] rt_sigaction(SIGSEGV, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1a752cefd0}, NULL, 8) = 0
[pid  4839] rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
[pid  4839] rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
[pid  4839] getpid()                    = 4839
[pid  4839] gettid()                    = 4839
[pid  4839] tgkill(4839, 4839, SIGSEGV) = 0
[pid  4839] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  4839] --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_TKILL, si_pid=4839, si_uid=1000} ---
[pid  4890] <... futex resumed>)        = ?
[pid  4893] <... futex resumed>)        = ?
[pid  4892] <... futex resumed>)        = ?
[pid  4891] <... futex resumed>)        = ?
[pid  4889] <... futex resumed>)        = ?
[pid  4888] <... futex resumed>)        = ?
[pid  4887] <... futex resumed>)        = ?
[pid  4886] <... futex resumed>)        = ?
[pid  4885] <... futex resumed>)        = ?
[pid  4884] <... futex resumed>)        = ?
[pid  4883] <... futex resumed>)        = ?
[pid  4882] <... futex resumed>)        = ?
[pid  4881] <... futex resumed>)        = ?
[pid  4880] <... futex resumed>)        = ?
[pid  4879] <... futex resumed>)        = ?
[pid  4878] <... futex resumed>)        = ?
[pid  4877] <... futex resumed>)        = ?
[pid  4876] <... futex resumed>)        = ?
[pid  4875] <... futex resumed>)        = ?
[pid  4874] <... futex resumed>)        = ?
[pid  4873] <... poll resumed> <unfinished ...>) = ?
[pid  4872] <... poll resumed> <unfinished ...>) = ?
[pid  4871] <... futex resumed>)        = ?
[pid  4870] <... epoll_wait resumed> <unfinished ...>) = ?
[pid  4885] +++ killed by SIGSEGV (core dumped) +++
[pid  4893] +++ killed by SIGSEGV (core dumped) +++
[pid  4892] +++ killed by SIGSEGV (core dumped) +++
[pid  4891] +++ killed by SIGSEGV (core dumped) +++
[pid  4890] +++ killed by SIGSEGV (core dumped) +++
[pid  4889] +++ killed by SIGSEGV (core dumped) +++
[pid  4888] +++ killed by SIGSEGV (core dumped) +++
[pid  4887] +++ killed by SIGSEGV (core dumped) +++
[pid  4886] +++ killed by SIGSEGV (core dumped) +++
[pid  4884] +++ killed by SIGSEGV (core dumped) +++
[pid  4883] +++ killed by SIGSEGV (core dumped) +++
[pid  4882] +++ killed by SIGSEGV (core dumped) +++
[pid  4881] +++ killed by SIGSEGV (core dumped) +++
[pid  4880] +++ killed by SIGSEGV (core dumped) +++
[pid  4879] +++ killed by SIGSEGV (core dumped) +++
[pid  4878] +++ killed by SIGSEGV (core dumped) +++
[pid  4877] +++ killed by SIGSEGV (core dumped) +++
[pid  4876] +++ killed by SIGSEGV (core dumped) +++
[pid  4875] +++ killed by SIGSEGV (core dumped) +++
[pid  4874] +++ killed by SIGSEGV (core dumped) +++
[pid  4873] +++ killed by SIGSEGV (core dumped) +++
[pid  4872] +++ killed by SIGSEGV (core dumped) +++
[pid  4871] +++ killed by SIGSEGV (core dumped) +++
[pid  4870] +++ killed by SIGSEGV (core dumped) +++
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)


I didn't try to reinstall Pulseaudio. I don't want to pollute my system again. Not sure if this problem is related to this thread.

Of course the version info:
eix -e firefox:
[I] www-client/firefox
     Installed Versions: 52.0.1-r1^d(14:19:50 25.03.2017)(dbus gmp-autoupdate jemalloc startup-notification system-harfbuzz system-icu system-jpeg system-libvpx system-sqlite -bindist -custom-cflags -custom-optimization -debug -gtk2 -hardened -hwaccel -jack -neon -nsplugin -pgo -pulseaudio -rust -selinux -system-cairo -system-libevent -test -wifi L10N="de pt-BR -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW")
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Sun Mar 26, 2017 6:05 pm    Post subject: Reply with quote

Seems to have a different reason than Pulseaudio. I filed a bug report.

https://bugs.gentoo.org/show_bug.cgi?id=613920
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 619
Location: France

PostPosted: Wed Mar 29, 2017 3:41 pm    Post subject: Reply with quote

Code:
CFLAGS="-march=corei7 -O2 -pipe -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=12288"

Oh yeah !
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Mar 29, 2017 3:50 pm    Post subject: Reply with quote

Syl20 wrote:
Code:
CFLAGS="-march=corei7 -O2 -pipe -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=12288"

Oh yeah !
They're all flags that -march=native would enable, and all the -mno-* options suggest that's exactly where he got them from, all perfectly "safe", so what's your point?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 619
Location: France

PostPosted: Wed Mar 29, 2017 4:22 pm    Post subject: Reply with quote

So why not just use -march=native ?

Package maintainers intentionally disable one or several implied GCC flags on some packages, often because of stability or compilation problems. Forcing them is at best useless, at worst a source of such headaches. I wouldn't be surprised if firefox/seamonkey run well without all that stuff.

That said, this is an unstable Gentoo system. Perhaps GCC 5.4 is a problem by itself, for example.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Thu Mar 30, 2017 1:16 am    Post subject: Reply with quote

Syl20 wrote:
So why not just use -march=native ?
Two reasons come immediately to mind. First, using -march=native means the compiler works it out every single time. In theory, this ought to be a few quick table lookups and not be particularly expensive. Second, distcc does not distribute commands built with -march=native. For users who get most of their compilation power from the distributed hosts, distcc can be a massive win, so forfeiting it is extremely undesirable.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Thu Mar 30, 2017 10:03 pm    Post subject: Reply with quote

Syl20 wrote:
So why not just use -march=native ?

Hu and Sadako are completely right. It's just an expaned march=native. One reason ist distcc. A second reason is cross-compiling in a chroot, where march=native is even more complicated.

You can get the flags by:
Code:
gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"


Syl20 wrote:
Package maintainers intentionally disable one or several implied GCC flags on some packages, often because of stability or compilation problems. Forcing them is at best useless, at worst a source of such headaches. I wouldn't be surprised if firefox/seamonkey run well without all that stuff.

Firefox and Seamonkey installed in the version before without any problems.

Syl20 wrote:
That said, this is an unstable Gentoo system. Perhaps GCC 5.4 is a problem by itself, for example.

Of course, it's an unstable system. There have to be people to test unstable software and file bug reports. Software isn't becoming stable by itself.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Mar 30, 2017 10:14 pm    Post subject: Reply with quote

how about using firefox-bin?

afaik -mno- means disable of ... check gcc manual when you want to know more.

-mno-xop => xop is bulldozer amd cpu only feature, not ryzen ! not intel! => so its disabled for example
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 619
Location: France

PostPosted: Mon Apr 03, 2017 12:31 pm    Post subject: Reply with quote

musv wrote:
Hu and Sadako are completely right. It's just an expaned march=native. One reason ist distcc. A second reason is cross-compiling in a chroot, where march=native is even more complicated.

Ok, my bad. :oops:

Quote:
Of course, it's an unstable system. There have to be people to test unstable software and file bug reports. Software isn't becoming stable by itself.

I know.

I reacted too fast, sorry for the noise.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum