[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#886692: kate: crashing when opening a file from the Konsole CLI, when $(PWD) is too long



Control: tags 886692 + unreproducible moreinfo



Hello Alberto,
I just tried to get some more information from this crash.

I assume this is not caused by the length of the current directory.
Instead I think this is caused by this file:

    /DEFAULT/home/marmo/Work/NEGF/SPRKKR_LMAT_practice/.kateproject

If that does not exist the code path from your
backtrace is not entered.

Maybe you could forward this file to this bug?

Kind regards,
Bernhard
# Stretch amd64 qemu VM 2019-05-03


apt update
apt dist-upgrade


apt install systemd-coredump xserver-xorg dbus-x11 sddm plasma-desktop gdb mc git kate kate-dbgsym
apt build-dep kate


reboot




mkdir /home/benutzer/source/kate/orig -p
cd    /home/benutzer/source/kate/orig
apt source kate
cd


mkdir .gdb
cd .gdb
git clone https://github.com/Lekensteyn/qt5printers.git
cat << EOF > qt5-gdbinit
python
import sys, os.path
sys.path.insert(0, os.path.expanduser('~/.gdb'))
import qt5printers
qt5printers.register_printers(gdb.current_objfile())
end
EOF
cd ..





mkdir /DEFAULT/home/marmo/Work/NEGF/SPRKKR_LMAT_practice -p
cd    /DEFAULT/home/marmo/Work/NEGF/SPRKKR_LMAT_practice
echo test > negf.f
chown benutzer:benutzer /DEFAULT/home/marmo -R
cp -a negf.f /tmp




cat << EOF > .kateproject
{
   "name": "MyProject",
   "files": [ {
             "directory": "doc",
             "filters": ["*.tex", "Makefile"],
             "recursive": 1
       } ]
}
EOF







export DISPLAY=:0
cd    /DEFAULT/home/marmo/Work/NEGF/SPRKKR_LMAT_practice
kate negf.f


########



gdb -q --args kate negf.f

set width 0
set pagination off
display/i $pc
b KatePluginManager::enablePluginGUI
run
disa 1
print _ZN17KatePluginManager15enablePluginGUIEP14KatePluginInfoP14KateMainWindowP11KConfigBase
b * $1 + 630
cont



set width 0
set pagination off
directory /home/benutzer/source/kate/orig/kate-16.08.3
display/i $pc
b KateProjectPluginView::KateProjectPluginView
y
run



set width 0
set pagination off
directory /home/benutzer/source/kate/orig/kate-16.08.3
source /home/benutzer/.gdb/qt5-gdbinit
display/i $pc
b KateProjectPlugin::projectForDir
y
b KateProjectPlugin::createProjectForFileName
y
run





set width 0
set pagination off
directory /home/benutzer/source/kate/orig/kate-16.08.3
source /home/benutzer/.gdb/qt5-gdbinit
display/i $pc
b KateProjectPluginView::viewForProject
y
run
disa 1
print KateProjectPluginView::viewForProject
b * $1 + 200
cont



benutzer@debian:/DEFAULT/home/marmo/Work/NEGF/SPRKKR_LMAT_practice$ gdb -q --args kate negf.f
Reading symbols from kate...Reading symbols from /usr/lib/debug/.build-id/f6/ac5a4ec48449ec7744c62c72f9f330bdae0094.debug...done.
done.
(gdb) set width 0
(gdb) set pagination off
(gdb) directory /home/benutzer/source/kate/orig/kate-16.08.3
Source directories searched: /home/benutzer/source/kate/orig/kate-16.08.3:$cdir:$cwd
(gdb) source /home/benutzer/.gdb/qt5-gdbinit
(gdb) display/i $pc
1: x/i $pc
<error: No registers.>
(gdb) b KateProjectPluginView::viewForProject
Function "KateProjectPluginView::viewForProject" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (KateProjectPluginView::viewForProject) pending.
(gdb) run
Starting program: /usr/bin/kate negf.f
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe291f700 (LWP 7958)]
[New Thread 0x7fffe19cb700 (LWP 7959)]
[New Thread 0x7fffdbfff700 (LWP 7961)]
[New Thread 0x7fffdb7fe700 (LWP 7962)]
[New Thread 0x7fffdaffd700 (LWP 7964)]
[New Thread 0x7fffda7fc700 (LWP 7965)]
[New Thread 0x7fffd9ffb700 (LWP 7966)]
[New Thread 0x7fffd97fa700 (LWP 7967)]
[New Thread 0x7fffd8ff9700 (LWP 7968)]
[New Thread 0x7fffbffff700 (LWP 7969)]
[New Thread 0x7fffbf7fe700 (LWP 7970)]
[New Thread 0x7fffbeffd700 (LWP 7971)]
[New Thread 0x7fffbe7fc700 (LWP 7972)]
[New Thread 0x7fffbdffb700 (LWP 7973)]
[New Thread 0x7fffbd7fa700 (LWP 7974)]
[New Thread 0x7fffbcff9700 (LWP 7975)]
[New Thread 0x7fff9bfff700 (LWP 7976)]
[New Thread 0x7fff9b7fe700 (LWP 7977)]

Thread 1 "kate" hit Breakpoint 1, KateProjectPluginView::viewForProject (this=this@entry=0x555555acb330, project=0x555555995430) at ./addons/project/kateprojectpluginview.cpp:134
134     {
1: x/i $pc
=> 0x7fffe0d27560 <KateProjectPluginView::viewForProject(KateProject*)>:        push   %r15
(gdb) disa 1
(gdb) print KateProjectPluginView::viewForProject
$1 = {QPair<KateProjectView*, KateProjectInfoView*> (KateProjectPluginView * const, KateProject *)} 0x7fffe0d27560 <KateProjectPluginView::viewForProject(KateProject*)>
(gdb) b * $1 + 200
Breakpoint 2 at 0x7fffe0d27628: file ./addons/project/kateprojectpluginview.cpp, line 190.
(gdb) cont
Continuing.

Thread 1 "kate" hit Breakpoint 2, 0x00007fffe0d27628 in KateProjectPluginView::viewForProject (this=this@entry=0x555555acb330, project=0x555555995430) at ./addons/project/kateprojectpluginview.cpp:190
190         m_stackedProjectInfoViews->addWidget(infoView);
1: x/i $pc
=> 0x7fffe0d27628 <KateProjectPluginView::viewForProject(KateProject*)+200>:    callq  0x7fffe0d1ece0 <_ZN14QStackedWidget9addWidgetEP7QWidget@plt>
(gdb) bt
#0  0x00007fffe0d27628 in KateProjectPluginView::viewForProject (this=this@entry=0x555555acb330, project=0x555555995430) at ./addons/project/kateprojectpluginview.cpp:190
#1  0x00007fffe0d2802c in KateProjectPluginView::KateProjectPluginView (this=0x555555acb330, plugin=<optimized out>, mainWin=<optimized out>) at ./addons/project/kateprojectpluginview.cpp:63
#2  0x00007fffe0d20585 in KateProjectPlugin::createView (this=0x55555599a5c0, mainWindow=0x55555597ed10) at ./addons/project/kateprojectplugin.cpp:113
#3  0x00005555555b8af9 in KatePluginManager::enablePluginGUI (this=<optimized out>, item=0x5555559656e0, win=0x55555599cf20, config=0x5555558bd6c0) at ./kate/katepluginmanager.cpp:221
#4  0x00005555555b8c38 in KatePluginManager::enableAllPluginsGUI (this=0x7fffffffe4b0, win=win@entry=0x55555599cf20, config=config@entry=0x5555558bd6c0) at ./kate/katepluginmanager.cpp:165
#5  0x00005555555b3aa9 in KateMainWindow::KateMainWindow (this=0x55555599cf20, sconfig=0x5555558bd6c0, sgroup="MainWindow0", __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ./kate/katemainwindow.cpp:146
#6  0x000055555559e672 in KateApp::newMainWindow (this=<optimized out>, sconfig_=sconfig_@entry=0x5555558bd6c0, sgroup_="MainWindow0") at ./kate/kateapp.cpp:335
#7  0x00005555555d42a5 in KateSessionManager::loadSession (this=this@entry=0x7fffffffe4d0, session=...) at ./kate/session/katesessionmanager.cpp:200
#8  0x00005555555d52ab in KateSessionManager::activateSession (this=this@entry=0x7fffffffe4d0, session=..., closeAndSaveLast=closeAndSaveLast@entry=false, loadNew=loadNew@entry=true) at ./kate/session/katesessionmanager.cpp:161
#9  0x00005555555d5736 in KateSessionManager::activateSession (this=0x7fffffffe4d0, name="", closeAndSaveLast=closeAndSaveLast@entry=false, loadNew=loadNew@entry=true) at ./kate/session/katesessionmanager.cpp:223
#10 0x00005555555d57d1 in KateSessionManager::activateAnonymousSession (this=<optimized out>) at ./kate/session/katesessionmanager.cpp:228
#11 0x00005555555a1294 in KateApp::startupKate (this=0x7fffffffe410) at ./kate/kateapp.cpp:152
#12 0x00005555555a1505 in KateApp::init (this=0x7fffffffe410) at ./kate/kateapp.cpp:98
#13 0x0000555555599d4b in main (argc=<optimized out>, argv=<optimized out>) at ./kate/main.cpp:555

Reply to: