-
Notifications
You must be signed in to change notification settings - Fork 16
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
Segmentation fault on subsequent conversions #206
Comments
Hi @jonatanklosko, thanks for the report. Could you give this a try with a "current thread" tokio runtime?
Deno isn't fully compatible with the multi-threaded tokio runtime. While not a segfault, here's a prior issue I ran into that was resolved by switching to the single threaded runtime: denoland/deno#19670 (comment) |
@jonmmease unfortunately the segfault still happens :( |
If at all useful, here's the stacktrace obtained via lldb: Stacktrace
|
Thanks for the stack trace. I don't see the crash when running this example locally on macos, so I tried running it in a GitHub action under Ubuntu 22.04, and I still don't see the crash. See #207 and https://github.com/vega/vl-convert/actions/runs/12483749003/job/34840040408?pr=207. A helpful next step would be to get a repro of this in a GitHub actions, so let me know if you have any thoughts on what we could try here. |
It looks like I cannot reproduce it on GitHub Actions, I used a minimal setup: jobs:
vl-convert-rs-example2:
runs-on: ubuntu-20.04
container:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v2
- run: |
apt-get update
apt-get install -y git build-essential wget curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
cd vl-convert-rs
cargo run --example conversion_sequence I can reproduce the segfault running exactly that code on AWS x86_64 machine with Ubuntu 20.04, and I also run inside |
Hello, thank you for this fantastic package!
The following modified example from
vl-convert-rs
results in a segfault:Note a separate converter created for each conversion. If we change it to reuse the same converter it no longer segfaults.
I can reproduce the segfault on x86_64 Ubuntu Linux, running the example directly against vl-convert-rs main.
The text was updated successfully, but these errors were encountered: