summary refs log tree commit diff stats
path: root/tests/async/tasync_traceback.nim
Commit message (Collapse)AuthorAgeFilesLines
* asyncdispatch+stackTraceOverride: fix premature collection (#18039) ↵Ștefan Talpalaru2021-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | [backport:1.2] Copying StackTraceEntry instances when nimStackTraceOverride is defined breaks the link between a cstring field that's supposed to point at another string field in the same object. Sometimes, the original object is garbage collected, that memory region reused for storing other strings, so when the StackTraceEntry copy tries to use its cstring pointer to construct a traceback message, it accesses unrelated strings. This only happens for async tracebacks and this patch prevents that by making sure we only use the string fields when nimStackTraceOverride is defined. Async tracebacks also beautified slightly by getting rid of an extra line that was supposed to be commented out, along with the corresponding debugging output. There's also a micro-optimisation to avoid concatenating two strings just to get their combined length.
* Make await a template (#12085)Alexander Ivanov2020-04-251-2/+4
| | | | | * Make await a template * Generate await inside async/multisync
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-2/+7
| | | | * fixes #11847
* make async tests green againAndreas Rumpf2019-07-111-5/+5
|
* make tests green againAraq2019-07-101-5/+5
|
* Fixed testsYuriy Glukhov2018-06-061-5/+21
|
* Review comments addressed. More thorough line info tracking.Yuriy Glukhov2018-05-101-2/+2
|
* Fix tasync_traceback test.Dominik Picheta2018-01-111-0/+1
|
* Use regex to match output of tasync_traceback.Dominik Picheta2018-01-111-60/+69
|
* Simplify async traceback processing.Dominik Picheta2017-12-281-29/+43
|
* No need to recurse now that mergeEntries doesn't do any pattern matching.Dominik Picheta2017-12-281-2/+2
|
* Show only detailed async tracebacks.Dominik Picheta2017-12-281-10/+17
|
* Rename cb0 to asyncProcName_continue + other improvements to async tracebacks.Dominik Picheta2017-12-281-0/+1
|
* Go through the re-raise stacks for more detailed tracebacks.Dominik Picheta2017-12-281-3/+44
|
* Refine the async tracebacks.Dominik Picheta2017-12-281-5/+12
|
* Implement some simple pattern-based transformation for async tracebacks.Dominik Picheta2017-12-281-0/+46