dlang-community / SDLang-D

An SDLang (Simple Declarative Language) library for D
http://sdlang.org
Other
120 stars 21 forks source link

Bus error: 10 when parsing file #63

Open jbeaurgamot opened 5 years ago

jbeaurgamot commented 5 years ago

Hi,

If I run the sdlang parser (built locally) on a file with the following contents, the application crashes with a "Bus error: 10" message.

a{
    a{
        a{
            b{
                c{
                    d{
                        e{
                            f{
                                g{
                                    h{
                                        test 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

interestingly, if you move the "test" tag up one level to "g", there is no crash. It seems to be related to parsing values on tags that are nested beyond a certain level.

If its helpful, the command im using to run the parser is: ./sdlang parse test.sdl

Thanks :)

jbeaurgamot commented 5 years ago

Oh also, I'm building the sdlang cli on mac os 10.14 with: $ dub build --config=cli --arch=x86_64

(64 bit as the app im using the sdlang-d package is also 64 bit)