[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-11-26 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=408797

Christoph Feck  changed:

   What|Removed |Added

 CC||klivmanis+...@gmail.com

--- Comment #15 from Christoph Feck  ---
*** Bug 413262 has been marked as a duplicate of this bug. ***

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-26 Thread David Faure
https://bugs.kde.org/show_bug.cgi?id=408797

David Faure  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|CONFIRMED   |RESOLVED
  Latest Commit||https://commits.kde.org/kio
   ||/2c379fecccbf5e2c0b20a93c84
   ||3c009f2f597318

--- Comment #14 from David Faure  ---
Git commit 2c379fecccbf5e2c0b20a93c843c009f2f597318 by David Faure.
Committed on 27/09/2019 at 00:56.
Pushed by dfaure into branch 'master'.

Fix crash on exit in kio_file

Summary:
All QTextCodec are deleted by QCoreGlobalData on exit, so they must be
allocated on the heap.
Before Qt 5.12, it is even not allowed to delete them.

Reviewers: cfeck, dfaure, broulik

Reviewed By: dfaure

Subscribers: aacid, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D24150

M  +2-1src/ioslaves/file/file.cpp

https://commits.kde.org/kio/2c379fecccbf5e2c0b20a93c843c009f2f597318

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-25 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=408797

--- Comment #13 from Christoph Feck  ---
*** Bug 412335 has been marked as a duplicate of this bug. ***

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-25 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=408797

--- Comment #12 from Christoph Feck  ---
*** Bug 412337 has been marked as a duplicate of this bug. ***

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-24 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=408797

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-22 Thread Loïc Yhuel
https://bugs.kde.org/show_bug.cgi?id=408797

--- Comment #11 from Loïc Yhuel  ---
(In reply to Christoph Feck from comment #9)
> Thanks for the investigation, Loïc! Do you want to submit a patch to
> phabricator?
Done, https://phabricator.kde.org/D24150

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-22 Thread Cherkah
https://bugs.kde.org/show_bug.cgi?id=408797

Cherkah  changed:

   What|Removed |Added

 CC||cherifkah...@gmail.com

--- Comment #10 from Cherkah  ---
same kdeinit5 crash when closing dolphin or kate.

debian/kde sid

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-21 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=408797

--- Comment #9 from Christoph Feck  ---
Thanks for the investigation, Loïc! Do you want to submit a patch to
phabricator?

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-19 Thread Loïc Yhuel
https://bugs.kde.org/show_bug.cgi?id=408797

--- Comment #8 from Loïc Yhuel  ---
(In reply to Loïc Yhuel from comment #4)
> Until Qt 5.12 (https://codereview.qt-project.org/c/qt/qtbase/+/230316), you
> are not allowed to delete a QTextCodec.
> 
https://bugs.kde.org/show_bug.cgi?id=412103 made me realize that even with Qt
5.12, allocating a QTextCodec on the stack is not valid, unless there is no
exit() anywhere below, since if it isn't destroyed before QCoreGlobalData, the
delete operator will be called, which will call free on a stack address.

So, even with Qt 5.12, the proper solution is to allocate it on the heap :
"(void)new LegacyCodec;".

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-19 Thread Loïc Yhuel
https://bugs.kde.org/show_bug.cgi?id=408797

--- Comment #7 from Loïc Yhuel  ---
*** Bug 412103 has been marked as a duplicate of this bug. ***

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-19 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=408797

--- Comment #6 from Patrick Silva  ---
Is bug 412103 a duplicate?

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-19 Thread Loïc Yhuel
https://bugs.kde.org/show_bug.cgi?id=408797

Loïc Yhuel  changed:

   What|Removed |Added

 CC||kitt...@gmail.com

--- Comment #5 from Loïc Yhuel  ---
*** Bug 411441 has been marked as a duplicate of this bug. ***

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-19 Thread Loïc Yhuel
https://bugs.kde.org/show_bug.cgi?id=408797

Loïc Yhuel  changed:

   What|Removed |Added

 CC||loic.yh...@gmail.com

--- Comment #4 from Loïc Yhuel  ---
(In reply to Christoph Feck from comment #1)
> https://cgit.kde.org/kio.git/tree/src/ioslaves/file/file.cpp#n719
> 
> I wonder if ::exit() is really the only way to "deal" with errors. Someone
> familiar with KIO error handling would need to investigate how to do it
> properly.

It has now been removed :
https://cgit.kde.org/kio.git/commit/?id=512967f6f4e887d4a5a0a7da5893055e1c840ce5.

But there is an exit() later in kinit, leading to a crash in
QCoreGlobalData::~QCoreGlobalData, see the backtrace which was attached to
https://bugs.kde.org/show_bug.cgi?id=411441.

The root cause is
https://cgit.kde.org/kio.git/commit/src/ioslaves/file/file.cpp?id=6738a8b2f71c527f30a624b0b560f79d992715d3.
Until Qt 5.12 (https://codereview.qt-project.org/c/qt/qtbase/+/230316), you are
not allowed to delete a QTextCodec.

Since kdeinit does not call QLibrary::unload, the file.so plugin stays in
memory, so you can just do "(void)new LegacyCodec;",
QCoreGlobalData::~QCoreGlobalData will delete it on exit.

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-09-15 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=408797

--- Comment #3 from Patrick Silva  ---
I can't reproduce this crash after upgrade to frameworks 5.62 on Arch Linux.

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-08-13 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=408797

--- Comment #2 from Christoph Feck  ---
*** Bug 410119 has been marked as a duplicate of this bug. ***

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

[frameworks-kinit] [Bug 408797] kinit crashes when I close Dolphin while it shows the content of an audio CD

2019-07-03 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=408797

Christoph Feck  changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1

--- Comment #1 from Christoph Feck  ---
https://cgit.kde.org/kio.git/tree/src/ioslaves/file/file.cpp#n719

I wonder if ::exit() is really the only way to "deal" with errors. Someone
familiar with KIO error handling would need to investigate how to do it
properly.

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