Open Bug 1648225 Opened 4 years ago Updated 2 years ago

Assertion failure: [GFX1]: void mozilla::gl::GLContext::fFramebufferTextureLayer(GLenum, GLenum, GLuint, GLint, GLint): Generated unexpected GL_INVALID_VALUE error, at /builds/worker/checkouts/gecko/gfx/2d/Logging.h:756

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect

Tracking

()

Tracking Status
firefox79 --- affected

People

(Reporter: jkratzer, Unassigned)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file)

Attached file testcase.html

Testcase found while fuzzing mozilla-central rev e858eb7ffeba (built with --enable-debug).

Assertion failure: [GFX1]: void mozilla::gl::GLContext::fFramebufferTextureLayer(GLenum, GLenum, GLuint, GLint, GLint): Generated unexpected GL_INVALID_VALUE error, at /builds/worker/checkouts/gecko/gfx/2d/Logging.h:756

rax = 0x00007fc6607cc0c7   rdx = 0x0000000000000000
rcx = 0x0000562243a4ca58   rbx = 0x00007fc6607cc06f
rsi = 0x00007fc671ba98b0   rdi = 0x00007fc671ba8680
rbp = 0x00007ffe728d4e00   rsp = 0x00007ffe728d4df0
r8 = 0x00007fc671ba98b0    r9 = 0x00007fc672d0f780
r10 = 0x0000000000000002   r11 = 0x0000000000000000
r12 = 0x0000562244f83170   r13 = 0x00007ffe728d5080
r14 = 0x00007ffe728d4e40   r15 = 0x00007ffe728d4e40
rip = 0x00007fc658dd1f67
OS|Linux|0.0.0 Linux 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64
CPU|amd64|family 6 model 94 stepping 3|8
GPU|||
Crash|SIGSEGV|0x0|0
0|0|libxul.so|mozilla::gfx::Log<1, mozilla::gfx::CriticalLogger>::WriteLog(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)|hg:hg.mozilla.org/mozilla-central:gfx/2d/Logging.h:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|757|0x25
0|1|libxul.so|mozilla::gfx::Log<1, mozilla::gfx::CriticalLogger>::Flush()|hg:hg.mozilla.org/mozilla-central:gfx/2d/Logging.h:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|279|0x8
0|2|libxul.so|mozilla::gfx::Log<1, mozilla::gfx::CriticalLogger>::~Log()|hg:hg.mozilla.org/mozilla-central:gfx/2d/Logging.h:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|272|0xe
0|3|libxul.so|mozilla::gl::GLContext::AfterGLCall_Debug(char const*) const|hg:hg.mozilla.org/mozilla-central:gfx/gl/GLContext.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|2507|0x52
0|4|libxul.so|mozilla::WebGLFBAttachPoint::DoAttachment(mozilla::gl::GLContext*) const|hg:hg.mozilla.org/mozilla-central:dom/canvas/WebGLFramebuffer.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|249|0xd
0|5|libxul.so|mozilla::WebGLFramebuffer::FramebufferAttach(unsigned int, mozilla::webgl::FbAttachInfo const&)|hg:hg.mozilla.org/mozilla-central:dom/canvas/WebGLFramebuffer.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|0|0x8
0|6|libxul.so|mozilla::WebGLContext::FramebufferAttach(unsigned int, unsigned int, unsigned int, mozilla::webgl::FbAttachInfo const&)|hg:hg.mozilla.org/mozilla-central:dom/canvas/WebGLContextGL.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|354|0xe
0|7|libxul.so|mozilla::HostWebGLContext::FramebufferAttach(unsigned int, unsigned int, unsigned int, unsigned long, int, int, int) const|hg:hg.mozilla.org/mozilla-central:dom/canvas/HostWebGLContext.h:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|360|0x21
0|8|libxul.so|void mozilla::RunOn<void (mozilla::HostWebGLContext::*)(unsigned int, unsigned int, unsigned int, unsigned long, int, int, int) const, &(mozilla::HostWebGLContext::FramebufferAttach(unsigned int, unsigned int, unsigned int, unsigned long, int, int, int) const), void, unsigned int const&, unsigned int const&, unsigned int const&, unsigned long&, unsigned int const&, unsigned int const&, unsigned int const&>(mozilla::ClientWebGLContext const&, unsigned int const&, unsigned int const&, unsigned int const&, unsigned long&, unsigned int const&, unsigned int const&, unsigned int const&)|hg:hg.mozilla.org/mozilla-central:dom/canvas/ClientWebGLContext.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|372|0x1a
0|9|libxul.so|mozilla::ClientWebGLContext::FramebufferAttach(unsigned int, unsigned int, unsigned int, mozilla::WebGLRenderbufferJS*, mozilla::WebGLTextureJS*, unsigned int, unsigned int, unsigned int) const|hg:hg.mozilla.org/mozilla-central:dom/canvas/ClientWebGLContext.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|0|0x7
0|10|libxul.so|mozilla::ClientWebGLContext::FramebufferTextureLayer(unsigned int, unsigned int, mozilla::WebGLTextureJS*, int, int) const|hg:hg.mozilla.org/mozilla-central:dom/canvas/ClientWebGLContext.h:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|1384|0x19
0|11|libxul.so|mozilla::dom::WebGL2RenderingContext_Binding::framebufferTextureLayer(JSContext*, JS::Handle<JSObject*>, void*, JSJitMethodCallArgs const&)|s3:gecko-generated-sources:c70a25c1d99680941f7ee00c7ed7ace74aae0f499362c91af6ecbba77e1178609ced1fe8d10fe1b4bb664b46b2673f3b203a62607c3768e345b84918809291d9/dom/bindings/WebGL2RenderingContextBinding.cpp:|1558|0x1a
0|12|libxul.so|bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>(JSContext*, unsigned int, JS::Value*)|hg:hg.mozilla.org/mozilla-central:dom/bindings/BindingUtils.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|3219|0x21
0|13|libxul.so|CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|484|0x12
0|14|libxul.so|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|576|0xe
0|15|libxul.so|InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|639|0x10
0|16|libxul.so|Interpret(JSContext*, js::RunState&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|643|0xa
0|17|libxul.so|js::RunScript(JSContext*, js::RunState&)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|456|0xb
0|18|libxul.so|js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|611|0x8
0|19|libxul.so|InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason)|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|639|0x10
0|20|libxul.so|<name omitted>|hg:hg.mozilla.org/mozilla-central:js/src/vm/Interpreter.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|656|0xb
0|21|libxul.so|JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>)|hg:hg.mozilla.org/mozilla-central:js/src/jsapi.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|2846|0x23
0|22|libxul.so|mozilla::dom::EventListener::HandleEvent(mozilla::dom::BindingCallContext&, JS::Handle<JS::Value>, mozilla::dom::Event&, mozilla::ErrorResult&)|s3:gecko-generated-sources:2563ad09677feb8ddf64827a409899848ef6a80bfacaa11f581c512536a6fb0c779d8b29517ba6358a054c6d475f770bf7bac2913a941d0394881c5649b08603/dom/bindings/EventListenerBinding.cpp:|55|0xe
0|23|libxul.so|void mozilla::dom::EventListener::HandleEvent<mozilla::dom::EventTarget*>(mozilla::dom::EventTarget* const&, mozilla::dom::Event&, mozilla::ErrorResult&, char const*, mozilla::dom::CallbackObject::ExceptionHandling, JS::Realm*)|s3:gecko-generated-sources:99837b3cdc69c5eb1234f9d2b3e771dcff734d56a022bedb1d00c0cf4ee6243fb5c91397a058f2ddab63bda8ed6b581ea1232a0229033866910c7289d24cbc2d/dist/include/mozilla/dom/EventListenerBinding.h:|66|0x21
0|24|libxul.so|mozilla::EventListenerManager::HandleEventSubType(mozilla::EventListenerManager::Listener*, mozilla::dom::Event*, mozilla::dom::EventTarget*)|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|1082|0x2c
0|25|libxul.so|mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, nsEventStatus*, bool)|hg:hg.mozilla.org/mozilla-central:dom/events/EventListenerManager.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|1279|0x15
0|26|libxul.so|mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&)|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|355|0xb
0|27|libxul.so|mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&)|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|557|0x19
0|28|libxul.so|mozilla::EventDispatcher::Dispatch(nsISupports*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*)|hg:hg.mozilla.org/mozilla-central:dom/events/EventDispatcher.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|1054|0x5
0|29|libxul.so|nsDocumentViewer::LoadComplete(nsresult)|hg:hg.mozilla.org/mozilla-central:layout/base/nsDocumentViewer.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|1148|0x1c
0|30|libxul.so|nsDocShell::EndPageLoad(nsIWebProgress*, nsIChannel*, nsresult)|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|5684|0x18
0|31|libxul.so|nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult)|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|5426|0xb
0|32|libxul.so|non-virtual thunk to nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult)|hg:hg.mozilla.org/mozilla-central:docshell/base/nsDocShell.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|0|0x10
0|33|libxul.so|nsDocLoader::DoFireOnStateChange(nsIWebProgress*, nsIRequest*, int&, nsresult)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|1367|0x2b
0|34|libxul.so|nsDocLoader::doStopDocumentLoad(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|937|0x28
0|35|libxul.so|nsDocLoader::DocLoaderIsEmpty(bool, mozilla::Maybe<nsresult> const&)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|757|0xe
0|36|libxul.so|nsDocLoader::OnStopRequest(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|640|0x12
0|37|libxul.so|non-virtual thunk to nsDocLoader::OnStopRequest(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:uriloader/base/nsDocLoader.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|0|0xd
0|38|libxul.so|mozilla::net::nsLoadGroup::NotifyRemovalObservers(nsIRequest*, nsresult)|hg:hg.mozilla.org/mozilla-central:netwerk/base/nsLoadGroup.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|615|0x14
0|39|libxul.so|mozilla::net::nsLoadGroup::RemoveRequest(nsIRequest*, nsISupports*, nsresult)|hg:hg.mozilla.org/mozilla-central:netwerk/base/nsLoadGroup.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|522|0xe
0|40|libxul.so|mozilla::dom::Document::DoUnblockOnload()|hg:hg.mozilla.org/mozilla-central:dom/base/Document.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|10714|0x1c
0|41|libxul.so|mozilla::dom::Document::UnblockOnload(bool)|hg:hg.mozilla.org/mozilla-central:dom/base/Document.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|10646|0x8
0|42|libxul.so|mozilla::dom::Document::DispatchContentLoadedEvents()|hg:hg.mozilla.org/mozilla-central:dom/base/Document.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|7280|0xd
0|43|libxul.so|mozilla::detail::RunnableMethodImpl<mozilla::dom::Document*, void (mozilla::dom::Document::*)(), true, (mozilla::RunnableKind)0>::Run()|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.h:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|1238|0x17
0|44|libxul.so|mozilla::SchedulerGroup::Runnable::Run()|hg:hg.mozilla.org/mozilla-central:xpcom/threads/SchedulerGroup.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|146|0x11
0|45|libxul.so|nsThread::ProcessNextEvent(bool, bool*)|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|1234|0xe
0|46|libxul.so|NS_ProcessNextEvent(nsIThread*, bool)|hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThreadUtils.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|501|0xc
0|47|libxul.so|mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*)|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|87|0x7
0|48|libxul.so|MessageLoop::RunInternal()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|315|0x17
0|49|libxul.so|MessageLoop::Run()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|290|0x8
0|50|libxul.so|nsBaseAppShell::Run()|hg:hg.mozilla.org/mozilla-central:widget/nsBaseAppShell.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|137|0xd
0|51|libxul.so|XRE_RunAppShell()|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|913|0xe
0|52|libxul.so|mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*)|hg:hg.mozilla.org/mozilla-central:ipc/glue/MessagePump.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|237|0x5
0|53|libxul.so|MessageLoop::RunInternal()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|315|0x17
0|54|libxul.so|MessageLoop::Run()|hg:hg.mozilla.org/mozilla-central:ipc/chromium/src/base/message_loop.cc:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|290|0x8
0|55|libxul.so|XRE_InitChildProcess(int, char**, XREChildData const*)|hg:hg.mozilla.org/mozilla-central:toolkit/xre/nsEmbedFunctions.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|744|0x5
0|56|firefox-bin|content_process_main(mozilla::Bootstrap*, int, char**)|hg:hg.mozilla.org/mozilla-central:ipc/contentproc/plugin-container.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|56|0x11
0|57|firefox-bin|main|hg:hg.mozilla.org/mozilla-central:browser/app/nsBrowserApp.cpp:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|303|0x20
0|58|libc.so.6||||0x21b97
0|59|firefox-bin|<name omitted>|hg:hg.mozilla.org/mozilla-central:mfbt/UniquePtr.h:e858eb7ffebab87cc1902efc7f7d17dd083ebc8e|253|0x17
Flags: in-testsuite?
Whiteboard: [bugmon:confirm] → [bugmon:bisected,confirmed]
Bugmon Analysis:
Verified bug as reproducible on mozilla-central 20200625161839-324d5257f6f7.
Failed to bisect testcase (Start build crashes!):
> Start: 70e7c3ef6cae2266147c38ad250692ffe84aec26 (20190627093448)
> End: e858eb7ffebab87cc1902efc7f7d17dd083ebc8e (20200624093107)
> BuildFlags: BuildFlags(asan=False, tsan=False, debug=True, fuzzing=False, coverage=False, valgrind=False)

Bugmon Analysis
Testcase crashes using the initial build (mozilla-central 20210306093316-de11c0fbd901) but not with tip (mozilla-central 20220304214025-967ae1edad41.)
The bug appears to have been fixed in the following build range:

Start: d6aabaf771d4c6ee0a63b24e79b3afe379ce7bd6 (20220301204359)
End: 1edd1e4056e62592fe5f457926e5012ad30003d6 (20220301205259)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=d6aabaf771d4c6ee0a63b24e79b3afe379ce7bd6&tochange=1edd1e4056e62592fe5f457926e5012ad30003d6
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: