From 4cb37d459d21b798308cbc6f4d21b24f9f505999 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 1 Feb 2017 07:48:46 +0100 Subject: [PATCH] Updated Hunting crashes: The ultimate guide (markdown => rest) --- ...ate-guide.md => Hunting-crashes:-The-ultimate-guide.rest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename Hunting-crashes:-The-ultimate-guide.md => Hunting-crashes:-The-ultimate-guide.rest (84%) diff --git a/Hunting-crashes:-The-ultimate-guide.md b/Hunting-crashes:-The-ultimate-guide.rest similarity index 84% rename from Hunting-crashes:-The-ultimate-guide.md rename to Hunting-crashes:-The-ultimate-guide.rest index d2ead53..8c3e2bd 100644 --- a/Hunting-crashes:-The-ultimate-guide.md +++ b/Hunting-crashes:-The-ultimate-guide.rest @@ -28,9 +28,9 @@ 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:useSysAssert enables assertions in the system.nim, especially in Nim's allocator. --d:useGcAssert enables assertions in Nim's GC. --d:nimBurnFree overwrite deallocated memory with 0xff bytes so that "access after free" triggers a segfault. +| -d:useSysAssert enables assertions in the system.nim, especially in Nim's allocator. +| -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 =====================================