https://bugs.kde.org/show_bug.cgi?id=488551

--- Comment #11 from alanas...@mail.ru ---
if I:
1. run `gdb --command=gdb.txt`
2. click "Settings'
3. turn on "Show menubar" (left click) (it was off all times I opened haruna
`gdb --command=gdb.txt` with after crash)
4. set breakpoint on
https://github.com/qt/qtdeclarative/blob/v6.9.0/src/quicktemplates/qquickmenu.cpp#L1390
(`b qquickmenu.cpp:1390` gdb command)
5. turn off "Show menubar" (left click)
6. wait 3 seconds
7. turn on "Show menubar" (left click)
8. BREAKPOINT HIT
9. run `x/a d->contentItem` gdb command

I see `0x555559943890:  0x7ffff3378be8
<_ZTVN11QQmlPrivate11QQmlElementI14QQuickListViewEE+16>`.

10. delete breakpoint (`del` gdb command)
11. continue (`c` gdb command)
12. haruna doesn't crash

if I:
1. run `gdb --command=gdb.txt`
2. click "Settings'
3. turn on "Show menubar" (left click) (it was off all times I opened haruna
`gdb --command=gdb.txt` with after crash)
4. set breakpoint on
https://github.com/qt/qtdeclarative/blob/v6.9.0/src/quicktemplates/qquickmenu.cpp#L1390
(`b qquickmenu.cpp:1390` gdb command)
5. turn off "Show menubar" (left click)
6. turn on "Show menubar" (left click) (immediately after step 5)
7. BREAKPOINT HIT
8. run `x/a d->contentItem` gdb command

I see `0x55555952a790:  0x55555952bb00`

9. continue (`c` gdb command)
10. haruna crashes

haruna crashes because d->contentItem pointer points to invalid QQuickItem
(first 8 bytes of a valid QQuickItem is address of vtable + 16)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to