Rust-gdb segmentation fault trigger

⚓ Rust    📅 2025-11-01    👤 surdeus    👁️ 7      

surdeus

Warning

This post was published 31 days ago. The information described in this article may have changed.
#0  0x00005555564a3c12 in rustix::backend::arch::asm::syscall5 (nr=..., a0=..., a1=..., a2=..., a3=..., a4=...)
    at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.0.7/src/backend/linux_raw/arch/x86_64.rs:202
        r0 = 0x555556631c50
#1  0x00005555564a4a40 in rustix::backend::event::syscalls::epoll_wait (epfd=..., events=..., timeout=...)
    at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.0.7/src/backend/linux_raw/arch/mod.rs:117
        old_timeout = -1
        old_timeout = core::option::Option<i32>::Some(-1)
#2  0x00005555564a2d2d in rustix::event::epoll::wait<&std::os::fd::owned::OwnedFd, rustix::buffer::SpareCapacity<rustix::event::epoll::Event>> (epoll=0x5555566243e0, event_list=...,
    timeout=...) at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.0.7/src/event/epoll.rs:213
No locals.
#3  0x00005555564a7643 in polling::epoll::Poller::wait (self=0x5555566243e0, events=0x55555662acf0, timeout=...) at src/epoll.rs:207
        timeout = core::option::Option<rustix::timespec::Timespec>::None
        timer_fd = 0x5555566243ec
        _enter = tracing::span::Entered {
          span: 0x7fffffff98c8
        }
        span = tracing::span::Span {
          inner: core::option::Option<tracing::span::Inner>::None,
          meta: core::option::Option<&tracing_core::metadata::Metadata>::None
        }
#4  0x00005555564aadda in polling::Poller::wait (self=0x5555566243e0, events=0x55555662acf0, timeout=...) at src/lib.rs:744
        e = std::io::error::Error {
          repr: std::io::error::repr_bitpacked::Repr (
            core::ptr::non_null::NonNull<()> {
              pointer: 0x55555662cff4
            },
            core::marker::PhantomData<std::io::error::ErrorData<alloc::boxed::Box<std::io::error::Custom, alloc::alloc::Global>>>
          )
        }
        timeout = core::option::Option<core::time::Duration>::None
        deadline = core::option::Option<std::time::Instant>::None
        _lock = std::sync::poison::mutex::MutexGuard<()> {
          lock: 0x5555566243f0,
          poison: std::sync::poison::Guard {
            panicking: false
          }
        }
        _enter = tracing::span::Entered {
          span: 0x7fffffffa238
        }
        span = tracing::span::Span {
          inner: core::option::Option<tracing::span::Inner>::None,
          meta: core::option::Option<&tracing_core::metadata::Metadata>::None
        }
#5  0x00005555564940ea in calloop::sys::Poll::poll (self=0x55555662ac98, timeout=...) at src/sys.rs:233
        events = Python Exception <class 'gdb.error'>: Attempt to take contents of a non-pointer value.
core::cell::RefMut<polling::Events> {
          value: core::ptr::non_null::NonNull<polling::Events> {
            pointer: 0x55555662acf0
          },
          borrow: core::cell::BorrowRefMut {
            borrow: 0x55555662ace8
          },
          marker: core::marker::PhantomData<&mut polling::Events>
        }
        now = std::time::Instant (
          std::sys::pal::unix::time::Instant {
            t: std::sys::pal::unix::time::Timespec {
              tv_sec: 7806,
              tv_nsec: core::num::niche_types::Nanoseconds (
                755977732
              )
            }
          }
        )
#6  0x0000555555c23a1f in calloop::loop_logic::EventLoop<winit::platform_impl::linux::wayland::state::WinitState>::dispatch_events<winit::platform_impl::linux::wayland::state::WinitState> (
    self=0x55555663a1f0, timeout=..., data=0x55555663a288) at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/calloop-0.13.0/src/loop_logic.rs:384
        poll = Python Exception <class 'gdb.error'>: Attempt to take contents of a non-pointer value.
core::cell::Ref<calloop::sys::Poll> {
          value: core::ptr::non_null::NonNull<calloop::sys::Poll> {
            pointer: 0x55555662ac98
          },
          borrow: core::cell::BorrowRef {
            borrow: 0x55555662ac90
          }
        }
        now = std::time::Instant (
          std::sys::pal::unix::time::Instant {
            t: std::sys::pal::unix::time::Timespec {
              tv_sec: 7806,
              tv_nsec: core::num::niche_types::Nanoseconds (
                755973013
              )
            }
          }
        )
#7  0x0000555555c26b8f in calloop::loop_logic::EventLoop<winit::platform_impl::linux::wayland::state::WinitState>::dispatch<winit::platform_impl::linux::wayland::state::WinitState, core::option::Option<core::time::Duration>> (self=0x55555663a1f0, timeout=..., data=0x55555663a288) at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/calloop-0.13.0/src/loop_logic.rs:559
No locals.
#8  0x0000555555b02195 in winit::platform_impl::linux::wayland::event_loop::EventLoop<alacritty::event::Event>::loop_dispatch<alacritty::event::Event, core::option::Option<core::time::Duration>> (self=0x55555663a190, timeout=...) at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.11/src/platform_impl/linux/wayland/event_loop/mod.rs:585
        state = 0x55555663a288
#9  0x0000555555b0772e in winit::platform_impl::linux::wayland::event_loop::EventLoop<alacritty::event::Event>::poll_events_with_timeout<alacritty::event::Event, &mut &mut winit::event_loop::{impl#6}::run_app::{closure_env#0}<alacritty::event::Event, alacritty::event::Processor>> (self=0x55555663a190, timeout=..., callback=0x7fffffffbd60)
    at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.11/src/platform_impl/linux/wayland/event_loop/mod.rs:289
        error = std::io::error::Error {
          repr: std::io::error::repr_bitpacked::Repr (
            core::ptr::non_null::NonNull<()> {
              pointer: 0x0
            },
            core::marker::PhantomData<std::io::error::ErrorData<alloc::boxed::Box<std::io::error::Custom, alloc::alloc::Global>>>
          )
        }
        start = std::time::Instant (
          std::sys::pal::unix::time::Instant {
            t: std::sys::pal::unix::time::Timespec {
              tv_sec: 7806,
              tv_nsec: core::num::niche_types::Nanoseconds (
                755971447
              )
            }
          }
        )
#10 0x0000555555b01b8f in winit::platform_impl::linux::wayland::event_loop::EventLoop<alacritty::event::Event>::pump_events<alacritty::event::Event, &mut winit::event_loop::{impl#6}::run_app::{closure_env#0}<alacritty::event::Event, alacritty::event::Processor>> (self=0x55555663a190, timeout=..., callback=0x7fffffffc050)
    at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.11/src/platform_impl/linux/wayland/event_loop/mod.rs:226
No locals.
#11 0x0000555555b02777 in winit::platform_impl::linux::wayland::event_loop::EventLoop<alacritty::event::Event>::run_on_demand<alacritty::event::Event, winit::event_loop::{impl#6}::run_app::{closure_env#0}<alacritty::event::Event, alacritty::event::Processor>> (self=0x55555663a190, event_handler=...)
    at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.11/src/platform_impl/linux/wayland/event_loop/mod.rs:190
No locals.
#12 0x0000555555a59ed3 in winit::platform_impl::linux::EventLoop<alacritty::event::Event>::run_on_demand<alacritty::event::Event, winit::event_loop::{impl#6}::run_app::{closure_env#0}<alacritty::event::Event, alacritty::event::Processor>> (self=0x7fffffffc188, callback=...)
    at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.11/src/platform_impl/linux/mod.rs:820
        evlp = 0x7fffffffc188
#13 0x0000555555a5a41f in winit::platform_impl::linux::EventLoop<alacritty::event::Event>::run<alacritty::event::Event, winit::event_loop::{impl#6}::run_app::{closure_env#0}<alacritty::event::Event, alacritty::event::Processor>> (self=..., callback=...) at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.11/src/platform_impl/linux/mod.rs:813
No locals.
#14 0x0000555555ca9fea in winit::event_loop::EventLoop<alacritty::event::Event>::run_app<alacritty::event::Event, alacritty::event::Processor> (self=..., app=0x7fffffffcc80)
    at /home/as/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.11/src/event_loop.rs:265
No locals.
#15 0x0000555555cb37d1 in alacritty::event::Processor::run (self=0x7fffffffcc80, event_loop=...) at alacritty/src/event.rs:201
No locals.
#16 0x0000555555afea27 in alacritty::alacritty (options=...) at alacritty/src/main.rs:210
        processor = alacritty::event::Processor {
          config_monitor: core::option::Option<alacritty::config::monitor::ConfigMonitor>::None,
          clipboard: alacritty::clipboard::Clipboard {
            clipboard: alloc::boxed::Box<dyn copypasta::common::ClipboardProvider, alloc::alloc::Global> {
              pointer: 0x55555663a9d0,
              vtable: 0x55555655b0d8warning: (Error: pc 0x55555655b0d8 in address map, but not in symtab.)

            },
            selection: core::option::Option<alloc::boxed::Box<dyn copypasta::common::ClipboardProvider, alloc::alloc::Global>>::Some(alloc::boxed::Box<dyn copypasta::common::ClipboardProvider, alloc::alloc::Global> {
                pointer: 0x55555663a900,
                vtable: 0x55555655b100warning: (Internal error: pc 0x55555655b100 in read in CU, but not in symtab.)
warning: (Error: pc 0x55555655b100 in address map, but not in symtab.)

              })
          },
          scheduler: alacritty::scheduler::Scheduler {
            timers: VecDeque(size=0),
            event_proxy: winit::event_loop::EventLoopProxy<alacritty::event::Event> {
              event_loop_proxy: winit::platform_impl::linux::EventLoopProxy<alacritty::event::Event>::Wayland(winit::platform_impl::linux::wayland::event_loop::proxy::EventLoopProxy<alacritty::event::Event> {
                  user_events_sender: calloop::sources::channel::Sender<alacritty::event::Event> {
                    sender: std::sync::mpsc::Sender<alacritty::event::Event> {
                      inner: std::sync::mpmc::Sender<alacritty::event::Event> {
                        flavor: std::sync::mpmc::SenderFlavor<alacritty::event::Event>::List(std::sync::mpmc::counter::Sender<std::sync::mpmc::list::Channel<alacritty::event::Event>> {
                            counter: 0x555556639f80
                          })
                      }
                    },
                    ping: calloop::sources::ping::eventfd::Ping {
                      event: Arc(strong=7, weak=0) = {
                        value = calloop::sources::ping::eventfd::FlagOnDrop (
                          Arc(strong=2, weak=0) = {
                            value = std::os::fd::owned::OwnedFd {
                              fd: core::num::niche_types::I32NotAllOnes (
                                9
                              )
                            },
                            strong = 2,
                            weak = 0
                          }
                        ),
                        strong = 7,
                        weak = 0
                      }
                    }
                  }
                })
            }
          },
          initial_window_options: core::option::Option<alacritty::cli::WindowOptions>::None,
          initial_window_error: core::option::Option<alloc::boxed::Box<dyn core::error::Error, alloc::alloc::Global>>::None,
*** stack smashing detected ***: terminated


Fatal signal: Aborted
----- Backtrace -----
0x5555556f40ca ???
0x555555821ff5 ???
0x7ffff6c3e23f ???
0x7ffff6c9644c ???
0x7ffff6c3e107 ???
0x7ffff6c25666 ???
0x7ffff6c266d6 ???
0x7ffff6d20d7a ???
0x7ffff6d22145 ???
0x55555586102a ???
0x55555586e855 ???
0x55555586eaf6 ???
0x55555586eaf6 ???
0x55555586eaf6 ???
0x55555586fdc5 ???
0x555555c2f87c ???
0x555555c0fd7f ???
0x555555a53b4b ???
0x7ffff779cf40 ???
0x7ffff77601dd ???
0x7ffff776f118 ???
0x7ffff77c5251 ???
0x7ffff775add1 ???
0x555555a4762d ???
0x555555827ee4 ???
0x555555c29524 ???
0x555555ae8068 ???
0x555555ae882c ???
0x555555c294e8 ???
0x555555b6a07e ???
0x555555b54ff6 ???
0x555555b5ff50 ???
0x555555b60850 ???
0x555555730224 ???
0x555555bd8a52 ???
0x55555582f90f ???
0x55555582f9c0 ???
0x555555821ae7 ???
0x7ffff7f09b0e ???
0x555555828c3c ???
0x55555582f7a1 ???
0x555555bf6b1f ???
0x5555560762fb ???
0x5555560c4f79 ???
0x555555960744 ???
0x5555555f22e4 ???
0x7ffff6c2773a ???
0x7ffff6c277fb ???
0x55555560ada4 ???
0xffffffffffffffff ???
---------------------
A fatal error internal to GDB has been detected, further
debugging is not possible.  GDB will now terminate.

This is a bug, please report it.  For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.

zsh: IOT instruction  rust-gdb alacritty
as@debug🍎

2 posts - 2 participants

Read full topic

🏷️ Rust_feed