elexis-eu / dictionary-service Goto Github PK
View Code? Open in Web Editor NEWELEXIS implementation of the REST dictionary service
License: Apache License 2.0
ELEXIS implementation of the REST dictionary service
License: Apache License 2.0
After installing from source, elexis-dictionary-service start
segfaults:
$ RUST_BACKTRACE=1 target/release/elexis-dictionary-service start
Starting server at 0.0.0.0:8000
thread 'main' panicked at 'attempted to leave type `std::mem::ManuallyDrop<internal::SealedBag>` uninitialized, which is invalid', /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/mem/mod.rs:658:9
stack backtrace:
0: rust_begin_unwind
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:483
1: core::panicking::panic_fmt
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:85
2: core::panicking::panic
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:50
3: std::sync::once::Once::call_once::{{closure}}
4: std::sync::once::Once::call_inner
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sync/once.rs:419
5: std::thread::local::fast::Key<T>::try_initialize
6: crossbeam_epoch::default::pin
7: tokio_threadpool::worker::entry::WorkerEntry::new
8: tokio_threadpool::builder::Builder::build
9: tokio::runtime::threadpool::builder::Builder::build
10: gotham::new_runtime
11: gotham::plain::start
12: elexis_dictionary_service::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[1] 2722 segmentation fault
$ RUST_BACKTRACE=full target/release/elexis-dictionary-service start
Starting server at 0.0.0.0:8000
thread 'main' panicked at 'attempted to leave type `std::mem::ManuallyDrop<internal::SealedBag>` uninitialized, which is invalid', /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/mem/mod.rs:658:9
stack backtrace:
0: 0x562d5a2d2e50 - std::backtrace_rs::backtrace::libunwind::trace::h72c2fb8038f1bbee
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
1: 0x562d5a2d2e50 - std::backtrace_rs::backtrace::trace_unsynchronized::h1e3b084883f1e78c
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/../../backtrace/src/backtrace/mod.rs:66
2: 0x562d5a2d2e50 - std::sys_common::backtrace::_print_fmt::h3bf6a7ebf7f0394a
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:79
3: 0x562d5a2d2e50 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2e8cb764b7fe02e7
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:58
4: 0x562d5a2f33ec - core::fmt::write::h7a1184eaee6a8644
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/fmt/mod.rs:1080
5: 0x562d5a2ccf62 - std::io::Write::write_fmt::haeeb374d93a67eac
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/io/mod.rs:1516
6: 0x562d5a2d523d - std::sys_common::backtrace::_print::h1d14a7f6ad632dc8
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:61
7: 0x562d5a2d523d - std::sys_common::backtrace::print::h301abac8bb2e3e81
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:48
8: 0x562d5a2d523d - std::panicking::default_hook::{{closure}}::hde0cb80358a6920a
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:208
9: 0x562d5a2d4ee8 - std::panicking::default_hook::h9b1a691049a0ec8f
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:227
10: 0x562d5a2d5921 - std::panicking::rust_panic_with_hook::h2bdec87b60580584
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:577
11: 0x562d5a2d54c9 - std::panicking::begin_panic_handler::{{closure}}::h101ca09d9df5db47
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:484
12: 0x562d5a2d32bc - std::sys_common::backtrace::__rust_end_short_backtrace::h3bb85654c20113ca
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:153
13: 0x562d5a2d5489 - rust_begin_unwind
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:483
14: 0x562d5a2f1cc1 - core::panicking::panic_fmt::h48c31e1e3d550146
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:85
15: 0x562d5a2f1c0d - core::panicking::panic::h184ede6dd822ffb4
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:50
16: 0x562d5a26ee62 - std::sync::once::Once::call_once::{{closure}}::h2e292b7b84878f55
17: 0x562d5a2d26f2 - std::sync::once::Once::call_inner::h2da0f98bb6169f9c
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sync/once.rs:419
18: 0x562d5a26ed27 - std::thread::local::fast::Key<T>::try_initialize::h876c93a9e01a69c8
19: 0x562d5a255d9b - crossbeam_epoch::default::pin::h3666e643f14addc5
20: 0x562d5a256d9f - tokio_threadpool::worker::entry::WorkerEntry::new::hd34bdc157cc2ce62
21: 0x562d5a25a890 - tokio_threadpool::builder::Builder::build::h5c231af862ee825b
22: 0x562d5a23cfef - tokio::runtime::threadpool::builder::Builder::build::h99d8dd84a20b956c
23: 0x562d5a1a59b9 - gotham::new_runtime::h76043c983c78214b
24: 0x562d5a0a9b83 - gotham::plain::start::h320ea1d6e07cbfc1
25: 0x562d5a12b199 - elexis_dictionary_service::main::hff166fcbc1eb43d9
26: 0x562d5a119c23 - std::sys_common::backtrace::__rust_begin_short_backtrace::hcdc70b54391eb65c
27: 0x562d5a065b49 - std::rt::lang_start::{{closure}}::h50f1144b90414ea5
28: 0x562d5a2d5d47 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::he179d32a5d10d957
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/ops/function.rs:259
29: 0x562d5a2d5d47 - std::panicking::try::do_call::hcb3d5e7be089b2b4
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:381
30: 0x562d5a2d5d47 - std::panicking::try::h7ac93b0cd56fb701
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:345
31: 0x562d5a2d5d47 - std::panic::catch_unwind::h7b40e396c93a4fcd
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panic.rs:382
32: 0x562d5a2d5d47 - std::rt::lang_start_internal::h142b9cc66267fea1
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/rt.rs:51
33: 0x562d5a12e4a2 - main
34: 0x7fe93337609b - __libc_start_main
35: 0x562d5a02a19a - _start
36: 0x0 - <unknown>
[1] 3053 segmentation fault
$ rustc --version
rustc 1.48.0 (7eac88abb 2020-11-16)
Loading the examples seemingly worked.
After cargo update
, the source no longer builds. ๐
I'm not particularly Docker savvy, but this seems like a very basic issue. I've loaded the example data with this command:
docker run -it --rm --name=elexis --volume ~/projects/elexis-dictionary-service/examples:/tmp/examples --publish 8000:8000 jmccrae/elexis-dictionary-service load /tmp/examples/example.json
That does say "Release is not specified or bad value, assuming PUBLIC" but it doesn't give any error messages, so I guess it worked.
Then I try to run the service:
sudo docker run -it --rm --name=elexis -p 8000:8000 jmccrae/elexis-dictionary-service start
The only output I get is this:
Starting server at 127.0.0.1:8000
If I now go to http://127.0.0.1:8000/, it says that the connection was reset. Any idea what's wrong here?
(BTW, I have compiled the Rust program instead and that works without any problems for me, but I'd like to know why I can't get the Docker container to work)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.