flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

Windows segfault with recursive Struct

Open 0xNF opened this issue 9 months ago • 1 comments

The following fbs schema will crash flatc.exe. No errors, just a segfault.

namespace MySample.Recurse

struct RecurseType{
    id: ubyte;
    recurse_type: RecurseType;
}

Windows 11, 24H2 Current master branch, commit 1c514626e83c20fffa8557e75641848e1e15cd5e

0xNF avatar Feb 27 '25 10:02 0xNF

as an additional data point, this runs fine (makes a file that fails static assertions) on linux.

jtdavis777 avatar Aug 28 '25 00:08 jtdavis777

@0xNF what language/flags did you use for this? I finally got around to building flatbuffers on windows and did not encounter a crash

jtdavis777 avatar Dec 06 '25 05:12 jtdavis777

closing as duplicate since it references the same underlying problem

jtdavis777 avatar Dec 14 '25 00:12 jtdavis777