Skip to content
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

Miri reports leaks in ffi tests #1872

Closed
jhorstmann opened this issue Jun 14, 2022 · 0 comments · Fixed by #1878
Closed

Miri reports leaks in ffi tests #1872

jhorstmann opened this issue Jun 14, 2022 · 0 comments · Fixed by #1878
Labels
arrow Changes to the arrow crate bug

Comments

@jhorstmann
Copy link
Contributor

jhorstmann commented Jun 14, 2022

Describe the bug

This probably should have failed the pipeline in #1863, but the printing of the miri exit code left for debugging made the script return 0.

https://github.com/apache/arrow-rs/runs/6867357727?check_suite_focus=true#step:4:1630

The following memory was leaked: alloc18750277 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18751887 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc18768644 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18769465 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc18775762 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18776583 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc18786089 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18787907 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc18803477 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18806289 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc18820219 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18822019 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc18830254 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18830869 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc18850882 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18856747 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc18872011 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18872626 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc18878829 (Rust heap, size: 96, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
}
alloc18879444 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x40 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc39420033 (Rust heap, size: 384, align: 8) {
    0x000 │ ╾0x3e083df6[a39420090]<untagged> (8 ptr bytes)╼ 01 00 00 00 00 00 00 00 │ ╾──────╼........
    0x010 │ 01 00 00 00 00 00 00 00 04 __ __ __ __ __ __ __ │ .........░░░░░░░
    0x020 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x030 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x040 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x050 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x060 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x070 │ __ __ __ __ __ __ __ __ 01 00 __ __ __ __ __ __ │ ░░░░░░░░..░░░░░░
    0x080 │ ╾0x3e08476a[a39420176]<untagged> (8 ptr bytes)╼ 01 00 00 00 00 00 00 00 │ ╾──────╼........
    0x090 │ 01 00 00 00 00 00 00 00 04 __ __ __ __ __ __ __ │ .........░░░░░░░
    0x0a0 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x0b0 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x0c0 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x0d0 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x0e0 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x0f0 │ __ __ __ __ __ __ __ __ 01 00 __ __ __ __ __ __ │ ░░░░░░░░..░░░░░░
    0x100 │ ╾0x3e08511e[a39420262]<untagged> (8 ptr bytes)╼ 01 00 00 00 00 00 00 00 │ ╾──────╼........
    0x110 │ 01 00 00 00 00 00 00 00 04 __ __ __ __ __ __ __ │ .........░░░░░░░
    0x120 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x130 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x140 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x150 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x160 │ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ │ ░░░░░░░░░░░░░░░░
    0x170 │ __ __ __ __ __ __ __ __ 01 00 __ __ __ __ __ __ │ ░░░░░░░░..░░░░░░
}
alloc39420090 (Rust heap, size: 1, align: 1) {
    61                                              │ a
}
alloc39420176 (Rust heap, size: 1, align: 1) {
    62                                              │ b
}
alloc39420262 (Rust heap, size: 1, align: 1) {
    63                                              │ c
}
alloc39420391 (Rust heap, size: 88, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ ╾0x3e083740[a39420033]<untagged> (8 ptr bytes)╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
    0x20 │ 03 00 00 00 00 00 00 00 a7 06 6e 1a 3c 46 5e 2b │ ..........n.<F^+
    0x30 │ bc 7c dc 1d e8 0b c8 1f 00 00 00 00 00 00 00 00 │ .|..............
    0x40 │ ╾0x28adfd8[a1194578]<untagged> (8 ptr bytes)╼ 00 00 00 00 00 00 00 00 │ ╾──────╼........
    0x50 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc39420706 (Rust heap, size: 80, align: 8) {
    0x00 │ ╾0x3e0861f0[a39420391]<untagged> (8 ptr bytes)╼ ╾0x3e088958[a39420766]<untagged> (8 ptr bytes)╼ │ ╾──────╼╾──────╼
    0x10 │ 03 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 │ ................
    0x20 │ 04 00 00 00 00 00 00 00 ╾0x3e0861f0[a39420391]<untagged> (8 ptr bytes)╼ │ ........╾──────╼
    0x30 │ ╾0x3e0898c8[a39420928]<untagged> (8 ptr bytes)╼ 03 00 00 00 00 00 00 00 │ ╾──────╼........
    0x40 │ 03 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 │ ................
}
alloc39421107 (Rust heap, size: 32, align: 8) {
    0x00 │ ╾0x3e0884a0[a39420706]<untagged> (8 ptr bytes)╼ 02 00 00 00 00 00 00 00 │ ╾──────╼........
    0x10 │ ╾0x3e0884f0[a39420706]<untagged> (8 ptr bytes)╼ ╾0x3e0884f0[a39420706]<untagged> (8 ptr bytes)╼ │ ╾──────╼╾──────╼
}
alloc39421147 (Rust heap, size: 24, align: 8) {
    0x00 │ ╾0x3e0861f0[a39420391]<untagged> (8 ptr bytes)╼ ╾0x3e08aa60[a39421107]<untagged> (8 ptr bytes)╼ │ ╾──────╼╾──────╼
    0x10 │ ╾0x3e08abd8[a39421130]<untagged> (8 ptr bytes)╼                         │ ╾──────╼
}
alloc39421210 (Rust heap, size: 56, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ ╾0x3e08b79d[a39421248]<untagged> (8 ptr bytes)╼ ╾0x3e08b7b4[a39421250]<untagged> (8 ptr bytes)╼ │ ╾──────╼╾──────╼
    0x20 │ ╾0x3e08b7cf[a39421252]<untagged> (8 ptr bytes)╼ ╾0x3e08b7f5[a39421254]<untagged> (8 ptr bytes)╼ │ ╾──────╼╾──────╼
    0x30 │ ╾0x3e08b618[a39421286]<untagged> (8 ptr bytes)╼                         │ ╾──────╼
}
alloc39421286 (Rust heap, size: 40, align: 8) {
    0x00 │ ╾0x3e08ad40[a39421147]<untagged> (8 ptr bytes)╼ ╾0x3e08b3f8[a39421242]<untagged> (8 ptr bytes)╼ │ ╾──────╼╾──────╼
    0x10 │ 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc39465913 (Rust heap, size: 56, align: 8) {
    0x00 │ 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 │ ................
    0x10 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x20 │ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
    0x30 │ 00 00 00 00 00 00 00 00                         │ ........
}
alloc1194578 (global (static or const), size: 8, align: 8) {
    ff ff ff ff ff ff ff ff                         │ ........
}
alloc39420766 (deallocated)
alloc39420928 (deallocated)
alloc39421130 (global (static or const), size: 56, align: 8) {
    0x00 │ ╾0x3e08ac1e[a39421125]<untagged> (8 ptr bytes)╼ 20 00 00 00 00 00 00 00 │ ╾──────╼ .......
    0x10 │ 08 00 00 00 00 00 00 00 ╾0x3e08ac24[a39421126]<untagged> (8 ptr bytes)╼ │ ........╾──────╼
    0x20 │ ╾0x3e08ac30[a39421127]<untagged> (8 ptr bytes)╼ ╾0x3e08ac35[a39421128]<untagged> (8 ptr bytes)╼ │ ╾──────╼╾──────╼
    0x30 │ ╾0x3e08ac38[a39421129]<untagged> (8 ptr bytes)╼                         │ ╾──────╼
}
alloc39421248 (fn: ffi_stream::get_schema)
alloc39421250 (fn: ffi_stream::get_next)
alloc39421252 (fn: ffi_stream::get_last_error)
alloc39421254 (fn: ffi_stream::release_stream)
alloc39421242 (global (static or const), size: 72, align: 8) {
    0x00 │ ╾0x3e08b447[a39421235]<untagged> (8 ptr bytes)╼ 18 00 00 00 00 00 00 00 │ ╾──────╼........
    0x10 │ 08 00 00 00 00 00 00 00 ╾0x3e08b44b[a39421236]<untagged> (8 ptr bytes)╼ │ ........╾──────╼
    0x20 │ ╾0x3e08b459[a39421237]<untagged> (8 ptr bytes)╼ ╾0x3e08b460[a39421238]<untagged> (8 ptr bytes)╼ │ ╾──────╼╾──────╼
    0x30 │ ╾0x3e08b470[a39421239]<untagged> (8 ptr bytes)╼ ╾0x3e08b47c[a39421240]<untagged> (8 ptr bytes)╼ │ ╾──────╼╾──────╼
    0x40 │ ╾0x3e08b487[a39421241]<untagged> (8 ptr bytes)╼                         │ ╾──────╼
}
alloc39421125 (fn: std::ptr::drop_in_place::<std::iter::Map<std::vec::IntoIter<record_batch::RecordBatch>, fn(record_batch::RecordBatch) -> std::result::Result<record_batch::RecordBatch, error::ArrowError> {std::result::Result::<record_batch::RecordBatch, error::ArrowError>::Ok}>> - shim(Some(std::iter::Map<std::vec::IntoIter<record_batch::RecordBatch>, fn(record_batch::RecordBatch) -> std::result::Result<record_batch::RecordBatch, error::ArrowError> {std::result::Result::<record_batch::RecordBatch, error::ArrowError>::Ok}>)))
alloc39421126 (fn: <std::iter::Map<std::vec::IntoIter<record_batch::RecordBatch>, fn(record_batch::RecordBatch) -> std::result::Result<record_batch::RecordBatch, error::ArrowError> {std::result::Result::<record_batch::RecordBatch, error::ArrowError>::Ok}> as std::iter::Iterator>::next)
alloc39421127 (fn: <std::iter::Map<std::vec::IntoIter<record_batch::RecordBatch>, fn(record_batch::RecordBatch) -> std::result::Result<record_batch::RecordBatch, error::ArrowError> {std::result::Result::<record_batch::RecordBatch, error::ArrowError>::Ok}> as std::iter::Iterator>::size_hint)
alloc39421128 (fn: <std::iter::Map<std::vec::IntoIter<record_batch::RecordBatch>, fn(record_batch::RecordBatch) -> std::result::Result<record_batch::RecordBatch, error::ArrowError> {std::result::Result::<record_batch::RecordBatch, error::ArrowError>::Ok}> as std::iter::Iterator>::advance_by)
alloc39421129 (fn: <std::iter::Map<std::vec::IntoIter<record_batch::RecordBatch>, fn(record_batch::RecordBatch) -> std::result::Result<record_batch::RecordBatch, error::ArrowError> {std::result::Result::<record_batch::RecordBatch, error::ArrowError>::Ok}> as std::iter::Iterator>::nth)
alloc39421235 (fn: std::ptr::drop_in_place::<ffi_stream::tests::TestRecordBatchReader> - shim(Some(ffi_stream::tests::TestRecordBatchReader)))
alloc39421236 (fn: <ffi_stream::tests::TestRecordBatchReader as std::iter::Iterator>::next)
alloc39421237 (fn: <ffi_stream::tests::TestRecordBatchReader as std::iter::Iterator>::size_hint)
alloc39421238 (fn: <ffi_stream::tests::TestRecordBatchReader as std::iter::Iterator>::advance_by)
alloc39421239 (fn: <ffi_stream::tests::TestRecordBatchReader as std::iter::Iterator>::nth)
alloc39421240 (fn: <ffi_stream::tests::TestRecordBatchReader as record_batch::RecordBatchReader>::schema)
alloc39421241 (fn: <ffi_stream::tests::TestRecordBatchReader as record_batch::RecordBatchReader>::next_batch)

To Reproduce

https://github.com/apache/arrow-rs/runs/6867357727?check_suite_focus=true#step:4:1630

or running cargo +nightly miri test -p arrow -- --skip csv --skip ipc --skip json -- locally

Steps to reproduce the behavior:

Expected behavior

No leaks being reported

Additional context

If this is actually expected behavior we might want to run ffi tests separately with leak reporting disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants