tracy icon indicating copy to clipboard operation
tracy copied to clipboard

Master Crashes on Ubuntu 22.04

Open nordlow opened this issue 5 months ago • 1 comments

The following JSON file is outputted from LDC's --ftime-trace.

See https://www.youtube.com/watch?v=b8wZqU5t9vs.

{
"beginningOfTime":405693610777,
"traceEvents": [
{"ph":"M","ts":0,"args":{"name":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/ldc2"},"name":"process_name","pid":101,"tid":101},
{"ph":"M","ts":0,"args":{"name":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/ldc2"},"cat":"","name":"thread_name","pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":11419,"args": {"memoryInUse_bytes":5905536,"allocatedMemory_bytes":6291072,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":11419,"args": {"memoryInUse_bytes":5905536,"allocatedMemory_bytes":6291072,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":12905,"args": {"memoryInUse_bytes":6989872,"allocatedMemory_bytes":7339584,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":12905,"args": {"memoryInUse_bytes":6989872,"allocatedMemory_bytes":7339584,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":12906,"args": {"memoryInUse_bytes":6989872,"allocatedMemory_bytes":7339584,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":20163,"args": {"memoryInUse_bytes":11982432,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":20163,"args": {"memoryInUse_bytes":11982432,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":20229,"args": {"memoryInUse_bytes":12009280,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":20229,"args": {"memoryInUse_bytes":12009280,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":20757,"args": {"memoryInUse_bytes":12118096,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":20757,"args": {"memoryInUse_bytes":12118096,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":20841,"args": {"memoryInUse_bytes":12135216,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":21119,"args": {"memoryInUse_bytes":12224032,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":21120,"args": {"memoryInUse_bytes":12224176,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":21619,"args": {"memoryInUse_bytes":12381696,"allocatedMemory_bytes":12582144,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":23385,"args": {"memoryInUse_bytes":13388544,"allocatedMemory_bytes":13630656,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":23398,"args": {"memoryInUse_bytes":13390080,"allocatedMemory_bytes":13630656,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":23404,"args": {"memoryInUse_bytes":13391024,"allocatedMemory_bytes":13630656,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":23550,"args": {"memoryInUse_bytes":13459664,"allocatedMemory_bytes":13630656,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":23579,"args": {"memoryInUse_bytes":13463328,"allocatedMemory_bytes":13630656,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":23833,"args": {"memoryInUse_bytes":13597392,"allocatedMemory_bytes":13630656,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":37874,"args": {"memoryInUse_bytes":21139232,"allocatedMemory_bytes":22018752,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":37874,"args": {"memoryInUse_bytes":21139232,"allocatedMemory_bytes":22018752,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":38002,"args": {"memoryInUse_bytes":21216384,"allocatedMemory_bytes":22018752,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":38003,"args": {"memoryInUse_bytes":21216384,"allocatedMemory_bytes":22018752,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":38045,"args": {"memoryInUse_bytes":21230320,"allocatedMemory_bytes":22018752,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":38046,"args": {"memoryInUse_bytes":21230320,"allocatedMemory_bytes":22018752,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":38113,"args": {"memoryInUse_bytes":21287408,"allocatedMemory_bytes":22018752,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":38114,"args": {"memoryInUse_bytes":21287552,"allocatedMemory_bytes":22018752,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":39540,"args": {"memoryInUse_bytes":22067952,"allocatedMemory_bytes":23067264,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":39895,"args": {"memoryInUse_bytes":22252400,"allocatedMemory_bytes":23067264,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":39898,"args": {"memoryInUse_bytes":22252736,"allocatedMemory_bytes":23067264,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":40861,"args": {"memoryInUse_bytes":22691408,"allocatedMemory_bytes":23067264,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":41269,"args": {"memoryInUse_bytes":22894624,"allocatedMemory_bytes":23067264,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":41275,"args": {"memoryInUse_bytes":22895024,"allocatedMemory_bytes":23067264,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":42739,"args": {"memoryInUse_bytes":23805488,"allocatedMemory_bytes":24115776,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":43545,"args": {"memoryInUse_bytes":24392464,"allocatedMemory_bytes":25164288,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":43554,"args": {"memoryInUse_bytes":24393184,"allocatedMemory_bytes":25164288,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":44282,"args": {"memoryInUse_bytes":24695840,"allocatedMemory_bytes":25164288,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":44420,"args": {"memoryInUse_bytes":24801520,"allocatedMemory_bytes":25164288,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":45318,"args": {"memoryInUse_bytes":25235888,"allocatedMemory_bytes":26212800,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":46159,"args": {"memoryInUse_bytes":25706528,"allocatedMemory_bytes":26212800,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":46206,"args": {"memoryInUse_bytes":25717504,"allocatedMemory_bytes":26212800,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":47040,"args": {"memoryInUse_bytes":25813456,"allocatedMemory_bytes":26212800,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":49272,"args": {"memoryInUse_bytes":26789088,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":51629,"args": {"memoryInUse_bytes":26914176,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":56700,"args": {"memoryInUse_bytes":26914176,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":82725,"args": {"memoryInUse_bytes":26914176,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":82914,"args": {"memoryInUse_bytes":26914176,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":84695,"args": {"memoryInUse_bytes":26930368,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":88136,"args": {"memoryInUse_bytes":26930368,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":88167,"args": {"memoryInUse_bytes":26930368,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":89298,"args": {"memoryInUse_bytes":26971920,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":90440,"args": {"memoryInUse_bytes":26971920,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":99362,"args": {"memoryInUse_bytes":26971920,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":99427,"args": {"memoryInUse_bytes":26971920,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":99427,"args": {"memoryInUse_bytes":26971920,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"C","name":"ctr","ts":99653,"args": {"memoryInUse_bytes":26971920,"allocatedMemory_bytes":27261312,"GC collections":0},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module object","ts":10270,"dur":1148,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import object","ts":10269,"dur":1149,"loc":"<no file>","args":{"detail": "gmp.f.object","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module gmp.z","ts":11420,"dur":1485,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import z","ts":11420,"dur":1485,"loc":"src/gmp/f.d:4","args":{"detail": "gmp.f.gmp","loc":"src/gmp/f.d:4"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module gmp.f","ts":10268,"dur":2637,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module core.sys.posix.stdc.time","ts":19349,"dur":813,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/stdc/time.d:19","args":{"detail": "","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/stdc/time.d:19"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import time","ts":19349,"dur":814,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/stdc/time.d:19","args":{"detail": "core.stdc.time.core","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/stdc/time.d:19"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module core.stdc.time","ts":19347,"dur":882,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/time.d:69","args":{"detail": "","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/time.d:69"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import time","ts":19346,"dur":882,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/time.d:69","args":{"detail": "core.time.core","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/time.d:69"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module core.time","ts":19168,"dur":1588,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/memory.d:252","args":{"detail": "","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/memory.d:252"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import time","ts":19168,"dur":1589,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/memory.d:252","args":{"detail": "__anonymous","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/memory.d:252"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Func gc_stats","ts":14534,"dur":6307,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/memory.d:136","args":{"detail": "core.memory.gc_stats","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/memory.d:136"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module core.memory","ts":14515,"dur":6603,"loc":"src/gmp/z.d:72","args":{"detail": "","loc":"src/gmp/z.d:72"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import memory","ts":13465,"dur":7654,"loc":"src/gmp/z.d:72","args":{"detail": "__anonymous","loc":"src/gmp/z.d:72"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func toString","ts":13461,"dur":8158,"loc":"src/gmp/z.d:66","args":{"detail": "gmp.z._Z!false._Z.toString","loc":"src/gmp/z.d:66"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func __setArrayAllocLength","ts":22447,"dur":937,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/internal/array/utils.d:265","args":{"detail": "core.internal.array.utils.__setArrayAllocLength!char.__setArrayAllocLength","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/internal/array/utils.d:265"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func _d_newarrayUImpl","ts":21689,"dur":1708,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/internal/array/construction.d:348","args":{"detail": "core.internal.array.construction._d_newarrayUImpl!char._d_newarrayUImpl","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/internal/array/construction.d:348"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func _d_newarrayU","ts":21672,"dur":1732,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/internal/array/construction.d:342","args":{"detail": "core.internal.array.construction._d_newarrayU!char._d_newarrayU","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/internal/array/construction.d:342"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func _d_newarrayT","ts":21661,"dur":1889,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/internal/array/construction.d:408","args":{"detail": "core.internal.array.construction._d_newarrayT!char._d_newarrayT","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/core/internal/array/construction.d:408"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func toString","ts":21631,"dur":1948,"loc":"src/gmp/z.d:146","args":{"detail": "gmp.z._Z!false._Z.toString","loc":"src/gmp/z.d:146"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func toString","ts":13445,"dur":10388,"loc":"src/gmp/q.d:18","args":{"detail": "gmp.q.MpQ.toString","loc":"src/gmp/q.d:18"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module std.range","ts":37151,"dur":722,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/conv.d:53","args":{"detail": "","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/conv.d:53"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import range","ts":37151,"dur":723,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/conv.d:53","args":{"detail": "std.conv.std","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/conv.d:53"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module std.conv","ts":37148,"dur":854,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/functional.d:71","args":{"detail": "","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/functional.d:71"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import conv","ts":37148,"dur":855,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/functional.d:71","args":{"detail": "__anonymous","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/functional.d:71"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module std.functional","ts":37144,"dur":901,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/searching.d:105","args":{"detail": "","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/searching.d:105"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import functional","ts":37143,"dur":902,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/searching.d:105","args":{"detail": "__anonymous","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/searching.d:105"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Module std.algorithm.searching","ts":37142,"dur":971,"loc":"src/gmp/z.d:111","args":{"detail": "","loc":"src/gmp/z.d:111"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import searching","ts":24267,"dur":13846,"loc":"src/gmp/z.d:111","args":{"detail": "__anonymous","loc":"src/gmp/z.d:111"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import utf","ts":38236,"dur":1304,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:2533","args":{"detail": "__anonymous","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:2533"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func front","ts":38234,"dur":1660,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:2530","args":{"detail": "std.range.primitives.front!char.front","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:2530"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func __lambda3","ts":38202,"dur":1696,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:178","args":{"detail": "std.range.primitives.isInputRange(R)","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:178"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import comparison","ts":39973,"dur":887,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:2330","args":{"detail": "__anonymous","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:2330"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func popFront","ts":39972,"dur":1297,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:2327","args":{"detail": "std.range.primitives.popFront!char.popFront","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:2327"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func __lambda6","ts":39944,"dur":1330,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:180","args":{"detail": "std.range.primitives.isInputRange(R)","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:180"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func __lambda2","ts":42223,"dur":515,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:1058","args":{"detail": "std.range.primitives.isBidirectionalRange(R)","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/range/primitives.d:1058"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func find","ts":42149,"dur":1395,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/searching.d:1920","args":{"detail": "std.algorithm.searching.find!(\"a == b\", const(char)[], char[]).find","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/searching.d:1920"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func find","ts":41645,"dur":1908,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/searching.d:1598","args":{"detail": "std.algorithm.searching.find!(\"a == b\", const(char)[], char).find","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/searching.d:1598"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func opBinary","ts":24235,"dur":20046,"loc":"src/gmp/z.d:537","args":{"detail": "gmp.z._Z!false._Z.opBinary!\"/\".opBinary","loc":"src/gmp/z.d:537"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func integerPart","ts":24024,"dur":20396,"loc":"src/gmp/q.d:201","args":{"detail": "gmp.q.MpQ.integerPart","loc":"src/gmp/q.d:201"},"pid":101,"tid":101},
{"ph":"X","name": "Sema1: Import mutation","ts":44423,"dur":895,"loc":"src/gmp/q.d:227","args":{"detail": "__anonymous","loc":"src/gmp/q.d:227"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func swap","ts":45609,"dur":550,"loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/mutation.d:2816","args":{"detail": "std.algorithm.mutation.swap!(_Z!false).swap","loc":"/home/per/.local/ldc2-1.36.0-linux-x86_64/bin/../import/std/algorithm/mutation.d:2816"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Func invert","ts":44421,"dur":1785,"loc":"src/gmp/q.d:224","args":{"detail": "gmp.q.MpQ.invert","loc":"src/gmp/q.d:224"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Module gmp.q","ts":13442,"dur":33597,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Sema3: Module gmp.z","ts":47044,"dur":2228,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Generate IR","ts":49446,"dur":2183,"loc":"<no file>","args":{"detail": "z","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Optimize","ts":51632,"dur":5067,"loc":"<no file>","args":{"detail": "/home/per/.dub/cache/gmp-d/0.2.17/build/library-$DFLAGS-wFjLGAUMtiRlpO8w3BewfQ/obj/gmp.z.o","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Write file(s)","ts":56701,"dur":26023,"loc":"<no file>","args":{"detail": "/home/per/.dub/cache/gmp-d/0.2.17/build/library-$DFLAGS-wFjLGAUMtiRlpO8w3BewfQ/obj/gmp.z.o","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Codegen module z","ts":49374,"dur":33539,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Optimize","ts":83681,"dur":1013,"loc":"<no file>","args":{"detail": "/home/per/.dub/cache/gmp-d/0.2.17/build/library-$DFLAGS-wFjLGAUMtiRlpO8w3BewfQ/obj/gmp.q.o","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Write file(s)","ts":84695,"dur":3441,"loc":"<no file>","args":{"detail": "/home/per/.dub/cache/gmp-d/0.2.17/build/library-$DFLAGS-wFjLGAUMtiRlpO8w3BewfQ/obj/gmp.q.o","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Codegen module q","ts":83226,"dur":4941,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Generate IR","ts":88449,"dur":848,"loc":"<no file>","args":{"detail": "f","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Optimize","ts":89299,"dur":1140,"loc":"<no file>","args":{"detail": "/home/per/.dub/cache/gmp-d/0.2.17/build/library-$DFLAGS-wFjLGAUMtiRlpO8w3BewfQ/obj/gmp.f.o","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Write file(s)","ts":90440,"dur":8921,"loc":"<no file>","args":{"detail": "/home/per/.dub/cache/gmp-d/0.2.17/build/library-$DFLAGS-wFjLGAUMtiRlpO8w3BewfQ/obj/gmp.f.o","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Codegen module f","ts":88420,"dur":11006,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "Codegen all modules","ts":49372,"dur":50055,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101},
{"ph":"X","name": "ExecuteCompiler","ts":46,"dur":99607,"loc":"<no file>","args":{"detail": "","loc":"<no file>"},"pid":101,"tid":101}
]
}

. A sample run as

gdb --args $(tracy) /tmp/tmp.qWe9Jlijmp_time-trace.json

crashes on Ubuntu 22.04 as

gdb --args tracy /tmp/tmp.qWe9Jlijmp_time-trace.json
Reading symbols from tracy...
(gdb) r
Starting program: /home/per/.local/bin/tracy /tmp/tmp.qWe9Jlijmp_time-trace.json
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6dac640 (LWP 1967444)]
terminate called after throwing an instance of 'tracy::NotTracyDump'
  what():  std::exception

Thread 1 "tracy" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737343884416) at ./nptl/pthread_kill.c:44
44	./nptl/pthread_kill.c: No such file or directory.
(gdb) up
#1  __pthread_kill_internal (signo=6, threadid=140737343884416) at ./nptl/pthread_kill.c:78
78	in ./nptl/pthread_kill.c
(gdb) 
#2  __GI___pthread_kill (threadid=140737343884416, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
89	in ./nptl/pthread_kill.c
(gdb) 
#3  0x00007ffff7042476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
26	../sysdeps/posix/raise.c: No such file or directory.
(gdb) 
#4  0x00007ffff70287f3 in __GI_abort () at ./stdlib/abort.c:79
79	./stdlib/abort.c: No such file or directory.
(gdb) 
#5  0x00007ffff74a2b9e in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) 
#6  0x00007ffff74ae20c in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) 
#7  0x00007ffff74ae277 in std::terminate() () from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) 
#8  0x00007ffff74ae4d8 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) 
#9  0x000055555647ea6b in tracy::FileRead::FileRead (this=0x7ffff658b040, f=0x555556bf8c20, fn=0x7fffffffd8e9 "/tmp/tmp.qWe9Jlijmp_time-trace.json") at ../../../server/TracyFileRead.hpp:362
362	            throw NotTracyDump();
(gdb) 
#10 0x000055555647e6d0 in tracy::FileRead::Open (fn=0x7fffffffd8e9 "/tmp/tmp.qWe9Jlijmp_time-trace.json") at ../../../server/TracyFileRead.hpp:42
42	        return f ? new FileRead( f, fn ) : nullptr;
(gdb) 
#11 0x00005555567fa1b5 in main (argc=2, argv=0x7fffffffd3d8) at ../../src/main.cpp:220
220	        initFileOpen = std::unique_ptr<tracy::FileRead>( tracy::FileRead::Open( argv[1] ) );
(gdb) 

.

How can I figure what tracy doesn't like about this json file?

nordlow avatar Feb 03 '24 07:02 nordlow

How can I figure what tracy doesn't like about this json file?

It does not like that it is a json file. You can probably convert this with the import-* tools provided by Tracy.

wolfpld avatar Feb 03 '24 11:02 wolfpld