Bug#983031: konqueror segfaults on starting

2021-03-06 Thread Aurélien COUDERC
Le samedi 6 mars 2021, 17:43:11 CET J Rowan a écrit :
> On Sat, 6 Mar 2021 14:04:38 +0100

Dear Joe,

thanks for taking the time to report the bug and investigate.
What the stack tells us is that the crash is in the R300 OpenGL graphics 
driver, as called by Qt Web Engine that Konqueror uses for the HTML rendering.

I cannot reproduce the crash myself on various more recent pieces of hardware, 
and neither did the team get similar bug reports.

So I can see 3 possible causes and (im)possible fixes from the most probable 
to the least :
1/ The OpenGL driver has a broken code path that is triggered here and should 
be fixed.
2/ Qt Web Engine calls the OpenGL stack incorrectly in this case and could be 
fixed. Alternatively it could be made to work around that particular OpenGL 
driver bug even if we’re in case 1/.
3/ That piece of graphics hardware is (now) broken and the code path makes it 
visible, nothing we can do about it. If that was the case I would expect the 
crash not to be reproducible 100% of the time, and here it looks like you can 
reproduce it so maybe not.

Looking the hardware support for that driver you must have a graphics card 
from the Radeon 9500-9800 series, X300-X600 series or X1050/X1150 from the 
2003-2005 era.
This driver is in maintenance mode to say the least so I wouldn’t get my hopes 
too high about a possible fix.

However if you want to help diagnose the issue further you could install the 
dbgsym packages [1] for at least libgl1-mesa-dri, libglx-mesa0, 
libqt5webenginecore5 and konqueror packages, and rerun the same gdb call so we 
get the crash stack with the function names and line numbers.

If you can confirm whether you get crashes with other programs using 3D 
rendering besides konqueror, that would be a useful data point.

Then we can decide if we want to forward the bug to mesa or Qt.

Again be ready to face refusals from both upstreams to work on an issue for 
such an old piece of hardware. Most opensource projects are understaffed and I 
have the feeling that reproducing let alone fixing this issue is not going to 
be an easy task.
Also I seem to remember that the R300 driver was made out of reverse 
engineering or with documentation provided to selected developers under NDA, 
which is not going to help either…

If you don’t have the time or motivation to do the above and dig further I’d 
still appreciate that you say so, and I’ll just mark this bug as « won’t 
fix ».


[1] https://wiki.debian.org/AutomaticDebugPackages?highlight=%28dbgsym%29


Thanks & happy hacking !
--
Aurélien


> Bernhard Übelacker  wrote:
> > gdb -q -ex 'set pagination off' -ex 'run' -ex 'bt' -ex 'detach' -ex
> > 'quit' --args konqueror
> 
> Reading symbols from konqueror...
> Reading symbols from
> /usr/lib/debug/.build-id/e4/6ba37330371215b40e01c7c01397ce28f6aa3c.debug...
> Starting program: /usr/bin/konqueror
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [New Thread 0x70faf700 (LWP 8878)]
> [New Thread 0x7fffe42c3700 (LWP 8885)]
> [New Thread 0x7fffe3981700 (LWP 8886)]
> [New Thread 0x7fffe3180700 (LWP 8887)]
> [New Thread 0x7fffe297f700 (LWP )]
> [New Thread 0x7fffe217e700 (LWP 8889)]
> [New Thread 0x7fffe197d700 (LWP 8890)]
> 
> Thread 1 "konqueror" received signal SIGSEGV, Segmentation fault.
> 0x in ?? ()
> #0  0x in  ()
> #1  0x7fffeafcf23f in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
> #2  0x7fffeaaeb704 in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
> #3  0x7fffeaaeca94 in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
> #4  0x7fffeaace95e in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
> #5  0x7fffeafcd903 in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
> #6  0x707175af in  () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
> #7  0x70705e49 in  () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
> #8  0x715db1b5 in  () at
> /usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integra
> tion.so #9  0x763fa4fb in QOpenGLContext::destroy() () at
> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #10 0x763fa7a7 in
> QOpenGLContext::~QOpenGLContext() () at
> /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #11 0x715dd2bf in  () at
> /usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integra
> tion.so #12 0x715dd909 in  () at
> /usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integra
> tion.so #13 0x7fffbd4d9845 in  () at
> /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5 #14 0x7fffd210
> in  ()
> #15 0x7fffbd4ddec1 in  () at
> /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5 #16 0x7fffd610
> in  ()
> #17 0x7fffbd4dc4e5 in  () at
> /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5 #18 0x7fffd230
> in  ()
> #19 0x0005 in  ()
> #20 0x7fffd530 in  ()
> #21 0x7fffd540 in  ()
> 

Bug#983031: konqueror segfaults on starting

2021-03-06 Thread J Rowan
On Sat, 6 Mar 2021 14:04:38 +0100
Bernhard Übelacker  wrote:

> gdb -q -ex 'set pagination off' -ex 'run' -ex 'bt' -ex 'detach' -ex
> 'quit' --args konqueror


Reading symbols from konqueror...
Reading symbols from 
/usr/lib/debug/.build-id/e4/6ba37330371215b40e01c7c01397ce28f6aa3c.debug...
Starting program: /usr/bin/konqueror 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x70faf700 (LWP 8878)]
[New Thread 0x7fffe42c3700 (LWP 8885)]
[New Thread 0x7fffe3981700 (LWP 8886)]
[New Thread 0x7fffe3180700 (LWP 8887)]
[New Thread 0x7fffe297f700 (LWP )]
[New Thread 0x7fffe217e700 (LWP 8889)]
[New Thread 0x7fffe197d700 (LWP 8890)]

Thread 1 "konqueror" received signal SIGSEGV, Segmentation fault.
0x in ?? ()
#0  0x in  ()
#1  0x7fffeafcf23f in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#2  0x7fffeaaeb704 in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#3  0x7fffeaaeca94 in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#4  0x7fffeaace95e in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#5  0x7fffeafcd903 in  () at /usr/lib/x86_64-linux-gnu/dri/r300_dri.so
#6  0x707175af in  () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#7  0x70705e49 in  () at /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0
#8  0x715db1b5 in  () at 
/usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#9  0x763fa4fb in QOpenGLContext::destroy() () at 
/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#10 0x763fa7a7 in QOpenGLContext::~QOpenGLContext() () at 
/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#11 0x715dd2bf in  () at 
/usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#12 0x715dd909 in  () at 
/usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#13 0x7fffbd4d9845 in  () at 
/usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#14 0x7fffd210 in  ()
#15 0x7fffbd4ddec1 in  () at 
/usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#16 0x7fffd610 in  ()
#17 0x7fffbd4dc4e5 in  () at 
/usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#18 0x7fffd230 in  ()
#19 0x0005 in  ()
#20 0x7fffd530 in  ()
#21 0x7fffd540 in  ()
#22 0x7fffd590 in  ()
#23 0x7fffd380 in  ()
#24 0x7fffd360 in  ()
#25 0x7fffd2a8 in  ()
#26 0x7fffd5a0 in  ()
#27 0x in  ()
Detaching from program: /usr/bin/konqueror, process 8873
[Inferior 1 (process 8873) detached]

-- 
Joe



Bug#983031: konqueror segfaults on starting

2021-03-06 Thread Bernhard Übelacker

Hello Joe,
this information might not be sufficient for the maintainer.

Could you try following to collect some more informations?

- install packages:
gdb psmisc konqueror-dbgsym

- stop all running instances of konqueror:
killall konqueror

- then start konqueror inside a debugger:
gdb -q -ex 'set pagination off' -ex 'run' -ex 'bt' -ex 'detach' -ex 'quit' 
--args konqueror


When the crash happens, a backtrace should be printed.
Please forward this output to this bug.

More debugging hints can be found here [1].

Kind regards,
Bernhard

[1] https://wiki.debian.org/HowToGetABacktrace



Bug#961087: marked as done (kate: Close tab icon missing)

2021-03-06 Thread Debian Bug Tracking System
Your message dated Sat, 06 Mar 2021 11:09:41 -0500
with message-id 
<3ab0b1d29de2aebbb3f264eb453dd3fd267f031a.ca...@realcarbonneau.com>
and subject line Re: Bug#961087: Acknowledgement (kate: Close tab icon missing)
has caused the Debian Bug report #961087,
regarding kate: Close tab icon missing
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
961087: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961087
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: kate
Version: 4:20.04.0-1
Severity: important
Tags: upstream

Dear Maintainer,

Fresh install of Debian 11 Bullseye in a VM (KVM-QEMU), only lxde-core, spice-
vdagent and kate installed additionally.  All updates applied

The close tab icon is missing in Kate. See attached screenshot of kate in
Debian 10 and in Debian 11.

The close tab functions correctly by clicking in the space where the icon
should be, only the icon is missing.



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages kate depends on:
ii  kate5-data   4:20.04.0-1
ii  kio  5.62.1-2+b1
ii  ktexteditor-katepart 5.62.0-1+b1
ii  libc62.30-8
ii  libkf5bookmarks5 5.62.0-1+b1
ii  libkf5completion55.62.0-1+b1
ii  libkf5configcore55.62.0-1+b1
ii  libkf5configgui5 5.62.0-1+b1
ii  libkf5configwidgets5 5.62.0-1+b1
ii  libkf5coreaddons55.62.0-1
ii  libkf5crash5 5.62.0-1+b1
ii  libkf5dbusaddons55.62.0-1
ii  libkf5guiaddons5 5.62.0-2
ii  libkf5i18n5  5.62.0-1
ii  libkf5jobwidgets55.62.0-1+b1
ii  libkf5kiocore5   5.62.1-2+b1
ii  libkf5kiofilewidgets55.62.1-2+b1
ii  libkf5kiowidgets55.62.1-2+b1
ii  libkf5newstuff5  5.62.0-1+b1
ii  libkf5parts5 5.62.0-1+b1
ii  libkf5plasma55.62.0-2
ii  libkf5service-bin5.62.0-1
ii  libkf5service5   5.62.0-1
ii  libkf5syntaxhighlighting55.62.0-3
ii  libkf5texteditor55.62.0-1+b1
ii  libkf5textwidgets5   5.62.0-1+b1
ii  libkf5threadweaver5  5.62.0-1
ii  libkf5wallet-bin 5.62.0-1+b1
ii  libkf5wallet55.62.0-1+b1
ii  libkf5widgetsaddons5 5.62.0-1+b1
ii  libkf5windowsystem5  5.62.0-3
ii  libkf5xmlgui55.62.0-1+b1
ii  libqt5core5a 5.12.5+dfsg-10
ii  libqt5dbus5  5.12.5+dfsg-10
ii  libqt5gui5   5.12.5+dfsg-10
ii  libqt5sql5   5.12.5+dfsg-10
ii  libqt5widgets5   5.12.5+dfsg-10
ii  libqt5xml5   5.12.5+dfsg-10
ii  libstdc++6   10.1.0-1
ii  plasma-framework 5.62.0-2
ii  qml-module-org-kde-kquickcontrolsaddons  5.62.0-1+b2
ii  qml-module-qtquick-layouts   5.12.5-5
ii  qml-module-qtquick2  5.12.5-5

Versions of packages kate recommends:
ii  sonnet-plugins  5.62.0-1+b1

Versions of packages kate suggests:
pn  darcs
pn  exuberant-ctags  
pn  git  
pn  khelpcenter  
pn  konsole-kpart
pn  mercurial
pn  subversion   

-- no debconf information
--- End Message ---
--- Begin Message ---
Package: kate
Version: 4:20.12.2-1

This is now corrected in my current version (4:20.12.2-1)

apt search kate
kate/testing,now 4:20.12.2-1 amd64 [installed]
  powerful text editor



-Original Message-
From: Debian Bug Tracking System 
Reply-To: 961...@bugs.debian.org
To: Real Carbonneau 
Subject: Bug#961087: Acknowledgement (kate: Close tab icon missing)
Date: Tue, 19 May 2020 22:03:03 +

Thank you for filing a new Bug report with Debian.

You can follow progress 

Bug#942872: marked as done (kate: Kate tabs have no close button)

2021-03-06 Thread Debian Bug Tracking System
Your message dated Sat, 06 Mar 2021 11:09:41 -0500
with message-id 
<3ab0b1d29de2aebbb3f264eb453dd3fd267f031a.ca...@realcarbonneau.com>
and subject line Re: Bug#961087: Acknowledgement (kate: Close tab icon missing)
has caused the Debian Bug report #961087,
regarding kate: Kate tabs have no close button
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
961087: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961087
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: kate
Version: 4:19.08.2-1
Severity: normal

Dear Maintainer,

   * What led up to the situation?
current upgrade (at 22 Oct 2019)
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
Open file from command line, nautilus or in-app file open
   * What was the outcome of this action?
File opens in tab with no top-right close button (although clicking
top-right closes tab/file)
   * What outcome did you expect instead?
Tab to have an 'X' icon at its top-right




-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.0-3-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages kate depends on:
ii  kate5-data   4:19.08.2-1
ii  kio  5.62.1-2
ii  ktexteditor-katepart 5.62.0-1
ii  libc62.29-2
ii  libkf5activities55.62.0-1
ii  libkf5bookmarks5 5.62.0-1
ii  libkf5completion55.62.0-1
ii  libkf5configcore55.62.0-1
ii  libkf5configgui5 5.62.0-1
ii  libkf5configwidgets5 5.62.0-1
ii  libkf5coreaddons55.62.0-1
ii  libkf5crash5 5.62.0-1
ii  libkf5dbusaddons55.62.0-1
ii  libkf5guiaddons5 5.62.0-1
ii  libkf5i18n5  5.62.0-1
ii  libkf5iconthemes55.62.0-1
ii  libkf5jobwidgets55.62.0-1
ii  libkf5kiocore5   5.62.1-2
ii  libkf5kiofilewidgets55.62.1-2
ii  libkf5kiowidgets55.62.1-2
ii  libkf5newstuff5  5.62.0-1
ii  libkf5parts5 5.62.0-1
ii  libkf5plasma55.62.0-1
ii  libkf5service-bin5.62.0-1
ii  libkf5service5   5.62.0-1
ii  libkf5texteditor55.62.0-1
ii  libkf5textwidgets5   5.62.0-1
ii  libkf5threadweaver5  5.62.0-1
ii  libkf5wallet-bin 5.62.0-1
ii  libkf5wallet55.62.0-1
ii  libkf5widgetsaddons5 5.62.0-1
ii  libkf5windowsystem5  5.62.0-2
ii  libkf5xmlgui55.62.0-1
ii  libqt5core5a 5.11.3+dfsg1-4
ii  libqt5dbus5  5.11.3+dfsg1-4
ii  libqt5gui5   5.11.3+dfsg1-4
ii  libqt5sql5   5.11.3+dfsg1-4
ii  libqt5widgets5   5.11.3+dfsg1-4
ii  libqt5xml5   5.11.3+dfsg1-4
ii  libstdc++6   9.2.1-8
ii  plasma-framework 5.62.0-1
ii  qml-module-org-kde-kquickcontrolsaddons  5.62.0-1
ii  qml-module-qtquick-layouts   5.11.3-4
ii  qml-module-qtquick2  5.11.3-4

Versions of packages kate recommends:
ii  sonnet-plugins  5.62.0-1

Versions of packages kate suggests:
ii  darcs2.14.2-2
ii  exuberant-ctags  1:5.9~svn20110310-12
ii  git  1:2.23.0-1
ii  khelpcenter  4:18.04.0-1
ii  konsole-kpart4:19.08.1-2
ii  mercurial5.1.1-1
ii  subversion   1.10.6-1+b1

-- no debconf information
--- End Message ---
--- Begin Message ---
Package: kate
Version: 4:20.12.2-1

This is now corrected in my current version (4:20.12.2-1)

apt search kate
kate/testing,now 4:20.12.2-1 amd64 [installed]
  powerful text editor



-Original Message-
From: Debian Bug Tracking