Skip to content

Allocation happens with incorrect alignment #617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chung-leong opened this issue Mar 21, 2025 · 0 comments
Open

Allocation happens with incorrect alignment #617

chung-leong opened this issue Mar 21, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@chung-leong
Copy link
Owner

error(gpa): Allocation alignment 2 does not match free alignment 1. Allocation: 
 Free: 
/home/cleong/zigar/zigar-compiler/test/integration/function-pointer/generator-with-allocator.zig:27:27: 0x7f447c70b1ed in receive (generator-with-allocator)
            allocator.free(object.real_name);
                          ^
/home/cleong/zigar/node-zigar/node_modules/zigar-compiler/zig/thunk-zig.zig:37:13: 0x7f447c7164ca in invokeFunction (generator-with-allocator)
            const retval = @call(.auto, function, args);
            ^
/home/cleong/zigar/node-zigar/node_modules/zigar-compiler/zig/host-napi.zig:339:21: 0x7f447c703bf1 in runThunk (generator-with-allocator)
    return if (thunk(fn_ptr, arg_ptr)) .ok else |_| .failure;
                    ^
???:?:?: 0x7f44a41bfc0f in ??? (linux.x64.node)
???:?:?: 0xc3a2f8 in ??? (???)
???:?:?: 0xf29f4e in ??? (???)
@chung-leong chung-leong added the bug Something isn't working label Mar 21, 2025
@chung-leong chung-leong added this to the Joe McCarthy milestone Mar 21, 2025
@chung-leong chung-leong self-assigned this Mar 21, 2025
@github-project-automation github-project-automation bot moved this to Todo in zigar Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant