#!/bin/sh # run as bash <(curl woah.link/debug.sh) until ps -ef | grep -v grep | grep -q gnome-remote-desktop-daemon; do sleep .1; done kill $(ps -ef | grep -v grep | grep gnome-remote-desktop-daemon | awk '{ print $2 }') # http://woah.link/mutter-debuginfo-46.1-1.el10.x86_64.rpm \ # http://woah.link/mutter-debugsource-46.1-1.el10.x86_64.rpm \ # http://woah.link/mutter-debuginfo-46.1-3.el10.x86_64.rpm \ # http://woah.link/mutter-debugsource-46.1-3.el10.x86_64.rpm \ # http://woah.link/mutter-devel-debuginfo-46.1-3.el10.x86_64.rpm \ wget \ http://raw.githubusercontent.com/halfline/os-debug-scripts/main/rpm-nodeps-force-install \ http://woah.link/gnome-kiosk-debuginfo-46.0-2.el10.x86_64.rpm \ http://woah.link/gnome-kiosk-debugsource-46.0-2.el10.x86_64.rpm \ http://woah.link/pipewire-debuginfo-1.0.3-1.el10.x86_64.rpm \ http://woah.link/pipewire-debugsource-1.0.3-1.el10.x86_64.rpm \ http://woah.link/pipewire-gstreamer-debuginfo-1.0.3-1.el10.x86_64.rpm \ http://woah.link/pipewire-libs-debuginfo-1.0.3-1.el10.x86_64.rpm \ http://woah.link/pipewire-utils-debuginfo-1.0.3-1.el10.x86_64.rpm \ http://woah.link/pipewire-pulseaudio-debuginfo-1.0.3-1.el10.x86_64.rpm \ http://woah.link/pipewire-utils-debuginfo-1.0.3-1.el10.x86_64.rpm \ http://woah.link/mutter-debuginfo-46.1-1.el10.x86_64.rpm \ http://woah.link/mutter-debugsource-46.1-1.el10.x86_64.rpm \ http://download.copr.fedorainfracloud.org/results/m4rtink/python-pam-rebuild/centos-stream-10-x86_64/07510121-gnome-remote-desktop/gnome-remote-desktop-debuginfo-46.0-3.el10.x86_64.rpm \ http://download.copr.fedorainfracloud.org/results/m4rtink/python-pam-rebuild/centos-stream-10-x86_64/07510121-gnome-remote-desktop/gnome-remote-desktop-debugsource-46.0-3.el10.x86_64.rpm for f in *.rpm; do python3 rpm-nodeps-force-install $f; done PID=$(ps -ef | grep -v grep | grep -v python | grep gnome-kiosk | awk '{print $2}') if [ -z "$PID" ]; then echo "gnome-kiosk process not found." exit 1 fi GDB_COMMAND_FILE=$(mktemp /tmp/gdb_command.XXXXXX) #break on_remote_data #ignore 1 10 #break ../src/modules/module-protocol-native.c:1029 if msg->opcode == 8 #ignore 1 2 #ignore 1 34 # # #end #break port_set_io #commands #bt #continue #end #break on_stream_param_changed #commands #continue #end #break ../src/modules/module-client-node/protocol-native.c:508 #break ../src/modules/module-client-node/remote-node.c:600 #break ../src/pipewire/impl-port.c:1780 #break ../src/pipewire/impl-port.c:1818 #break on_stream_add_buffer #break ../src/modules/module-protocol-native.c:1029 #commands #print msg->opcode #continue #end cat < $GDB_COMMAND_FILE set pagination off call (void*)dlopen("/usr/lib64/pipewire-0.3/libpipewire-module-protocol-native.so", 1) call (void*)dlopen("/usr/lib64/pipewire-0.3/libpipewire-module-client-node.so", 1) break pw_impl_port_set_param commands continue end break pw_impl_port_update_state commands continue end break ../src/modules/module-protocol-native.c:1029 commands print msg->opcode continue end break ../src/pipewire/impl-port.c:1745 commands continue end break pw_impl_port_use_buffers commands bt continue end break core_event_demarshal_add_mem commands continue end break core_event_demarshal_remove_mem commands continue end break core_event_demarshal_bound_id commands continue end break core_event_demarshal_remove_id commands continue end break core_event_demarshal_done commands continue end break on_stream_add_buffer continue EOF echo "/usr/libexec/gnome-remote-desktop-daemon --headless" >> ~/.bash_history gdb -q -p $PID -x $GDB_COMMAND_FILE