Bug 363226 - Kate crashes if session includes files on mapped drive that has been disconnected
Summary: Kate crashes if session includes files on mapped drive that has been disconne...
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 464010 475717 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-05-18 14:51 UTC by Patrick Roye
Modified: 2024-03-15 19:53 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
cywgwin strace (20.97 KB, text/plain)
2022-06-10 16:08 UTC, bes.internal
Details
full windbg crash after restart with disconneted network drive (13.08 KB, text/plain)
2023-10-22 23:15 UTC, bes.internal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Roye 2016-05-18 14:51:13 UTC
If a Kate session includes files that are located on a Windows mapped network drive, Kate will crash if the network drive is disconnected. If the default session includes such files, Kate will crash on startup, making it impossible to open. The crash occurs if the remote computer goes offline or if you disconnect the mapped drive on the Windows machine.



Reproducible: Always

Steps to Reproduce:
1. Map a network drive in Windows (you can even map a shared folder on the same computer, e.g. \\127.0.0.1\C)
2. Open a file on the mapped drive in Kate
3. Press Sessions -> Save Session
4. Disconnect the mapped drive (right-click the drive in Explorer and press disconnect)

Actual Results:  
Kate crashes. Kate will crash on startup when attempting to reopen. To workaround, you must remap the network drive.

Expected Results:  
Kate does not crash and instead notifies user that file is no longer available.

Kate version 16.07.70 built from source on Windows using Visual Studio 2015.
Comment 1 Andrew Crouthamel 2018-11-01 13:57:19 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Bug Janitor Service 2018-11-16 11:41:53 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Patrick Roye 2018-11-23 17:26:48 UTC
I rebuilt with Craft today (11/23/18). Kate version is now 18.08.3.
KDE Frameworks 5.52.0
Qt 5.11.2 (built against 5.11.2)
The windows windowing system

Tested by mapping a network drive, opening a file on the drive, disconnecting the network, and refreshing the file in Kate, causing Kate to crash.
Comment 4 Christoph Cullmann 2019-07-13 21:42:11 UTC
Can you get some backtrace?
Comment 5 Justin Zobel 2020-11-13 03:37:41 UTC
Are you able to provide the details requested in Comment 4 if this is still an issue.

I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 6 Bug Janitor Service 2020-11-28 04:33:44 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2020-12-13 04:33:57 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 8 bes.internal 2022-06-10 16:08:58 UTC
Created attachment 149602 [details]
cywgwin strace
Comment 9 bes.internal 2022-06-10 16:10:34 UTC
How to get crash logs or strace (cygwin's strace not suitable for this) on windows?  I confirm this problem, let's understand the reasons
Comment 10 Christoph Cullmann 2022-08-27 18:02:21 UTC
I would assume one would rather use the MSVC debugger or windbg with the debug builds from binary-factory.kde.org
Comment 11 Christoph Cullmann 2023-10-09 16:07:55 UTC
Hi, could you try that with a more recent version from the store? Thanks.
Comment 12 bes.internal 2023-10-22 23:13:50 UTC
>could you try that with a more recent version from the store
kate 23.08.2
Nothing has changed - the application crashes.

As far as I could understand windbg... I managed to get something.

After network drive became unreacheble. Kate freeze (windows file subsystem timeout on network drive) then crash:
```
[...]
ModLoad: 00007ff9`2ab60000 00007ff9`2adfa000   C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.3570_none_60bb2a3971f3e41a\comctl32.dll
ModLoad: 00007ff9`3a090000 00007ff9`3a244000   C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
ModLoad: 00007ff9`2d1c0000 00007ff9`2d26c000   C:\WINDOWS\SYSTEM32\TextShaping.dll
(4960.1744): Stack overflow - code c00000fd (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
ntdll!RtlpDosPathNameToRelativeNtPathName+0x41:
00007ff9`3f22af91 894c2434        mov     dword ptr [rsp+34h],ecx ss:0000009d`fde03ec4=00000000
```

After crash I reload executable in windbg and go:
```
[...]
ModLoad: 00007ff9`2d270000 00007ff9`2d4ef000   C:\WINDOWS\system32\dwrite.dll
(4e20.3f40): Stack overflow - code c00000fd (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
ntdll!RtlProtectHeap+0x559:
00007ff9`3f21e639 e856050000      call    ntdll!RtlProtectHeap+0xab4 (00007ff9`3f21eb94)
```
Comment 13 bes.internal 2023-10-22 23:15:35 UTC
Created attachment 162506 [details]
full windbg crash after restart with disconneted network drive
Comment 14 Bug Janitor Service 2023-11-06 03:45:46 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 15 Christoph Cullmann 2024-01-20 21:57:47 UTC
*** Bug 464010 has been marked as a duplicate of this bug. ***
Comment 16 Christoph Cullmann 2024-03-15 19:53:04 UTC
*** Bug 475717 has been marked as a duplicate of this bug. ***