[gtk2] segmentation on startup with non-local X11 display or display "owned" by another user

UNCONFIRMED
Unassigned

Status

()

Core
Widget: Gtk
P5
normal
UNCONFIRMED
2 years ago
2 years ago

People

(Reporter: Andreas Metzler, Unassigned)

Tracking

49 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: tpi:-)

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
Created attachment 8783315 [details]
gdb backtrace

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
Build ID: 20160807230315

Steps to reproduce:

firefox 49,0 beta 1 segfaults at startup when $DISPLAY is not "owned" by the user running firefox. This shows up e.g. when running through ssh adifferentuser@localhost or with su - and
manual setting of DISPLAY and XAUTHORITY.

At the time of crash a "Firefox Update" window is open, the main browser window does not show.

gdb backtrace (with MOZILLA_DISABLE_PLUGINS=1) attached.

This is not present in 48.0 and was found by running the package in Debian/experimental. https://packages.debian.org/source/experimental/firefox on amd64.

See http://bugs.debian.org/834995


Actual results:

Segmentation fault at _cairo_user_data_array_fini (array=0x7fffd53e5b50)


Expected results:

Should run.
(Reporter)

Updated

2 years ago
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Please try to reproduce with a mozilla.org build, for 2 reasons:
- mozilla.org builds are using Gtk+3, Debian builds are still using Gtk+2
- mozilla.org builds will provide a crash report.
(Reporter)

Comment 2

2 years ago
firefox-49.0b4.tar.bz2 seems to run.
Would you mind trying with a rebuild of the Debian package with GTK3=1 set in the environment?

Comment 4

2 years ago
I attempted to reproduce this on Xubuntu 16.04, but I could not.  I first ran "sudo -i" so I was running as root, a different user than the user who owned the X display.  I then ran both these versions from the command line:

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160728203720 (the distribution version)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
Build ID: 20160825132718 (49.0, beta 7, Mozilla build)

Neither resulted in a seg fault.
(Reporter)

Comment 5

2 years ago
(In reply to Ron Bentley [:rtb] from comment #4)
> I attempted to reproduce this on Xubuntu 16.04, but I could not.  I first
> ran "sudo -i" so I was running as root, a different user than the user who
> owned the X display.  I then ran both these versions from the command line:
> 
> User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101
> Firefox/48.0
> Build ID: 20160728203720 (the distribution version)
> 
> User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101
> Firefox/49.0
> Build ID: 20160825132718 (49.0, beta 7, Mozilla build)
> 
> Neither resulted in a seg fault.

Could you please try with a regular different user? Running as superuser might not show the issue.
(Reporter)

Comment 6

2 years ago
(In reply to Mike Hommey [:glandium] from comment #3)
> Would you mind trying with a rebuild of the Debian package with GTK3=1 set
> in the environment?

I have just done that (after installing libgtk-3-dev). The GTK3=1 rebuild does not segfault.
Summary: segmentation on startup with non-local X11 display or display "owned" by another user → [gtk2] segmentation on startup with non-local X11 display or display "owned" by another user
Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Updated

2 years ago
Whiteboard: tpi:-
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.