belozierov / SwiftCoroutine

Swift coroutines for iOS, macOS and Linux.
https://belozierov.github.io/SwiftCoroutine
MIT License
836 stars 51 forks source link

CoFutureAwaitTests.swift:51 - testConcurrency() - unit test fails #6

Closed ctreffs closed 4 years ago

ctreffs commented 4 years ago

When running the unit tests of the current master branch I get the following test crash

commit 014ebe763cb08bb9e04dcf112787e585f7dc00f5 (HEAD -> master, origin/master, origin/HEAD)

In file and line: CoFutureAwaitTests.swift:51

Bildschirmfoto 2020-03-30 um 09 21 21

xctest(7034,0x700009087000) malloc: *** error for object 0x111abe000: pointer being freed was not allocated
xctest(7034,0x700009087000) malloc: *** set a breakpoint in malloc_error_break to debug

If it's of interest to you I will debug further using your instructions.

belozierov commented 4 years ago

@ctreffs Thanks a lot!!! I've always run tests in a release mode and didn't see that crash in a debug mode. Thanks to this issue, I've found another bug too. Updated version is on github.

ctreffs commented 4 years ago

Bildschirmfoto 2020-03-30 um 10 07 12

Works fine now ✅ commit 6d4cda2ebe04fa5103d8892d81fa2339f009e74d (HEAD -> master, tag: 2.0.6, origin/master, origin/HEAD)