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

Read of null pointer #4

Open
riking opened this issue Feb 27, 2024 · 0 comments
Open

Read of null pointer #4

riking opened this issue Feb 27, 2024 · 0 comments

Comments

@riking
Copy link

riking commented Feb 27, 2024

https://asan.saethlin.dev/ub?crate=mouse_position&version=0.1.3

running 1 test
test src/lib.rs - (line 4) ... FAILED

failures:

---- src/lib.rs - (line 4) stdout ----
Test executable failed (exit status: 1).

stderr:
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3426==ERROR: AddressSanitizer: SEGV on unknown address 0x0000000000e0 (pc 0x7f43908e0b14 bp 0x7ffefbc726b0 sp 0x7ffefbc72558 T0)
==3426==The signal is caused by a READ memory access.
==3426==Hint: address points to the zero page.
    #0 0x7f43908e0b14 in XDefaultScreen (/lib/x86_64-linux-gnu/libX11.so.6+0x29b14) (BuildId: d1d3345a252a40a004cbd02011a651930e172ccd)
    #1 0x56342cae499a in mouse_position::impl_linux::_$LT$impl$u20$mouse_position..mouse_position..Mouse$GT$::get_mouse_position::h5df19bc7217182e2 /build/src/impl_linux.rs:15:31
    #2 0x56342cae3cfe in rust_out::main::h3c365c6a42822ba3 /build/src/lib.rs:7:20
    #3 0x56342cae3b22 in core::ops::function::FnOnce::call_once::hd97e66983c8afdf3 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
    #4 0x56342cae2be0 in std::sys_common::backtrace::__rust_begin_short_backtrace::h16f4d33891122c12 /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:154:18

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

No branches or pull requests

1 participant