pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

webkit-gtk: add a more complete backtrace



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sun Apr 24 18:57:55 2022 +0200
Changeset:	b577cb8c9956bb1f86199ab1d4818a4165059d7c

Modified Files:
	webkit-gtk/TODO

Log Message:
webkit-gtk: add a more complete backtrace

Add a backtrace transcript of `jsc' built with `-g2'.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b577cb8c9956bb1f86199ab1d4818a4165059d7c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 webkit-gtk/TODO | 47 +++++++++++++++++++++++++++++------------------
 1 file changed, 29 insertions(+), 18 deletions(-)

diffs:
diff --git a/webkit-gtk/TODO b/webkit-gtk/TODO
index 5f5e12c6d9..b6ad0d6df4 100644
--- a/webkit-gtk/TODO
+++ b/webkit-gtk/TODO
@@ -3,25 +3,36 @@ Actually crashes as follows, minimal reproducer via `jsc':
 $ /usr/pkg/libexec/webkit2gtk-4.0/jsc
 Segmentation fault (core dumped)
 
-...and:
+...and, if compiled with CFLAGS=-g, and just running jsc inside the work
+directory:
 
-$ gdb -core jsc.core /usr/pkg/libexec/webkit2gtk-4.0/jsc
-Reading symbols from /usr/pkg/libexec/webkit2gtk-4.0/jsc...
-(No debugging symbols found in /usr/pkg/libexec/webkit2gtk-4.0/jsc)
-[New process 7226]
-[New process 19274]
+$ env LD_LIBRARY_PATH=./lib gdb -core jsc.core bin/jsc
+[...]
+Reading symbols from bin/jsc...
+[New process 6829]
+[New process 29521]
 Core was generated by `jsc'.
 Program terminated with signal SIGSEGV, Segmentation fault.
-#0  0x00007b211f18589d in JSC::MarkedBlock::Handle::Handle(JSC::Heap&, JSC::AlignedMemoryAllocator*, void*) () from /usr/pkg/lib/libjavascriptcoregtk-4.0.so.18
-[Current thread is 1 (process 7226)]
+#0  JSC::MarkedBlock::Footer::Footer (handle=..., vm=..., this=0x7aadc0007ed0) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/MarkedBlock.cpp:97
+97      MarkedBlock::Footer::Footer(VM& vm, Handle& handle)
+[Current thread is 1 (process 6829)]
 (gdb) bt
-#0  0x00007b211f18589d in JSC::MarkedBlock::Handle::Handle(JSC::Heap&, JSC::AlignedMemoryAllocator*, void*) () from /usr/pkg/lib/libjavascriptcoregtk-4.0.so.18
-#1  0x00007b211f18597b in JSC::MarkedBlock::tryCreate(JSC::Heap&, JSC::AlignedMemoryAllocator*) () from /usr/pkg/lib/libjavascriptcoregtk-4.0.so.18
-#2  0x00007b211f15849a in JSC::BlockDirectory::tryAllocateBlock(JSC::Heap&) () from /usr/pkg/lib/libjavascriptcoregtk-4.0.so.18
-#3  0x00007b211f18228e in JSC::LocalAllocator::allocateSlowCase(JSC::Heap&, JSC::GCDeferralContext*, JSC::AllocationFailureMode) () from /usr/pkg/lib/libjavascriptcoregtk-4.0.so.18
-#4  0x00007b211fc7163c in void* JSC::allocateCell<JSC::Structure>(JSC::VM&, unsigned long) () from /usr/pkg/lib/libjavascriptcoregtk-4.0.so.18
-#5  0x00007b211f5ba3ad in JSC::VM::VM(JSC::VM::VMType, JSC::HeapType, WTF::RunLoop*, bool*) () from /usr/pkg/lib/libjavascriptcoregtk-4.0.so.18
-#6  0x00007b211f5bcd64 in JSC::VM::create(JSC::HeapType, WTF::RunLoop*) () from /usr/pkg/lib/libjavascriptcoregtk-4.0.so.18
-#7  0x0000000050219366 in int runJSC<jscmain(int, char**)::{lambda(JSC::VM&, GlobalObject*, bool&)#1}>(CommandLine const&, bool, jscmain(int, char**)::{lambda(JSC::VM&, GlobalObject*, bool&)#1} const&) [clone .constprop.0] ()
-#8  0x000000005021ad2b in jscmain(int, char**) ()
-#9  0x000000005021be21 in main ()
+#0  JSC::MarkedBlock::Footer::Footer (handle=..., vm=..., this=0x7aadc0007ed0) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/MarkedBlock.cpp:97
+#1  JSC::MarkedBlock::MarkedBlock (handle=..., vm=..., this=0x7aadc0004000) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/MarkedBlock.cpp:87
+#2  JSC::MarkedBlock::Handle::Handle (this=0x7aae178d0000, heap=..., alignedMemoryAllocator=0x7aae178ec9b0, blockSpace=0x7aadc0004000) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/MarkedBlock.cpp:66
+#3  0x00007aae1ed8590b in JSC::MarkedBlock::tryCreate (heap=..., alignedMemoryAllocator=0x7aae178ec9b0) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/MarkedBlock.cpp:59
+#4  0x00007aae1ed5842a in JSC::BlockDirectory::tryAllocateBlock (this=0x7aae17608560, heap=...) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/BlockDirectory.cpp:117
+#5  0x00007aae1ed8221e in JSC::LocalAllocator::allocateSlowCase (this=this@entry=0x7aae176099d0, heap=..., deferralContext=deferralContext@entry=0x0, failureMode=failureMode@entry=JSC::AllocationFailureMode::Assert) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/LocalAllocator.cpp:145
+#6  0x00007aae1f873acc in JSC::LocalAllocator::allocate(JSC::Heap&, JSC::GCDeferralContext*, JSC::AllocationFailureMode)::{lambda()#1}::operator()() const (__closure=<optimized out>) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/LocalAllocatorInlines.h:41
+#7  JSC::FreeList::allocate<JSC::LocalAllocator::allocate(JSC::Heap&, JSC::GCDeferralContext*, JSC::AllocationFailureMode)::{lambda()#1}>(JSC::LocalAllocator::allocate(JSC::Heap&, JSC::GCDeferralContext*, JSC::AllocationFailureMode)::{lambda()#1} const&) (slowPath=..., this=0x7aae176099e8) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/FreeListInlines.h:46
+#8  JSC::LocalAllocator::allocate (failureMode=JSC::AllocationFailureMode::Assert, deferralContext=0x0, heap=..., this=0x7aae176099d0) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/LocalAllocatorInlines.h:38
+#9  JSC::Allocator::allocate (mode=JSC::AllocationFailureMode::Assert, context=0x0, heap=..., this=<synthetic pointer>) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/AllocatorInlines.h:35
+#10 JSC::GCClient::IsoSubspace::allocate (failureMode=JSC::AllocationFailureMode::Assert, deferralContext=0x0, size=size@entry=112, vm=..., this=0x7aae176099d0) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/heap/IsoSubspaceInlines.h:36
+#11 JSC::tryAllocateCellHelper<JSC::Structure> (failureMode=JSC::AllocationFailureMode::Assert, deferralContext=0x0, size=size@entry=112, heap=...) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/runtime/JSCellInlines.h:181
+#12 JSC::allocateCell<JSC::Structure> (vm=..., size=size@entry=112) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/runtime/JSCellInlines.h:195
+#13 0x00007aae1f1bc32e in JSC::Structure::createStructure (vm=...) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/runtime/StructureInlines.h:72
+#14 JSC::VM::VM (this=0x7aae17600000, vmType=<optimized out>, heapType=<optimized out>, runLoop=<optimized out>, success=0x0) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/runtime/VM.cpp:254
+#15 0x00007aae1f1bece4 in JSC::VM::create (heapType=heapType@entry=JSC::HeapType::Large, runLoop=runLoop@entry=0x0) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/runtime/VM.cpp:520
+#16 0x000000008d4190e6 in runJSC<jscmain(int, char**)::<lambda(JSC::VM&, GlobalObject*, bool&)> >(const struct {...} &, bool, const CommandLine &) (func=..., isWorker=false, options=...) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/jsc.cpp:3607
+#17 0x000000008d41aafb in jscmain (argc=argc@entry=1, argv=argv@entry=0x7f7fffa92d98) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/jsc.cpp:3794
+#18 0x000000008d41bbf1 in main (argc=1, argv=0x7f7fffa92d98) at /tmp/pkgsrc/wip/webkit-gtk/work/webkitgtk-2.36.1/Source/JavaScriptCore/jsc.cpp:3020


Home | Main Index | Thread Index | Old Index