diagnostic: add null guard to wl_proxy_add_listener + bind tracing
- libwayland: fprintf+abort if wl_proxy_add_listener called with NULL proxy. Prints caller address via __builtin_return_address(0) to identify which Qt6 function passes the null proxy. - compositor: eprintln each wl_registry_bind to show which globals Qt6 binds before crashing. - Next boot will definitively identify the crash source.
This commit is contained in:
@@ -728,6 +728,11 @@ impl Compositor {
|
||||
let _version = read_u32(payload, &mut cursor)?;
|
||||
let new_id = read_u32(payload, &mut cursor)?;
|
||||
|
||||
eprintln!(
|
||||
"redbear-compositor: client {} binds '{}' -> id {}",
|
||||
client_id, iface, new_id
|
||||
);
|
||||
|
||||
let mut clients = self.clients.lock().unwrap();
|
||||
if let Some(client) = clients.get_mut(&client_id) {
|
||||
let type_id = match iface.as_str() {
|
||||
|
||||
Reference in New Issue
Block a user