Comments (6)
I tested the latest master with Valgrind and found no leaks, but based on your report I got a feeling of what might be happening. Can you reproduce the issue with other examples?
from surgescript.
This is another example. Do you need more information?
./surgescript examples/alfred_the_npc.ss
DTS_MSG: Stensal DTS detected a fatal program error!
DTS_MSG: Continuing the execution will cause unexpected behaviors, abort!
DTS_MSG: Access the memory block that is freed.
DTS_MSG: Diagnostic information:
- Caution: the allocation info is correct only if the freed memory is not reused.
- the memory block (start:0x8e30de0, size:512 bytes) was allocated at
file:/home/sbuilder/workspace/surgescript/src/surgescript/util/util.c::72, 15 - Stack trace (most recent call first):
-[1] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/lexer.c::451, 5
-[2] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::306, 28
-[3] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::766, 13
-[4] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::727, 9
-[5] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::1233, 9
-[6] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::1215, 9
-[7] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::1179, 11
-[8] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::651, 5
-[9] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::621, 9
-[10] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::529, 5
-[11] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::500, 5
-[12] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::468, 9
-[13] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::260, 5
-[14] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::201, 9
-[15] file:/home/sbuilder/workspace/surgescript/src/surgescript/runtime/vm.c::145, 12
-[16] file:/home/sbuilder/workspace/surgescript/src/main.c::103, 9
-[17] file:/home/sbuilder/workspace/surgescript/src/main.c::41, 32
-[18] file:/musl-1.1.10/src/env/__libc_start_main.c::180, 11
from surgescript.
one more
./surgescript examples/component.ss
DTS_MSG: Stensal DTS detected a fatal program error!
DTS_MSG: Continuing the execution will cause unexpected behaviors, abort!
DTS_MSG: Access the memory block that is freed.
DTS_MSG: Diagnostic information:
[DEBUG]dbase_offset:0x23dc365c
- Caution: the allocation info is correct only if the freed memory is not reused.
- the memory block (start:0x9debc10, size:1024 bytes) was allocated at
file:/home/sbuilder/workspace/surgescript/src/surgescript/util/util.c::72, 15 - Stack trace (most recent call first):
-[1] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/lexer.c::451, 5
-[2] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::306, 28
-[3] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::766, 13
-[4] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::727, 9
-[5] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::607, 5
-[6] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::597, 9
-[7] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::528, 5
-[8] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::500, 5
-[9] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::468, 9
-[10] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::260, 5
-[11] file:/home/sbuilder/workspace/surgescript/src/surgescript/compiler/parser.c::201, 9
-[12] file:/home/sbuilder/workspace/surgescript/src/surgescript/runtime/vm.c::145, 12
-[13] file:/home/sbuilder/workspace/surgescript/src/main.c::103, 9
-[14] file:/home/sbuilder/workspace/surgescript/src/main.c::41, 32
-[15] file:/musl-1.1.10/src/env/__libc_start_main.c::180, 11
from surgescript.
The following examples cause the same error.
custom_plugin.ss
getters_setters.ss
timeout.ss
unit_testing.ss
from surgescript.
There was an issue with the lexer. I just submitted a bugfix. Please see if it works for you.
from surgescript.
Yes, it's fixed.
from surgescript.
Related Issues (8)
- Error while compiling with cmake: missing source file "src/surgescript/runtime/sslib/plugin.c" required by CMakeLists HOT 2
- [minor] AUR -DCMAKE_INSTALL_PREFIX=/usr HOT 4
- Hardcoded /lib HOT 4
- Add SONAMEs to libsurgescript HOT 1
- Compiler errors: No return in non-void functions HOT 1
- [bug linux] full path of compilation directory in lib file
- Compiling Instructions? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surgescript.