Commit 59c7c5f
feat(debug): X11 stream reassembler + robust unix poll; localize render root to an unknown ext opcode
- scripts/xreassemble.py: reassembles the FULL client/server X11 byte streams (handling the setup
request/reply + BigRequests) and matches requests to replies by sequence, so the exact unanswered
request is visible. SECURE_EXEC_XTRACE=<n> now sets the per-payload capture cap (default 256; large
for full reassembly).
- ActiveUnixSocket::poll: try_recv first, so a guest non-blocking drain (net.poll(fd,0)) never misses a
delivered request via the recv_timeout(ZERO)-returns-Timeout-with-data-pending std gotcha. Strictly
more correct (did not by itself unblock the render).
DIAGNOSIS (tools #2/#3): lxpanel creates the panel toplevel + sets its DOCK/_NET_WM properties but the
toplevel is NEVER mapped — GTK queued its MapWindow in the GLib loop, which is stuck in its first
dispatch. lxpanel waits for a GetInputFocus reply (op 0x2b) that never arrives; the server received all
bytes (delivery is byte-symmetric) yet sits idle in net_poll. Root lead: the first-draw batch sends
requests with major opcode 0x89=137, but Xvfb's registered extensions use opcodes 128/130/132/134/138 —
NO extension owns 137. An unknown-opcode request mis-handled by the server desyncs the request stream
(server waits for bytes to finish a phantom request; client waits for its reply) = the deadlock. Next:
confirm which client lib emits op 137 / fix Xvfb's unknown-opcode handling (platform layer).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ba98a76 commit 59c7c5f
2 files changed
Lines changed: 135 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1824 | 1824 | | |
1825 | 1825 | | |
1826 | 1826 | | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
1827 | 1839 | | |
1828 | 1840 | | |
1829 | 1841 | | |
| |||
12495 | 12507 | | |
12496 | 12508 | | |
12497 | 12509 | | |
12498 | | - | |
12499 | | - | |
| 12510 | + | |
| 12511 | + | |
| 12512 | + | |
| 12513 | + | |
12500 | 12514 | | |
12501 | | - | |
| 12515 | + | |
| 12516 | + | |
| 12517 | + | |
| 12518 | + | |
12502 | 12519 | | |
12503 | 12520 | | |
| 12521 | + | |
12504 | 12522 | | |
12505 | 12523 | | |
12506 | | - | |
| 12524 | + | |
12507 | 12525 | | |
12508 | 12526 | | |
12509 | 12527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments