genotrance / nimarchive

libarchive wrapper for Nim
MIT License
17 stars 3 forks source link

Test fails on nim devel #2

Closed melMass closed 4 years ago

melMass commented 5 years ago

Following our discussion on Lobby:

On Mac using nim 0.19.9 the default test fail.

Steps

git clone https://github.com/genotrance/nimarchive.git
cd nimarchive
nimble develop
nimble setup
nimble test

ERROR:

tnimarchive(12900,0x7fffcb0053c0) malloc: *** error for object 0x27f00220: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Traceback (most recent call last)
tnimarchive.nim(25)      tnimarchive
SIGABRT: Abnormal termination.
Error: execution of an external program failed: '/Users/imac/gits/CONTRIBS/nimarchive/tests/tnimarchive '
stack trace: (most recent call last)
/Users/imac/gits/CONTRIBS/nimarchive/nimarchive.nimble(32, 8) testTask
/usr/local/Cellar/nim/HEAD-ec66fd0/nim/lib/system/nimscript.nim(242, 7) exec
/usr/local/Cellar/nim/HEAD-ec66fd0/nim/lib/system/nimscript.nim(242, 7) Error: unhandled exception: FAILED: nim c -r tests/tnimarchive.nim
genotrance commented 4 years ago

Closing this since nimarchive now uses nimterop. Please let me know if you still see this.