Join Slack
Powered by
all, I'm looping through a loop and reading a vari...
# kotlin-native
j
jb
11/27/2017, 7:53 PM
all, I'm looping through a loop and reading a variable value which doesn't change in the loop. Getting "*** Error in `./HelloWorld.kexe': free(): invalid next size (fast): 0x0000000002521930 ***"
o
olonho
11/27/2017, 8:30 PM
without any code snippets it's pretty hard to make any conclusion, and generally better approach would be minimize testcase and report issue in
https://github.com/JetBrains/kotlin-native/issues
j
jb
11/27/2017, 8:45 PM
Nikolay: yeah, I have a snippet which reproduces it, but only when reading a certain sensitive file 😞
jb
11/27/2017, 8:45 PM
trying to create a test case with non-sensitive data
o
olonho
11/28/2017, 5:52 AM
If you are reading file, try to use this function:
https://github.com/JetBrains/kotlinconf-spinner/blob/7259a4f10488df76b0a4c9977bae2ff190a3bfc7/kotlin-native/samples/fullstack/common/src/main/kotlin/kommon/Kommon.kt#L11
j
jb
11/28/2017, 3:19 PM
Yeah, same problem. see
https://gist.github.com/anonymous/273e1a4e01daece84e48523da9dc82a8
jb
11/28/2017, 3:45 PM
I've created an issue:
https://github.com/JetBrains/kotlin-native/issues/1085
4
Views
Open in Slack
Previous
Next