Skip to content

stack-use-after-return in ecs_run_intern (v0.1.4) #25

@riking

Description

@riking

https://asan.saethlin.dev/ub?crate=flecs&version=0.1.4

test tests::flecs_dynamic_components ... =================================================================
==15946==ERROR: AddressSanitizer: stack-use-after-return on address 0x7f2213384740 at pc 0x555e1213ad63 bp 0x7f2253cf3a30 sp 0x7f2253cf3a28
READ of size 8 at 0x7f2213384740 thread T1
    #0 0x555e1213ad62 in flecs::system::SystemBuilder::iter::_$u7b$$u7b$closure$u7d$$u7d$::h255dea32de68f412 /build/src/system.rs:233:4
    #1 0x555e1213a7c0 in flecs::system::trampoline::h0bc7134ea8f515ee /build/src/system.rs:379:2
    #2 0x555e124979da in ecs_run_intern /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flecs-sys-0.1.4/flecs.c:32117:17
    #3 0x555e1247cb74 in flecs_run_pipeline /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flecs-sys-0.1.4/flecs.c:17926:17
    #4 0x555e1247b7ed in flecs_workers_progress /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flecs-sys-0.1.4/flecs.c:17291:5
    #5 0x555e1247cf4c in ecs_progress /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flecs-sys-0.1.4/flecs.c:18035:5
    #6 0x555e1243517b in flecs::world::World::progress::hdcef3cd478ef2d70 /build/src/world.rs:78:12
    #7 0x555e121421b5 in dynamic_components::run_data_example::h95e780eff92a6de0 /build/examples/dynamic_components.rs:89:2
    #8 0x555e121441ce in dynamic_components::main::h12a37ac2ce93c040 /build/examples/dynamic_components.rs:94:2
    #9 0x555e121449e5 in dynamic_components::tests::flecs_dynamic_components::h9c9533851434cf91 /build/examples/dynamic_components.rs:101:3
    #10 0x555e121449c2 in dynamic_components::tests::flecs_dynamic_components::_$u7b$$u7b$closure$u7d$$u7d$::h78def5cc25c466c0 /build/examples/dynamic_components.rs:100:31

Please check whether this still applies to the current version! I did not see any issues discussing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions