Open Bug 751336 Opened 13 years ago Updated 2 years ago

Maybe avoid using glXCreatePixmap

Categories

(Core :: Graphics, defect)

x86
All
defect

Tracking

()

People

(Reporter: jrmuizel, Unassigned)

Details

apitrace doesn't support glXCreatePixmap and it might be crashy. Maybe we should not use it and just use a hidden window and glXCreateWindow()
Severity: normal → S3

FWIW, I found this instance of a crash for Linux in our logs:

[task 2023-02-24T11:21:52.252Z] 11:21:52    ERROR - GECKO(1582) | ==1582==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x7f133e94fde0 bp 0x62100085fd00 sp 0x7f1333ddf980 T29)
[task 2023-02-24T11:21:52.254Z] 11:21:52     INFO - GECKO(1582) | ==1582==The signal is caused by a READ memory access.
[task 2023-02-24T11:21:52.255Z] 11:21:52     INFO - GECKO(1582) | ==1582==Hint: this fault was caused by a dereference of a high value address (see register values below).  Disassemble the provided pc to learn which register was used.
[task 2023-02-24T11:21:53.628Z] 11:21:53     INFO - GECKO(1582) |     #0 0x7f133e94fde0  (/usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0+0x38de0) (BuildId: 857c1e0ec2c7197c4f2b0c91df919724254af5e5)
[task 2023-02-24T11:21:53.629Z] 11:21:53     INFO - GECKO(1582) |     #1 0x7f133e94ff82  (/usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0+0x38f82) (BuildId: 857c1e0ec2c7197c4f2b0c91df919724254af5e5)
[task 2023-02-24T11:21:53.630Z] 11:21:53     INFO - GECKO(1582) |     #2 0x7f133e950278  (/usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0+0x39278) (BuildId: 857c1e0ec2c7197c4f2b0c91df919724254af5e5)
[task 2023-02-24T11:21:53.630Z] 11:21:53     INFO - GECKO(1582) |     #3 0x7f133e95086c  (/usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0+0x3986c) (BuildId: 857c1e0ec2c7197c4f2b0c91df919724254af5e5)
[task 2023-02-24T11:21:53.632Z] 11:21:53     INFO - GECKO(1582) |     #4 0x7f133ee49997 in glXCreatePixmap (/usr/lib/x86_64-linux-gnu/libGLX.so.0+0x4997) (BuildId: 6195bcee98ae963430016f23c66900b4501e6dcd)
[task 2023-02-24T11:21:53.632Z] 11:21:53     INFO - GECKO(1582) |     #5 0x7f13e006f0e8 in fCreatePixmap /builds/worker/checkouts/gecko/gfx/gl/GLXLibrary.h:137:12
[task 2023-02-24T11:21:53.633Z] 11:21:53     INFO - GECKO(1582) |     #6 0x7f13e006f0e8 in CreateOffscreenPixmapContext /builds/worker/checkouts/gecko/gfx/gl/GLContextProviderGLX.cpp:876:28
[task 2023-02-24T11:21:53.634Z] 11:21:53     INFO - GECKO(1582) |     #7 0x7f13e006f0e8 in mozilla::gl::GLContextProviderGLX::CreateHeadless(mozilla::gl::GLContextCreateDesc const&, nsTSubstring<char>*) /builds/worker/checkouts/gecko/gfx/gl/GLContextProviderGLX.cpp:892:10
[task 2023-02-24T11:21:53.635Z] 11:21:53     INFO - GECKO(1582) |     #8 0x7f13e2ff151a in operator() /builds/worker/checkouts/gecko/dom/canvas/WebGLContext.cpp:370:38
[task 2023-02-24T11:21:53.636Z] 11:21:53     INFO - GECKO(1582) |     #9 0x7f13e2ff151a in operator() /builds/worker/checkouts/gecko/dom/canvas/WebGLContext.cpp:383:11
[task 2023-02-24T11:21:53.638Z] 11:21:53     INFO - GECKO(1582) |     #10 0x7f13e2ff151a in mozilla::WebGLContext::CreateAndInitGL(bool, std::vector<mozilla::WebGLContext::FailureReason, std::allocator<mozilla::WebGLContext::FailureReason>>*) /builds/worker/checkouts/gecko/dom/canvas/WebGLContext.cpp:377:22
[task 2023-02-24T11:21:53.638Z] 11:21:53     INFO - GECKO(1582) |     #11 0x7f13e2ff2c99 in operator() /builds/worker/checkouts/gecko/dom/canvas/WebGLContext.cpp:535:17
[task 2023-02-24T11:21:53.639Z] 11:21:53     INFO - GECKO(1582) |     #12 0x7f13e2ff2c99 in mozilla::WebGLContext::Create(mozilla::HostWebGLContext&, mozilla::webgl::InitContextDesc const&, mozilla::webgl::InitContextResult*) /builds/worker/checkouts/gecko/dom/canvas/WebGLContext.cpp:509:14
[task 2023-02-24T11:21:53.641Z] 11:21:53     INFO - GECKO(1582) |     #13 0x7f13e2f2e019 in mozilla::HostWebGLContext::Create(mozilla::HostWebGLContext::OwnerData const&, mozilla::webgl::InitContextDesc const&, mozilla::webgl::InitContextResult*) /builds/worker/checkouts/gecko/dom/canvas/HostWebGLContext.cpp:58:16
[task 2023-02-24T11:21:53.641Z] 11:21:53     INFO - GECKO(1582) |     #14 0x7f13e3077ca9 in mozilla::dom::WebGLParent::RecvInitialize(mozilla::webgl::InitContextDesc const&, mozilla::webgl::InitContextResult*) /builds/worker/checkouts/gecko/dom/canvas/WebGLParent.cpp:18:11
[task 2023-02-24T11:21:53.642Z] 11:21:53     INFO - GECKO(1582) |     #15 0x7f13e317d438 in mozilla::dom::PWebGLParent::OnMessageReceived(IPC::Message const&, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message>>&) /builds/worker/workspace/obj-build/ipc/ipdl/PWebGLParent.cpp:414:79
[task 2023-02-24T11:21:53.646Z] 11:21:53     INFO - GECKO(1582) |     #16 0x7f13e077c382 in mozilla::gfx::PCanvasManagerParent::OnMessageReceived(IPC::Message const&, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message>>&) /builds/worker/workspace/obj-build/ipc/ipdl/PCanvasManagerParent.cpp:377:32
[task 2023-02-24T11:21:53.647Z] 11:21:53     INFO - GECKO(1582) |     #17 0x7f13df6e01da in mozilla::ipc::MessageChannel::DispatchSyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message>>&) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1767:25
[task 2023-02-24T11:21:53.647Z] 11:21:53     INFO - GECKO(1582) |     #18 0x7f13df6de4da in mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message>>) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1723:9
[task 2023-02-24T11:21:53.650Z] 11:21:53     INFO - GECKO(1582) |     #19 0x7f13df6dee2a in mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1525:3
[task 2023-02-24T11:21:53.650Z] 11:21:53     INFO - GECKO(1582) |     #20 0x7f13df6df984 in mozilla::ipc::MessageChannel::MessageTask::Run() /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1623:14
[task 2023-02-24T11:21:53.651Z] 11:21:53     INFO - GECKO(1582) |     #21 0x7f13de155660 in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1191:16
[task 2023-02-24T11:21:53.651Z] 11:21:53     INFO - GECKO(1582) |     #22 0x7f13de15f004 in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:473:10
[task 2023-02-24T11:21:53.651Z] 11:21:53     INFO - GECKO(1582) |     #23 0x7f13df6e7a08 in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:300:20
[task 2023-02-24T11:21:53.652Z] 11:21:53     INFO - GECKO(1582) |     #24 0x7f13df58b977 in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:381:10
[task 2023-02-24T11:21:53.652Z] 11:21:53     INFO - GECKO(1582) |     #25 0x7f13df58b977 in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:374:3
[task 2023-02-24T11:21:53.653Z] 11:21:53     INFO - GECKO(1582) |     #26 0x7f13df58b977 in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:356:3
[task 2023-02-24T11:21:53.653Z] 11:21:53     INFO - GECKO(1582) |     #27 0x7f13de14e049 in nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:383:10
[task 2023-02-24T11:21:53.654Z] 11:21:53     INFO - GECKO(1582) |     #28 0x7f13fffd0628 in _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5
[task 2023-02-24T11:21:53.654Z] 11:21:53     INFO - GECKO(1582) |     #29 0x7f13ffce86da in start_thread /tmp/glibc/nptl/pthread_create.c:463
OS: macOS → All
You need to log in before you can comment on or make changes to this bug.