Processed: Re: Bug#886692: kate: crashing when opening a file from the Konsole CLI, when $(PWD) is too long
Processing control commands: > tags 886692 + unreproducible moreinfo Bug #886692 [kate] kate: crashing when opening a file from the Konsole CLI, when $(PWD) is too long Added tag(s) unreproducible and moreinfo. -- 886692: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886692 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
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 (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 0x7fffb700 (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=0x55acb330, project=0x55995430) at ./addons/project/kateprojectpluginview.cpp:134 134 { 1: x/i $pc => 0x7fffe0d27560 : push %r15 (gdb) disa 1 (gdb) print KateProjectPluginView::viewForProject $1 = {QPair (KateProjectPluginView * const, KateProject *)} 0x7fffe0d27560 (gdb) b * $1 + 200 Breakpoint 2 at 0x7fffe0d27628: file ./addons/project/kateprojectpluginview.cpp, line 190. (gdb) cont Continuing. Thread 1 "kate" hit Breakpoint 2, 0x7fffe0d27628 in KateProjectPluginView::viewForProject (this=this@entry=0x55acb330, project=0x55995430) at ./addons/project/kateprojectpluginview.cpp:190 190 m_stackedProjectInfoViews->addWidget(infoView); 1: x/i $pc => 0x7fffe0d27628 : callq 0x7fffe0d1ece0 <_ZN14QStackedWidget9addWidgetEP7QWidget@plt> (gdb) bt #0 0x7fffe0d27628 in KateProjectPluginView::viewForProject (this=this@entry=0x555
Bug#886692: kate: crashing when opening a file from the Konsole CLI, when $(PWD) is too long
Package: kate Version: 4:16.08.3-1 Severity: important Dear Maintainer, If I try to launch this version of Kate from the command line interface, first reaching the desired directory and then opening the desired file: marmo@e5470:/DEFAULT/home/marmo/Work/NEGF/SPRKKR_LMAT_practice$ kate negf.f ... the program crashes with STDERR: KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = kate path = /usr/bin pid = 10801 KCrash: Arguments: /usr/bin/kate negf.f KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit sock_file=/run/user/1000/kdeinit5__0 (further dump attached) If I copy the same text file to /tmp, move into such directory and issue the same command, the program instead works. This behaviour seems to hint at some problem coming from the current working directory length. Both the initial file placement above, and /tmp, belong to the same EXT4 filesystem. Its mounting options are as follow: /dev/nvme0n1p2 on / type ext4 (rw,relatime,stripe=32743,data=ordered) Thanks for your time and everything, -- Alberto. -- System Information: Debian Release: 9.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.14.10 (SMP w/4 CPU cores) Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages kate depends on: ii kate5-data 4:16.08.3-1 ii kio 5.28.0-2 ii ktexteditor-katepart 5.28.0-2 ii libc62.24-11+deb9u1 ii libgit2-24 0.25.1+really0.24.6-1 ii libkf5activities55.28.0-1 ii libkf5bookmarks5 5.28.0-1 ii libkf5completion55.28.0-1 ii libkf5configcore55.28.0-2 ii libkf5configgui5 5.28.0-2 ii libkf5configwidgets5 5.28.0-2 ii libkf5coreaddons55.28.0-2 ii libkf5crash5 5.28.0-1 ii libkf5dbusaddons55.28.0-1 ii libkf5guiaddons5 5.28.0-1 ii libkf5i18n5 5.28.0-2 ii libkf5iconthemes55.28.0-2 ii libkf5itemmodels55.28.0-2 ii libkf5jobwidgets55.28.0-2 ii libkf5kiocore5 5.28.0-2 ii libkf5kiofilewidgets55.28.0-2 ii libkf5kiowidgets55.28.0-2 ii libkf5newstuff5 5.28.0-1 ii libkf5parts5 5.28.0-1 ii libkf5plasma55.28.0-2 ii libkf5service-bin5.28.0-1 ii libkf5service5 5.28.0-1 ii libkf5texteditor55.28.0-2 ii libkf5textwidgets5 5.28.0-1 ii libkf5threadweaver5 5.28.0-1+b2 ii libkf5wallet-bin 5.28.0-3 ii libkf5wallet55.28.0-3 ii libkf5widgetsaddons5 5.28.0-3 ii libkf5windowsystem5 5.28.0-2 ii libkf5xmlgui55.28.0-1 ii libqt5core5a 5.7.1+dfsg-3+b1 ii libqt5dbus5 5.7.1+dfsg-3+b1 ii libqt5gui5 5.7.1+dfsg-3+b1 ii libqt5sql5 5.7.1+dfsg-3+b1 ii libqt5widgets5 5.7.1+dfsg-3+b1 ii libqt5xml5 5.7.1+dfsg-3+b1 ii libstdc++6 6.3.0-18 ii plasma-framework 5.28.0-2 ii qml-module-org-kde-kquickcontrolsaddons 5.28.0-1 ii qml-module-qtquick-layouts 5.7.1-2+b2 ii qml-module-qtquick2 5.7.1-2+b2 kate recommends no packages. Versions of packages kate suggests: ii aspell 0.60.7~20110707-3+b2 ii khelpcenter4:16.08.3-1 ii konsole-kpart 4:16.12.0-4 -- no debconf information Application: Kate (kate), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7f53b96d7d80 (LWP 10439))] Thread 10 (Thread 0x7f539129c700 (LWP 10449)): #0 0x7f53b1da615f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x7f53b5308c6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #2 0x7f53999b8d50 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #3 0x7f53999bcf88 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeave