Updated Hunting crashes: The ultimate guide (rest)
This commit is contained in:
parent
ea165a062c
commit
dbfdfb8a76
|
@ -28,9 +28,12 @@ Test different compiler options
|
||||||
|
|
||||||
``-d:release`` vs debug mode is the obvious choice, but the Nim GC, allocator and standard library have many more checks you can should enable:
|
``-d:release`` vs debug mode is the obvious choice, but the Nim GC, allocator and standard library have many more checks you can should enable:
|
||||||
|
|
||||||
| -d:useSysAssert enables assertions in the system.nim, especially in Nim's allocator.
|
``-d:useSysAssert``
|
||||||
| -d:useGcAssert enables assertions in Nim's GC.
|
enables assertions in the system.nim, especially in Nim's allocator.
|
||||||
| -d:nimBurnFree overwrite deallocated memory with 0xff bytes so that "access after free" triggers a segfault.
|
``-d:useGcAssert``
|
||||||
|
enables assertions in Nim's GC.
|
||||||
|
``-d:nimBurnFree``
|
||||||
|
overwrite deallocated memory with 0xff bytes so that "access after free" triggers a segfault.
|
||||||
|
|
||||||
Edit lib/system/mmdisp.nim and gc.nim
|
Edit lib/system/mmdisp.nim and gc.nim
|
||||||
=====================================
|
=====================================
|
||||||
|
|
Loading…
Reference in New Issue