Created attachment 173178 [details] broken konsole STEPS TO REPRODUCE 1. open konsole 2. click New Tab 3. right click inside terminal OBSERVED RESULT inconsistently one or more of: • context menu works like EXPECTED RESULT • context menu appears and disappears • all buttons on left (Copy Paste Find...) disappear (see attachment) • weird stuff appears inside terminal top left (see attachment) • konsole crashes EXPECTED RESULT normal context menu (as if you didn't click "New tab" before) SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE neon Unstable Edition KDE Plasma Version: 6.1.80 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 konsole version: 24.11.70 ADDITIONAL INFORMATION commit that introduced bug: https://invent.kde.org/utilities/konsole/-/commit/9c72d6301dead5ce1e69f79c4416d8d12cf0d2d4
since commit https://invent.kde.org/utilities/konsole/-/commit/c5e3aa26d3723ec9db9af3eb9b7da4c05359d5fd bug doesn't happen with old STEPS TO REPRODUCE but is not fixed! new STEPS TO REPRODUCE: 1. open konsole 2. run `xxd /dev/urandom` inside terminal (tab 1) 3. click New Tab 4. right click inside terminal (tab 2)
Created attachment 173410 [details] attachment-3530878-0.html thanks. can you provide a backtrace? it really helps ke find the issue. im the author of the previous patch. On Sat, 7 Sep 2024 at 07:28 <bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=492465 > > --- Comment #1 from alanas.00@mail.ru --- > since commit > > https://invent.kde.org/utilities/konsole/-/commit/c5e3aa26d3723ec9db9af3eb9b7da4c05359d5fd > bug doesn't happen with old STEPS TO REPRODUCE but is not fixed! > > new STEPS TO REPRODUCE: > 1. open konsole > 2. run `xxd /dev/urandom` inside terminal (tab 1) > 3. click New Tab > 4. right click inside terminal (tab 2) > > -- > You are receiving this mail because: > You are the assignee for the bug.
better STEPS TO REPRODUCE that I did (very consistent): 1. open konsole 2. run `sleep 8` inside terminal (tab 1) 3. wait 4 (ish) seconds 4. click New Tab 5. wait until tab 1 title changes "s : sleep" → "s : bash" 6. right click inside terminal (tab 2) 7. click outside context menu custom compiled with -O0 -ggdb3 stuff: kconfigwidgets: https://invent.kde.org/frameworks/kconfigwidgets/-/commit/3f78f559a7abe69b27181e9c7ff4655759a42bc3 qt 6.7.2: https://download.qt.io/official_releases/qt/6.7/6.7.2/submodules/qtbase-everywhere-src-6.7.2.tar.xz konsole: https://invent.kde.org/utilities/konsole/-/commit/e556e66331363e63e3503d0cd56232492e4fc48e I attach gdb (in telnet session not visible on screen) (between steps 5 and 6) ("after attach.png") I set breakpoint for writing to stderr (`catch syscall 1` and `condition 1 $rdi==2`) `continue` I right click inside konsole's terminal (step 6) gdb breakpoint hit (backtrace (`bt`): "write syscall bt.txt") I delete breakpoint (`del`) `continue` konsole context menu opened ("after del continue.png") I click outside context menu (step 7) konsole gets SIGSEGV signal (backtrace (`bt`): "sigsegv bt.txt") I will make attachments later
Created attachment 173414 [details] after attach.png
Created attachment 173415 [details] write syscall bt.txt
Created attachment 173416 [details] after del continue.png
Created attachment 173417 [details] sigsegv bt.txt
Created attachment 173418 [details] attachment-3569405-0.html ok. i think i know whats going on. ill try a better fix for this tomorrow. On Sat, 7 Sep 2024 at 21:19 <bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=492465 > > --- Comment #7 from alanas.00@mail.ru --- > Created attachment 173417 [details] > --> https://bugs.kde.org/attachment.cgi?id=173417&action=edit > sigsegv bt.txt > > -- > You are receiving this mail because: > You are the assignee for the bug.
I think I fixed it: https://invent.kde.org/utilities/konsole/-/merge_requests/1033
Git commit 1c3eaa8f15ff0858a32d1116426a69a09ccc5c21 by Kurt Hindenburg, on behalf of BZZZZ DZZZZ. Committed on 06/11/2024 at 00:09. Pushed by hindenburg into branch 'master'. Fix crashes with context menus Also redraw tabs better when tab color changes M +0 -3 src/session/SessionController.cpp M +2 -0 src/widgets/DetachableTabBar.cpp https://invent.kde.org/utilities/konsole/-/commit/1c3eaa8f15ff0858a32d1116426a69a09ccc5c21