Open Bug 1655511 Opened 4 years ago Updated 5 days ago

AddressSanitizer: SEGV /builds/worker/checkouts/gecko/docshell/shistory/ChildSHistory.cpp:74:13 in mozilla::dom::ChildSHistory::Index()

Categories

(Core :: DOM: Navigation, defect, P3)

defect

Tracking

()

Tracking Status
firefox81 --- affected

People

(Reporter: jkratzer, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: crash, testcase, Whiteboard: [bugmon:confirmed,bisected])

Attachments

(1 file)

Attached file testcase.html

Testcase found while fuzzing mozilla-central rev 798bdad605b9.

==27552==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7facbb0b9f0d bp 0x7ffebe6c0cf0 sp 0x7ffebe6c0c20 T0)
==27552==The signal is caused by a READ memory access.
==27552==Hint: address points to the zero page.
    #0 0x7facbb0b9f0c in mozilla::dom::ChildSHistory::Index() /builds/worker/checkouts/gecko/docshell/shistory/ChildSHistory.cpp:74:13
    #1 0x7facbb0baf32 in mozilla::dom::ChildSHistory::Go(int, bool, mozilla::ErrorResult&) /builds/worker/checkouts/gecko/docshell/shistory/ChildSHistory.cpp:125:31
    #2 0x7facbb0e3aca in mozilla::dom::ChildSHistory::PendingAsyncHistoryNavigation::Run() /builds/worker/workspace/obj-build/dist/include/mozilla/dom/ChildSHistory.h:105:19
    #3 0x7facaf89eba9 in mozilla::RunnableTask::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:242:16
    #4 0x7facaf89b095 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:512:26
    #5 0x7facaf898f52 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:371:15
    #6 0x7facaf89938f in mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:168:36
    #7 0x7facaf8aa9b1 in operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:83:37
    #8 0x7facaf8aa9b1 in mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_4>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:577:5
    #9 0x7facaf8cfa6c in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1234:14
    #10 0x7facaf8da95c in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:513:10
    #11 0x7facb0c9130f in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:87:21
    #12 0x7facb0b72057 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:334:10
    #13 0x7facb0b72057 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:327:3
    #14 0x7facb0b72057 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:309:3
    #15 0x7facb7eb1ab8 in nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:137:27
    #16 0x7facbba7aa06 in XRE_RunAppShell() /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:913:20
    #17 0x7facb0b72057 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:334:10
    #18 0x7facb0b72057 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:327:3
    #19 0x7facb0b72057 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:309:3
    #20 0x7facbba79fef in XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:744:34
    #21 0x555f84415f53 in content_process_main /builds/worker/checkouts/gecko/browser/app/../../ipc/contentproc/plugin-container.cpp:56:28
    #22 0x555f84415f53 in main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:303:18
    #23 0x7facd38a0b96 in __libc_start_main /build/glibc-2ORdQG/glibc-2.27/csu/../csu/libc-start.c:310

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /builds/worker/checkouts/gecko/docshell/shistory/ChildSHistory.cpp:74:13 in mozilla::dom::ChildSHistory::Index()
Flags: in-testsuite?
Priority: -- → P3
Whiteboard: [bugmon:confirm] → [bugmon:bisected,confirmed]
Bugmon Analysis:
Verified bug as reproducible on mozilla-central 20200803094100-84b257d07031.
The bug appears to have been introduced in the following build range:
> Start: 61bdbb94ab7abd434c60e2a40fa9f07b11237ebb (20200611034550)
> End: 9b3cf2944aa064c840285247fa62cdf26e203935 (20200611045214)
> Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=61bdbb94ab7abd434c60e2a40fa9f07b11237ebb&tochange=9b3cf2944aa064c840285247fa62cdf26e203935

I can't reproduce this. Is this still an issue?

Flags: needinfo?(jkratzer)

Peter, I cannot reproduce it either. I've updated the whiteboard so that bugmon will bisect when this issue was fixed.

Flags: needinfo?(jkratzer)
Whiteboard: [bugmon:bisected,confirmed] → [bugmon:bisect,confirmed]

Bugmon Analysis:
The bug appears to have been fixed in the following build range:

Start: 056bbc57ca7c4eaff9ed44bbde2a9595a2258216 (20200904033504)
End: d871d71f519666171d7c300d585125d98ffd6a4e (20200904033328)
Pushlog: https://hg.mozilla.org/mozilla-unified/pushloghtml?fromchange=056bbc57ca7c4eaff9ed44bbde2a9595a2258216&tochange=d871d71f519666171d7c300d585125d98ffd6a4e

Whiteboard: [bugmon:bisect,confirmed] → [bugmon:confirmed,bisected]

Bugmon Analysis
Unable to reproduce bug 1655511 using build mozilla-central 20201205093858-7ce95b6cde26. Without a baseline, bugmon is unable to analyze this bug.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Keywords: bugmon
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: