Giter Site home page Giter Site logo

Comments (6)

alemart avatar alemart commented on June 12, 2024

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.

mlite avatar mlite commented on June 12, 2024

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.

mlite avatar mlite commented on June 12, 2024

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.

mlite avatar mlite commented on June 12, 2024

The following examples cause the same error.
custom_plugin.ss
getters_setters.ss
timeout.ss
unit_testing.ss

from surgescript.

alemart avatar alemart commented on June 12, 2024

There was an issue with the lexer. I just submitted a bugfix. Please see if it works for you.

from surgescript.

mlite avatar mlite commented on June 12, 2024

Yes, it's fixed.

from surgescript.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.