Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639550 - Firefox crashes (SIGSEGV) when trying to share location
Summary: Firefox crashes (SIGSEGV) when trying to share location
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-03 01:12 UTC by afarah
Modified: 2017-12-03 17:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description afarah 2017-12-03 01:12:27 UTC
Using a clean profile, whenever I open a website that tries to access my location Firefox pops-up a dialog asking if I want to "share my location". When I click "share my location", Firefox crashes. This can be reproduced with both www-client/firefox-bin-45.9.0 and www-client/firefox-bin-52.5.0 (probably any versions in between too).

Crash report for 45.9: https://paste.debian.net/plainh/9f2f2ec5

I also have an strace trace, not sure if it's of any use. These are the last 5 lines:

poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}, {fd=24, events=POLLIN}], 3, 0) = 0 (Timeout)
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}, {fd=24, events=POLLIN}], 3, 0) = 0 (Timeout)
futex(0x7f951b86198c, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f951b861988, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
+++ exited with 11 +++

I also ran it with Valgrind. The output after the crash is large, and can be found here: https://paste.debian.net/plainh/2dcad969

The summary valgrind gives is:

==13048== Thread 51 Wifi Monitor:                                               
==13048== Invalid read of size 8                                                
==13048==    at 0xDF4981B: dbus_connection_set_exit_on_disconnect (in /usr/lib64/libdbus-1.so.3.14.8)
==13048==    by 0x8A0BF69: ??? (in /opt/firefox/libxul.so)                      
==13048==    by 0x8A0C0B9: ??? (in /opt/firefox/libxul.so)                      
==13048==    by 0x84CCC57: ??? (in /opt/firefox/libxul.so)                      
==13048==    by 0x84D49D8: ??? (in /opt/firefox/libxul.so)                      
==13048==    by 0x8A2B1BD: ??? (in /opt/firefox/libxul.so)                      
==13048==    by 0x8A13C01: ??? (in /opt/firefox/libxul.so)                      
==13048==    by 0x880DA8A: ??? (in /opt/firefox/libxul.so)                      
==13048==    by 0x6532294: ??? (in /opt/firefox/libnspr4.so)                    
==13048==    by 0x4E3F453: start_thread (in /lib64/libpthread-2.23.so)          
==13048==    by 0x5E5B28C: clone (in /lib64/libc-2.23.so)                       
==13048==  Address 0x8 is not stack'd, malloc'd or (recently) free'd            
==13048==                                                                       
==13048== Unsupported clone() flags: 0x800600                                   
==13048==                                                                       
==13048== The only supported clone() uses are:                                  
==13048==  - via a threads library (LinuxThreads or NPTL)                       
==13048==  - via the implementation of fork or vfork                            
==13048==                                                                       
==13048== Valgrind detected that your program requires                          
==13048== the following unimplemented functionality:                            
==13048==    Valgrind does not support general clone().                         
==13048== This may be because the functionality is hard to implement,           
==13048== or because no reasonable program would behave this way,               
==13048== or because nobody has yet needed it.  In any case, let us know at     
==13048== www.valgrind.org and/or try to work around the problem, if you can.   
==13048==                                                                       
==13048== Valgrind has to exit now.  Sorry.  Bye!                               
==13048==                                  

Reproducible: Always

Steps to Reproduce:
1. Start Firefox in any of the aforementioned versions
2. Open a website that requests your location
3. Click "Share my location"
Actual Results:  
Firefox crashes with SIGSEGV

Expected Results:  
Firefox does not crash and hopefully shares the location

Ask if you need it
Comment 1 Jory A. Pratt gentoo-dev 2017-12-03 17:59:15 UTC
firefox-bin package comes from mozilla upstream, feel free to open a bug report there and cc the mozilla herd on the bug report.