Closed Bug 1346789 Opened 7 years ago Closed 7 years ago

Firefox 52 on Linux crashes if the LOGNAME environment variable is undefined

Categories

(Firefox :: Untriaged, defect)

52 Branch
x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 1345413

People

(Reporter: jason.lander2, Unassigned)

Details

(Keywords: crash)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170303012758

Steps to reproduce:

The simplest way to reproduce the issue is to run...

  env -u LOGNAME firefox

on an Ubuntu 14.04 or 16.04 system.

Attaching GDB suggests the fault is in /usr/lib/firefox/libxul.so and is associated with passing a null pointer.

0x00007fffe8699280 in nsCharTraits<char>::length (aStr=0x0) at /build/firefox-ZQQBpC/firefox-52.0+build2/xpcom/string/nsCharTraits.h:498




Actual results:

The firefox crash dialogue appears


Expected results:

Firefox should have started.
Severity: normal → critical
Keywords: crash
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

I have tested this issue on Ubuntu 16.04 x64 with the latest Firefox release (52.0) and managed to reproduce it.
When running the "env -u LOGNAME firefox" command in the terminal, the firefox crash dialog appears:
Here is the crash report:
https://crash-stats.mozilla.com/report/index/3095ee14-495a-4fb5-9d79-410272170316

Taking in consideration the crash report and the bug mentioned there, will mark this as a duplicate of bug 1345413.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.