workaround a GC/codegen issue that proves nasty to fix
This commit is contained in:
parent
61720e0df9
commit
2bdbe97af1
1 changed files with 4 additions and 1 deletions
|
|
@ -66,7 +66,10 @@ proc stackTraceAux(c: PCtx; x: PStackFrame; pc: int; recursionLimit=100) =
|
||||||
stackTraceAux(c, x.next, x.comesFrom, recursionLimit-1)
|
stackTraceAux(c, x.next, x.comesFrom, recursionLimit-1)
|
||||||
var info = c.debug[pc]
|
var info = c.debug[pc]
|
||||||
# we now use the same format as in system/except.nim
|
# we now use the same format as in system/except.nim
|
||||||
var s = toFilename(info)
|
var s = substr(toFilename(info), 0)
|
||||||
|
# this 'substr' prevents a strange corruption. XXX This needs to be
|
||||||
|
# investigated eventually but first attempts to fix it broke everything
|
||||||
|
# see the araq-wip-fixed-writebarrier branch.
|
||||||
var line = toLinenumber(info)
|
var line = toLinenumber(info)
|
||||||
if line > 0:
|
if line > 0:
|
||||||
add(s, '(')
|
add(s, '(')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue