Closed Bug 1480315 Opened 7 years ago Closed 7 years ago

coredump caused by getenv since missing header in mozglue/misc/TimeStamp.cpp

Categories

(Core :: mozglue, defect)

52 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: changqing.li, Assigned: changqing.li)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36 Steps to reproduce: start polkit.service Actual results: report failed since segament fault. Expected results: service start success. Here is the bug analyze: 1. polkit depend on libmozjs-52.so. 2. during startup polkit, the call stack is here: JS::detail::InitWithFailureDiagnostic ->mozilla::TimeStamp::ProcessCreation->getenv(MOZ_APP_RESTART) 3. coredump happened during getenv since missing header stdlib.h, int convert to char* cause coredump 4. patch attached
Attachment #8996919 - Flags: review+
Keywords: checkin-needed
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Assignee: nobody → changqing.li
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: