Closed Bug 1296935 Opened 8 years ago Closed 6 years ago

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

Categories

(Core :: Widget: Gtk, defect, P5)

49 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: ametzler, Unassigned)

Details

(Whiteboard: tpi:-)

Attachments

(1 file)

Attached file 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.
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.
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?
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.
(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.
(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
Whiteboard: tpi:-
Priority: -- → P5
Closing GTK2 related bugs since we removed GTK2 support at the beginning of 2018 in bug 1278282. Probably best to open a new bug in the unlikely event that any of these are still relevant.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: