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

segfault in docker image #305

Closed
Hnasar opened this issue Aug 24, 2022 · 1 comment
Closed

segfault in docker image #305

Hnasar opened this issue Aug 24, 2022 · 1 comment
Labels
bug Something isn't working needs investigation

Comments

@Hnasar
Copy link

Hnasar commented Aug 24, 2022

I started the docker image with:

docker run   --mount type=bind,source="$(pwd)",target=/app  -it --entrypoint /bin/sh tamasfe/taplo

and am trying to lint my files, but it repeatedly segfaults on any file I give it:

/app # taplo lint pyproject.toml
Segmentation fault

(taplo -h doesn't segfault though)

Perhaps related to #233 ?

I've uploaded the coredump here:
docker-taplo-coredump.zip


/app # apk add gdb
/app # gdb taplo docker-taplo.coredump
GNU gdb (GDB) 11.2
Reading symbols from taplo...
(No debugging symbols found in taplo)
Core was generated by `/usr/bin/taplo lint pyproject.toml'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000000000 in ?? ()
[Current thread is 1 (LWP 7331)]
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007f3b65c1c6ce in native_tls::TlsConnectorBuilder::build ()
#2  0x00007f3b65d3066a in reqwest::async_impl::client::ClientBuilder::build ()
#3  0x00007f3b65e88467 in <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll ()
#4  0x00007f3b65e9f38c in taplo::main ()
#5  0x00007f3b65e0f4c3 in std::sys_common::backtrace::__rust_begin_short_backtrace ()
#6  0x00007f3b65e10a09 in std::rt::lang_start::{{closure}} ()
#7  0x00007f3b65d7f48c in std::rt::lang_start_internal ()
#8  0x00007f3b65ea00e2 in main ()
@tamasfe tamasfe added bug Something isn't working needs investigation labels Aug 25, 2022
@tamasfe
Copy link
Owner

tamasfe commented Aug 25, 2022

Thanks, It seems to have been caused by openssl, which was removed as a dependency in #302.

I haven't done any releases since, but I'm planning to do one this week after some bugfixing.

@tamasfe tamasfe closed this as completed Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs investigation
Projects
None yet
Development

No branches or pull requests

2 participants