I try to use hopper to compile dlt-daemon but received such errors.
# Configurations for hopper fuzzer
# Full path for header file
TEST_HEADER=dlt.h
# Full path to shared library
TEST_LIBRARY=libdlt.so.2.18.10
# Output directory
OUT_DIR=output
HOPPER_INCLUDE_SEARCH_PATH=/root/Hopper/examples/dlt-daemon/include/dlt/
Running `/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name hopper_harness --edition=2021 hopper-harness/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=174 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="ctor_hook"' --cfg 'feature="default"' --cfg 'feature="e9_mode"' -C metadata=687dd90bd6d51332 -C extra-filename=-687dd90bd6d51332 --out-dir /root/Hopper/examples/dlt-daemon/output/release/deps -L dependency=/root/Hopper/examples/dlt-daemon/output/release/deps --extern clap=/root/Hopper/examples/dlt-daemon/output/release/deps/libclap-433ad04dcf339593.rmeta --extern color_eyre=/root/Hopper/examples/dlt-daemon/output/release/deps/libcolor_eyre-3590dbd2654eaae7.rmeta --extern eyre=/root/Hopper/examples/dlt-daemon/output/release/deps/libeyre-8de9684e9a86710d.rmeta --extern flexi_logger=/root/Hopper/examples/dlt-daemon/output/release/deps/libflexi_logger-9dab0a9998f3f896.rmeta --extern hopper=/root/Hopper/examples/dlt-daemon/output/release/deps/libhopper-6d727dd385288175.rmeta --extern log=/root/Hopper/examples/dlt-daemon/output/release/deps/liblog-db5663930c6645cc.rmeta --extern rand=/root/Hopper/examples/dlt-daemon/output/release/deps/librand-36f2e5236f427ea7.rmeta --extern regex=/root/Hopper/examples/dlt-daemon/output/release/deps/libregex-e47f3653c6831a53.rmeta --extern time=/root/Hopper/examples/dlt-daemon/output/release/deps/libtime-54c2cf7576b85054.rmeta -L native=/root/Hopper/examples/dlt-daemon/output -l dylib=dlt_fuzz -C link-arg=-Wl,-rpath,/root/Hopper/examples/dlt-daemon/output -C link-arg=-Wl,--allow-shlib-undefined -L native=/root/Hopper/examples/dlt-daemon/output/release/build/hopper-565d265b08d09895/out -L native=/root/Hopper/examples/dlt-daemon/output/release/build/hopper-565d265b08d09895/out -L native=/root/Hopper/examples/dlt-daemon/output/release/build/plthook-78dd2bb6b947ddd3/out`
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4358:22
|
4358 | 1 => self.seconds.det_mutate(state.get_child_mut("seconds")?),
| ^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4359:22
|
4359 | 2 => self
| ______________________^
4360 | | .microseconds
| |_________________________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4379:22
|
4379 | 1 => self.seconds.mutate(state.get_child_mut("seconds")?),
| ^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4380:22
|
4380 | 2 => self
| ______________________^
4381 | | .microseconds
| |_________________________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4412:24
|
4412 | return self
| ________________________^
4413 | | .seconds
| |____________________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4417:24
|
4417 | return self.microseconds.mutate_by_op(
| ^^^^^^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4439:37
|
4439 | layout.add_field("seconds", self.seconds.get_layout(fold_ptr));
| ^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4440:42
|
4440 | layout.add_field("microseconds", self.microseconds.get_layout(fold_ptr));
| ^^^^^^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4451:26
|
4451 | "seconds" => self.seconds.get_ptr_by_keys(&keys[1..]),
| ^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4452:31
|
4452 | "microseconds" => self.microseconds.get_ptr_by_keys(&keys[1..]),
| ^^^^^^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4502:23
|
4502 | buf.push_str(&self.seconds.serialize()?);
| ^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4505:23
|
4505 | buf.push_str(&self.microseconds.serialize()?);
| ^^^^^^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4555:23
|
4555 | buf.push_str(&self.seconds.serialize_obj(state.get_child("seconds")?)?);
| ^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4559:14
|
4559 | &self
| ______________^
4560 | | .microseconds
| |_____________________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4648:14
|
4648 | &self
| ______________^
4649 | | .seconds
| |________________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4654:14
|
4654 | &self
| ______________^
4655 | | .microseconds
| |_____________________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4701:22
|
4701 | 2 => self.len.det_mutate(state.get_child_mut("len")?),
| ^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4719:22
|
4719 | 2 => self.len.mutate(state.get_child_mut("len")?),
| ^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4753:24
|
4753 | return self
| ________________________^
4754 | | .len
| |________________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4769:33
|
4769 | layout.add_field("len", self.len.get_layout(fold_ptr));
| ^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4780:22
|
4780 | "len" => self.len.get_ptr_by_keys(&keys[1..]),
| ^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4815:23
|
4815 | buf.push_str(&self.len.serialize()?);
| ^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4859:23
|
4859 | buf.push_str(&self.len.serialize_obj(state.get_child("len")?)?);
| ^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4931:14
|
4931 | &self
| ______________^
4932 | | .len
| |____________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4974:22
|
4974 | 1 => self.seid.det_mutate(state.get_child_mut("seid")?),
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4975:22
|
4975 | 2 => self.tmsp.det_mutate(state.get_child_mut("tmsp")?),
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4992:22
|
4992 | 1 => self.seid.mutate(state.get_child_mut("seid")?),
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:4993:22
|
4993 | 2 => self.tmsp.mutate(state.get_child_mut("tmsp")?),
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5022:24
|
5022 | return self
| ________________________^
5023 | | .seid
| |_________________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5027:24
|
5027 | return self
| ________________________^
5028 | | .tmsp
| |_________________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5042:34
|
5042 | layout.add_field("seid", self.seid.get_layout(fold_ptr));
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5043:34
|
5043 | layout.add_field("tmsp", self.tmsp.get_layout(fold_ptr));
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5053:23
|
5053 | "seid" => self.seid.get_ptr_by_keys(&keys[1..]),
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5054:23
|
5054 | "tmsp" => self.tmsp.get_ptr_by_keys(&keys[1..]),
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5089:23
|
5089 | buf.push_str(&self.seid.serialize()?);
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5092:23
|
5092 | buf.push_str(&self.tmsp.serialize()?);
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5133:23
|
5133 | buf.push_str(&self.seid.serialize_obj(state.get_child("seid")?)?);
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5136:23
|
5136 | buf.push_str(&self.tmsp.serialize_obj(state.get_child("tmsp")?)?);
| ^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5205:14
|
5205 | &self
| ______________^
5206 | | .seid
| |_____________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /root/Hopper/examples/dlt-daemon/output/release/build/hopper-harness-c2ee6e3eabb8c5dd/out/fuzz_extend.rs:5211:14
|
5211 | &self
| ______________^
5212 | | .tmsp
| |_____________________^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
For more information about this error, try `rustc --explain E0793`.
The following warnings were emitted during compilation:
warning: [email protected]: dir=/root/Hopper/examples/dlt-daemon/output, lib=dlt_fuzz
warning: [email protected]: add_search_path=/root/Hopper/examples/dlt-daemon/include/dlt/
warning: [email protected]: generate callback GENERATED_hopper_callback_0: unsafe extern "C" fn (context_id : :: hopper :: FuzzMutPointer :: < :: std :: os :: raw :: c_char > , log_level : u8 , trace_status : u8 ,)
warning: [email protected]: generate callback GENERATED_hopper_callback_1: unsafe extern "C" fn (service_id : u32 , data : :: hopper :: FuzzMutPointer :: < :: hopper :: FuzzVoid > , length : u32 ,) -> :: std :: os :: raw :: c_int
warning: [email protected]: generate callback GENERATED_hopper_callback_2: unsafe extern "C" fn (service_id : u32 , data : :: hopper :: FuzzMutPointer :: < :: hopper :: FuzzVoid > , length : u32 , priv_data : :: hopper :: FuzzMutPointer :: < :: hopper :: FuzzVoid > ,) -> :: std :: os :: raw :: c_int
error: could not compile `hopper-harness` (lib) due to 40 previous errors
Caused by:
process didn't exit successfully: `/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name hopper_harness --edition=2021 hopper-harness/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=174 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="ctor_hook"' --cfg 'feature="default"' --cfg 'feature="e9_mode"' -C metadata=687dd90bd6d51332 -C extra-filename=-687dd90bd6d51332 --out-dir /root/Hopper/examples/dlt-daemon/output/release/deps -L dependency=/root/Hopper/examples/dlt-daemon/output/release/deps --extern clap=/root/Hopper/examples/dlt-daemon/output/release/deps/libclap-433ad04dcf339593.rmeta --extern color_eyre=/root/Hopper/examples/dlt-daemon/output/release/deps/libcolor_eyre-3590dbd2654eaae7.rmeta --extern eyre=/root/Hopper/examples/dlt-daemon/output/release/deps/libeyre-8de9684e9a86710d.rmeta --extern flexi_logger=/root/Hopper/examples/dlt-daemon/output/release/deps/libflexi_logger-9dab0a9998f3f896.rmeta --extern hopper=/root/Hopper/examples/dlt-daemon/output/release/deps/libhopper-6d727dd385288175.rmeta --extern log=/root/Hopper/examples/dlt-daemon/output/release/deps/liblog-db5663930c6645cc.rmeta --extern rand=/root/Hopper/examples/dlt-daemon/output/release/deps/librand-36f2e5236f427ea7.rmeta --extern regex=/root/Hopper/examples/dlt-daemon/output/release/deps/libregex-e47f3653c6831a53.rmeta --extern time=/root/Hopper/examples/dlt-daemon/output/release/deps/libtime-54c2cf7576b85054.rmeta -L native=/root/Hopper/examples/dlt-daemon/output -l dylib=dlt_fuzz -C link-arg=-Wl,-rpath,/root/Hopper/examples/dlt-daemon/output -C link-arg=-Wl,--allow-shlib-undefined -L native=/root/Hopper/examples/dlt-daemon/output/release/build/hopper-565d265b08d09895/out -L native=/root/Hopper/examples/dlt-daemon/output/release/build/hopper-565d265b08d09895/out -L native=/root/Hopper/examples/dlt-daemon/output/release/build/plthook-78dd2bb6b947ddd3/out` (exit status: 1)
error: failed to compile `hopper-harness v1.0.0 (/root/Hopper/hopper-harness)`, intermediate artifacts can be found at `/root/Hopper/examples/dlt-daemon/output`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
10:07:05 [ERROR] Meets error: cargo install error
Error: cargo install error
Location:
hopper-compiler/src/cargo.rs:112:5