July 06, 2023 Learn » Re: Advice on debugging possible exception or crash | |||
|---|---|---|---|
| |||
one thing I do is have gdb/lldb break on d assert, before it destroys... | |||
July 06, 2023 Learn » Re: Advice on debugging possible exception or crash | |||
|---|---|---|---|
| |||
...the end by one, so I attached gdb and saw the bug. Yay! I’m not... | |||
July 06, 2023 Learn » Advice on debugging possible exception or crash | |||
|---|---|---|---|
| |||
...an x86-64 box I could use gdb if I first take the time to... | |||
June 19, 2023 Learn » Using C++ Classes From D: dmd cannot link, while ldc segfault | |||
|---|---|---|---|
| |||
...lstdc++ && ./main Segmentation fault (core dumped) ``` and gdb shows it fails at: main.d:29... | |||
June 17, 2023 General » Better error message for endless recursion (or other segfaults) on linux | |||
|---|---|---|---|
| |||
...this, you typically open a debugger like `gdb` and use the `backtrace` command to find... | |||
June 10, 2023 Issues » [Issue 23978] [REG 2.103.0] ICE: dip1021 memory corruption | |||
|---|---|---|---|
| |||
...reference is coming from. ``` (gdb) p *(void**)0x5eba698 $10 = (void *) 0x5e8aa00 (gdb) p **(void***)0x5eba698... | |||
June 10, 2023 Issues » [Issue 23978] [REG 2.103.0] ICE: dip1021 memory corruption | |||
|---|---|---|---|
| |||
...the program immediately before the segfault occurs. ``` (gdb) monitor who_points_at 0x5ebb9c8 ==1582870== Searching... | |||
June 09, 2023 Issues » [Issue 23978] [REG 2.103.0] ICE: EscapeBy[] is malloced, but contains GC-allocated objects | |||
|---|---|---|---|
| |||
...the AST. --- (gdb) p aa.b[5] $57 = (dmd.root.aav.aaA *) 0x5efa4a0 (gdb) p... | |||
June 09, 2023 Issues » [Issue 23978] [REG 2.103.0] ICE: EscapeBy[] is malloced, but contains GC-allocated objects | |||
|---|---|---|---|
| |||
...in vgdb --- (gdb) p aa.b $10 = (dmd.root.aav.aaA **) 0x5ebb990 (gdb) monitor who... | |||
June 08, 2023 Issues » [Issue 23979] 2.104 segfaults | |||
|---|---|---|---|
| |||
...7442 Type tb = exp.e1.type.toBasetype(); (gdb) bt #0 ExpressionSemanticVisitor::visit(PtrExp*) (this=0x7fffffff69d8... | |||
Copyright © 1999-2021 by the D Language Foundation