[Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
Just installed a fresh Kubuntu 19.10 with libQt5Pas (via: sudo apt
install libqt5pas-dev)

But running a compiled qt5 program on this machine always exits with an
unhandled exception: EAccessViolation.

This also happens with a simple project. (no code, just new project and
hit compile)

A simple project compiled on a linux Mint 18.3 with Qt 5.6.1 also exits
with EAccessViolation on Kubuntu 19.10.

Any ideas how to solve this?

Regards,
Erwin

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
El 13/4/20 a les 18:37, Erwin van den Bosch via lazarus ha escrit:

> Just installed a fresh Kubuntu 19.10 with libQt5Pas (via: sudo apt
> install libqt5pas-dev)
>
> But running a compiled qt5 program on this machine always exits with an
> unhandled exception: EAccessViolation.
>
> This also happens with a simple project. (no code, just new project and
> hit compile)
>
> A simple project compiled on a linux Mint 18.3 with Qt 5.6.1 also exits
> with EAccessViolation on Kubuntu 19.10.
>
> Any ideas how to solve this?

No such problem here, but I compiled libQt5Pas myself, though I don't
remember if I compiled it clean or reused from a previous kubuntu release.
IIRC I followed the instructions here

https://wiki.lazarus.freepascal.org/Qt5_Interface#Qt5_on_Ubuntu_18.4

specifically the part where it says "If you wish to build your own
library, what you need is in your Lazarus tree, bindings sources are
located in lcl/interfaces/qt5/cbindings , to build it just follow
README.txt."

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
El 13/4/20 a les 19:31, Luca Olivetti via lazarus ha escrit:

> El 13/4/20 a les 18:37, Erwin van den Bosch via lazarus ha escrit:
>> Just installed a fresh Kubuntu 19.10 with libQt5Pas (via: sudo apt
>> install libqt5pas-dev)
>>
>> But running a compiled qt5 program on this machine always exits with
>> an unhandled exception: EAccessViolation.
>>
>> This also happens with a simple project. (no code, just new project
>> and hit compile)
>>
>> A simple project compiled on a linux Mint 18.3 with Qt 5.6.1 also
>> exits with EAccessViolation on Kubuntu 19.10.
>>
>> Any ideas how to solve this?
>
> No such problem here, but I compiled libQt5Pas myself, though I don't
> remember if I compiled it clean or reused from a previous kubuntu release.
> IIRC I followed the instructions here
>
> https://wiki.lazarus.freepascal.org/Qt5_Interface#Qt5_on_Ubuntu_18.4
>
> specifically the part where it says "If you wish to build your own
> library, what you need is in your Lazarus tree, bindings sources are
> located in lcl/interfaces/qt5/cbindings , to build it just follow
> README.txt."


Now I tried installing the packaged libqt5pas and still see no segfault.
Note that this isn't a fresh install, I dist-upgraded it (or better
do-release-upgraded it) many times, but I don't think that should matter.

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
Op 13-4-2020 om 19:43 schreef Luca Olivetti via lazarus:

> No such problem here, but I compiled libQt5Pas myself, though I don't
> remember if I compiled it clean or reused from a previous kubuntu
> release.
>> IIRC I followed the instructions here
>>
>> https://wiki.lazarus.freepascal.org/Qt5_Interface#Qt5_on_Ubuntu_18.4
>>
>> specifically the part where it says "If you wish to build your own
>> library, what you need is in your Lazarus tree, bindings sources are
>> located in lcl/interfaces/qt5/cbindings , to build it just follow
>> README.txt."
>
>
> Now I tried installing the packaged libqt5pas and still see no segfault.
> Note that this isn't a fresh install, I dist-upgraded it (or better
> do-release-upgraded it) many times, but I don't think that should matter.

Thanks for your answer. Is your system running on kubuntu 19.10?

I have tried to compile the cbindings but without success on 19.10
(something is missing)

Will test it now on kubuntu 18.04 LTS in a virtual machine. Results later...

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
Op 13-4-2020 om 20:26 schreef Erwin van den Bosch via lazarus:
>
> Will test it now on kubuntu 18.04 LTS in a virtual machine. Results
> later...
>
Just did a fresh install of kubuntu 18.04 LTS and all my Lazarus QT5
projects works fine. No access violation error on application close. So
there must be something wrong/incompatible with kubuntu 19.10.

I did two installs of kubuntu 19.10. One on a real machine and one in
VirtualBox. Same problem on both.

Someone experience the same problem?

--
Erwin van den Bosch

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
El 13/4/20 a les 20:26, Erwin van den Bosch via lazarus ha escrit:

> Thanks for your answer. Is your system running on kubuntu 19.10?

Yes, that's why I replied. However, as I said, it's not a clean install,
it has been dist-upgraded various times. I don't remember the version I
started from, but now it's 19.10

luca@seis:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.10
Release:        19.10
Codename:       eoan


>
> I have tried to compile the cbindings but without success on 19.10
> (something is missing)

Well, it compiles fine here, though now that I know that the distro
provided library works I'll have no need for that.

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On Mon, Apr 13, 2020 at 10:01 PM Erwin van den Bosch via lazarus <[hidden email]> wrote:
Just did a fresh install of kubuntu 18.04 LTS and all my Lazarus QT5
projects works fine. No access violation error on application close. So
there must be something wrong/incompatible with kubuntu 19.10.

I did two installs of kubuntu 19.10. One on a real machine and one in
VirtualBox. Same problem on both.

Someone experience the same problem?

I have the same problem with Manjaro + KDE Plasma. I had it for a long time already but didn't study further.
Manjaro has a recent version of everything. Maybe the pre-compiled libQt5Pas works only with older versions of QT5 libraries.
I didn't even try to build libQt5Pas myself yet.

Juha


--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
Op 13-4-2020 om 21:36 schreef Juha Manninen via lazarus:
I have the same problem with Manjaro + KDE Plasma. I had it for a long time already but didn't study further.
Manjaro has a recent version of everything. Maybe the pre-compiled libQt5Pas works only with older versions of QT5 libraries.
I didn't even try to build libQt5Pas myself yet.

I installed Manjaro+KDE Plasma 19.0.2 and got the same AccessViolation on the exit of a qt5 lazarus program. Manjaro qt5 version 5.14.1 is very recent. Kubuntu 19.10 qt version is 5.12.4. Kubuntu 18.04 LTS (that is working fine) is qt version 5.9.5.

As it happens after closing the application it could be some clean up / freeing objects that does not exists any more. Just a guess.

--
Erwin van den Bosch


--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
El 13/4/20 a les 23:31, Erwin van den Bosch via lazarus ha escrit:

> Op 13-4-2020 om 21:36 schreef Juha Manninen via lazarus:
>> I have the same problem with Manjaro + KDE Plasma. I had it for a long
>> time already but didn't study further.
>> Manjaro has a recent version of everything. Maybe the pre-compiled
>> libQt5Pas works only with older versions of QT5 libraries.
>> I didn't even try to build libQt5Pas myself yet.
>
> I installed Manjaro+KDE Plasma 19.0.2 and got the same AccessViolation
> on the exit of a qt5 lazarus program. Manjaro qt5 version 5.14.1 is very
> recent. Kubuntu 19.10 qt version is 5.12.4. Kubuntu 18.04 LTS (that is
> working fine) is qt version 5.9.5.

The question is, why I don't see the segfault with kubuntu 19.10?
I just tested a simple program with a memo and a button, but lazarus
itself doesn't segfaults.

Bye

--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
El 13/4/20 a les 23:42, Luca Olivetti via lazarus ha escrit:

> El 13/4/20 a les 23:31, Erwin van den Bosch via lazarus ha escrit:
>> Op 13-4-2020 om 21:36 schreef Juha Manninen via lazarus:
>>> I have the same problem with Manjaro + KDE Plasma. I had it for a
>>> long time already but didn't study further.
>>> Manjaro has a recent version of everything. Maybe the pre-compiled
>>> libQt5Pas works only with older versions of QT5 libraries.
>>> I didn't even try to build libQt5Pas myself yet.
>>
>> I installed Manjaro+KDE Plasma 19.0.2 and got the same AccessViolation
>> on the exit of a qt5 lazarus program. Manjaro qt5 version 5.14.1 is
>> very recent. Kubuntu 19.10 qt version is 5.12.4. Kubuntu 18.04 LTS
>> (that is working fine) is qt version 5.9.5.
>
> The question is, why I don't see the segfault with kubuntu 19.10?
> I just tested a simple program with a memo and a button, but lazarus
> itself doesn't segfaults.

Maybe it depends on the fpc version.
I did my tests with fpc 3.2.0RC1, but now I started my old lazarus 1.8
compiled with 3.0.4 and it segfaults on exit, as it does an empty
application compiled with it.

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On 4/13/20 7:43 PM, Luca Olivetti via lazarus wrote:

> Now I tried installing the packaged libqt5pas and still see no segfault.
> Note that this isn't a fresh install, I dist-upgraded it (or better
> do-release-upgraded it) many times, but I don't think that should matter.

IMO, fpc version is important. fpc-3.0.4 from distro crashes, fpc-3.0.4
built via fpcupdeluxe works, fpc-3.2.0beta works (because it's built via
fpcupdeluxe ? ).
Also, KDE Plasma have bug somewhere in KioCore which triggers on qt app
close - for this, I must test pure Qt5 application to see what's going
on. In this case Qt4 apps are crashing too.
How to reproduce such crash: simple form with TOpenDialog or
TSaveDialog, start your project, open dialog, close dialog, close app
and you'll segfaulted.

zeljko

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
El 14/4/20 a les 12:55, zeljko ha escrit:
> On 4/13/20 7:43 PM, Luca Olivetti via lazarus wrote:
>
>> Now I tried installing the packaged libqt5pas and still see no segfault.
>> Note that this isn't a fresh install, I dist-upgraded it (or better
>> do-release-upgraded it) many times, but I don't think that should matter.
>
> IMO, fpc version is important.

Yes, I meant that what doesn't matter is that I didn't install 19.10
clean but via do-release-upgrade

> fpc-3.0.4 from distro crashes, fpc-3.0.4
> built via fpcupdeluxe works, fpc-3.2.0beta works (because it's built via
> fpcupdeluxe ? ).
> Also, KDE Plasma have bug somewhere in KioCore which triggers on qt app
> close - for this, I must test pure Qt5 application to see what's going
> on. In this case Qt4 apps are crashing too.
> How to reproduce such crash: simple form with TOpenDialog or
> TSaveDialog, start your project, open dialog, close dialog, close app
> and you'll segfaulted.

not with fpc 3.2.0rc1 (I tried without opening the dialog, opening but
cancelling it, opening and selecting a file).

Bye

--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
On 4/14/20 1:33 PM, Luca Olivetti via lazarus wrote:

> El 14/4/20 a les 12:55, zeljko ha escrit:
>> On 4/13/20 7:43 PM, Luca Olivetti via lazarus wrote:
>>
>>> Now I tried installing the packaged libqt5pas and still see no segfault.
>>> Note that this isn't a fresh install, I dist-upgraded it (or better
>>> do-release-upgraded it) many times, but I don't think that should
>>> matter.
>>
>> IMO, fpc version is important.
>
> Yes, I meant that what doesn't matter is that I didn't install 19.10
> clean but via do-release-upgrade
>
>> fpc-3.0.4 from distro crashes, fpc-3.0.4 built via fpcupdeluxe works,
>> fpc-3.2.0beta works (because it's built via fpcupdeluxe ? ).
>> Also, KDE Plasma have bug somewhere in KioCore which triggers on qt
>> app close - for this, I must test pure Qt5 application to see what's
>> going on. In this case Qt4 apps are crashing too.
>> How to reproduce such crash: simple form with TOpenDialog or
>> TSaveDialog, start your project, open dialog, close dialog, close app
>> and you'll segfaulted.
>
> not with fpc 3.2.0rc1 (I tried without opening the dialog, opening but
> cancelling it, opening and selecting a file).

That's good to know :) I've tested dialogs with fpc-3.0.4 and it
segfaults even with my own build of fpc-3.0.4.

zeljko
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
Am 14.04.20 um 12:55 schrieb zeljko via lazarus:
> On 4/13/20 7:43 PM, Luca Olivetti via lazarus wrote:
>
>> Now I tried installing the packaged libqt5pas and still see no segfault.
>> Note that this isn't a fresh install, I dist-upgraded it (or better
>> do-release-upgraded it) many times, but I don't think that should matter.
>
> IMO, fpc version is important. fpc-3.0.4 from distro crashes,

Does anybody have a stack dump of the crash? Maybe it's related to the
stack alignment issues which are fixed in 3.2+?
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
On 4/14/20 6:28 PM, Florian Klämpfl via lazarus wrote:

> Am 14.04.20 um 12:55 schrieb zeljko via lazarus:
>> On 4/13/20 7:43 PM, Luca Olivetti via lazarus wrote:
>>
>>> Now I tried installing the packaged libqt5pas and still see no segfault.
>>> Note that this isn't a fresh install, I dist-upgraded it (or better
>>> do-release-upgraded it) many times, but I don't think that should
>>> matter.
>>
>> IMO, fpc version is important. fpc-3.0.4 from distro crashes,
>
> Does anybody have a stack dump of the crash? Maybe it's related to the
> stack alignment issues which are fixed in 3.2+?

This is crash dump - Fedora 30 64bit , fpc-3.0.4, Qt5 lcl.

Thread 1 "lazarus" received signal SIGSEGV, Segmentation fault.
0x00007ffff666c7f1 in std::swap<QPostEvent> (__b=..., __a=...) at
/usr/include/c++/9/bits/move.h:182
warning: Source file is more recent than executable.
182         swap(_Tp& __a, _Tp& __b)
(gdb) bt
#0  0x00007ffff666c7f1 in std::swap<QPostEvent> (__b=..., __a=...) at
/usr/include/c++/9/bits/move.h:182
#1  qSwap<QPostEvent> (value2=..., value1=...) at
../../include/QtCore/../../src/corelib/global/qglobal.h:915
#2  QCoreApplication::removePostedEvents (receiver=0x3e702c0,
eventType=0) at kernel/qcoreapplication.cpp:1883
#3  0x00007ffff669489e in QObjectPrivate::~QObjectPrivate
(this=0x3c8e4e0, __in_chrg=<optimized out>) at kernel/qobject.cpp:258
#4  0x00007fffe65993a0 in
QDBusAbstractInterfacePrivate::~QDBusAbstractInterfacePrivate
(this=0x3c8e4e0, __in_chrg=<optimized out>)
     at /usr/include/c++/9/bits/atomic_base.h:326
#5  QDBusAbstractInterfacePrivate::~QDBusAbstractInterfacePrivate
(this=0x3c8e4e0, __in_chrg=<optimized out>) at qdbusabstractinterface_p.h:88
#6  0x00007ffff669bcd7 in QScopedPointerDeleter<QObjectData>::cleanup
(pointer=<optimized out>) at
../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:52
#7  QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData>
 >::~QScopedPointer (this=0x3e702c8, __in_chrg=<optimized out>)
     at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:107
#8  QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>)
at kernel/qobject.cpp:891
#9  0x00007fffe569752d in
OrgKdeKDirNotifyInterface::~OrgKdeKDirNotifyInterface (this=0x3e702c0,
__in_chrg=<optimized out>)
     at
/usr/src/debug/kf5-kio-5.68.0-1.fc30.x86_64/src/core/kdirnotify.cpp:34
#10 0x00007ffff669ad3c in QObjectPrivate::deleteChildren
(this=this@entry=0x3ecf5f0) at kernel/qobject.cpp:2016
#11 0x00007ffff669bc8f in QObject::~QObject (this=<optimized out>,
__in_chrg=<optimized out>) at kernel/qobject.cpp:1032
#12 0x00007fffe56b8ffe in KCoreDirListerCache::~KCoreDirListerCache
(this=0x7fffe5728500 <(anonymous
namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>,
     __in_chrg=<optimized out>) at /usr/include/c++/9/bits/atomic_base.h:326
#13 0x00007fffe56b947d in (anonymous
namespace)::Q_QGS_kDirListerCache::Holder::~Holder (this=<optimized
out>, __in_chrg=<optimized out>)
     at
/usr/src/debug/kf5-kio-5.68.0-1.fc30.x86_64/src/core/kcoredirlister.cpp:54
#14 0x00007ffff7778680 in __run_exit_handlers () from /lib64/libc.so.6
#15 0x00007ffff77787c0 in exit () from /lib64/libc.so.6
#16 0x00007ffff7761f4a in __libc_start_main () from /lib64/libc.so.6
#17 0x00007fffffffdcf0 in ?? ()
#18 0x0000000000000000 in ?? ()
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
Am 14.04.20 um 18:47 schrieb zeljko:

> On 4/14/20 6:28 PM, Florian Klämpfl via lazarus wrote:
>> Am 14.04.20 um 12:55 schrieb zeljko via lazarus:
>>> On 4/13/20 7:43 PM, Luca Olivetti via lazarus wrote:
>>>
>>>> Now I tried installing the packaged libqt5pas and still see no
>>>> segfault.
>>>> Note that this isn't a fresh install, I dist-upgraded it (or better
>>>> do-release-upgraded it) many times, but I don't think that should
>>>> matter.
>>>
>>> IMO, fpc version is important. fpc-3.0.4 from distro crashes,
>>
>> Does anybody have a stack dump of the crash? Maybe it's related to the
>> stack alignment issues which are fixed in 3.2+?
>
> This is crash dump - Fedora 30 64bit , fpc-3.0.4, Qt5 lcl.
>
> Thread 1 "lazarus" received signal SIGSEGV, Segmentation fault.

Sorry, I were not precise enough. Can you also post a disassembly of the
swap procedure at 0x00007ffff666c7f1?

> 0x00007ffff666c7f1 in std::swap<QPostEvent> (__b=..., __a=...) at
> /usr/include/c++/9/bits/move.h:182
> warning: Source file is more recent than executable.
> 182         swap(_Tp& __a, _Tp& __b)
> (gdb) bt
> #0  0x00007ffff666c7f1 in std::swap<QPostEvent> (__b=..., __a=...) at
> /usr/include/c++/9/bits/move.h:182
> #1  qSwap<QPostEvent> (value2=..., value1=...) at
> ../../include/QtCore/../../src/corelib/global/qglobal.h:915
> #2  QCoreApplication::removePostedEvents (receiver=0x3e702c0,
> eventType=0) at kernel/qcoreapplication.cpp:1883
> #3  0x00007ffff669489e in QObjectPrivate::~QObjectPrivate
> (this=0x3c8e4e0, __in_chrg=<optimized out>) at kernel/qobject.cpp:258
> #4  0x00007fffe65993a0 in
> QDBusAbstractInterfacePrivate::~QDBusAbstractInterfacePrivate
> (this=0x3c8e4e0, __in_chrg=<optimized out>)
>      at /usr/include/c++/9/bits/atomic_base.h:326
> #5  QDBusAbstractInterfacePrivate::~QDBusAbstractInterfacePrivate
> (this=0x3c8e4e0, __in_chrg=<optimized out>) at
> qdbusabstractinterface_p.h:88
> #6  0x00007ffff669bcd7 in QScopedPointerDeleter<QObjectData>::cleanup
> (pointer=<optimized out>) at
> ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:52
> #7  QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData>
>  >::~QScopedPointer (this=0x3e702c8, __in_chrg=<optimized out>)
>      at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:107
> #8  QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>)
> at kernel/qobject.cpp:891
> #9  0x00007fffe569752d in
> OrgKdeKDirNotifyInterface::~OrgKdeKDirNotifyInterface (this=0x3e702c0,
> __in_chrg=<optimized out>)
>      at
> /usr/src/debug/kf5-kio-5.68.0-1.fc30.x86_64/src/core/kdirnotify.cpp:34
> #10 0x00007ffff669ad3c in QObjectPrivate::deleteChildren
> (this=this@entry=0x3ecf5f0) at kernel/qobject.cpp:2016
> #11 0x00007ffff669bc8f in QObject::~QObject (this=<optimized out>,
> __in_chrg=<optimized out>) at kernel/qobject.cpp:1032
> #12 0x00007fffe56b8ffe in KCoreDirListerCache::~KCoreDirListerCache
> (this=0x7fffe5728500 <(anonymous
> namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>,
>      __in_chrg=<optimized out>) at
> /usr/include/c++/9/bits/atomic_base.h:326
> #13 0x00007fffe56b947d in (anonymous
> namespace)::Q_QGS_kDirListerCache::Holder::~Holder (this=<optimized
> out>, __in_chrg=<optimized out>)
>      at
> /usr/src/debug/kf5-kio-5.68.0-1.fc30.x86_64/src/core/kcoredirlister.cpp:54
> #14 0x00007ffff7778680 in __run_exit_handlers () from /lib64/libc.so.6
> #15 0x00007ffff77787c0 in exit () from /lib64/libc.so.6
> #16 0x00007ffff7761f4a in __libc_start_main () from /lib64/libc.so.6
> #17 0x00007fffffffdcf0 in ?? ()
> #18 0x0000000000000000 in ?? ()
>

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On 14-04-2020 15:43, zeljko via lazarus wrote:
> not with fpc 3.2.0rc1 (I tried without opening the dialog, opening but
> cancelling it, opening and selecting a file).
>
> That's good to know :) I've tested dialogs with fpc-3.0.4 and it
> segfaults even with my own build of fpc-3.0.4.
>
> zeljko

I build FPC 3.20 RC1 on my Kubuntu 19.10 and I can confirm that the
segfault does not happen anymore. I created a simple project with button
and opendialog and all worked fine.

So FPC 3.2rc1 seems to fix it.

Erwin

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On 4/14/20 8:24 PM, Florian Klämpfl via lazarus wrote:

> Sorry, I were not precise enough. Can you also post a disassembly of the
> swap procedure at 0x00007ffff666c7f1?


0x00007ffff666c7f1 is at line 382 inside assembler.txt. That's all I can
get.

zeljko

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus

assembler.txt (29K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On Wed, Apr 15, 2020 at 12:22 AM Erwin van den Bosch via lazarus <[hidden email]> wrote:
I build FPC 3.20 RC1 on my Kubuntu 19.10 and I can confirm that the
segfault does not happen anymore. I created a simple project with button
and opendialog and all worked fine.

So FPC 3.2rc1 seems to fix it.

I got the crash every time, even with an empty LCL application without anything added. No OpenDialog was involved.
Yes, it happened only with FPC3.0.x. Now I have installed FPC trunk from Manjaro's AUR repo and the crash is gone.
I hope we will get rid of FPC3.0.4 soon. I will use only FPC trunk or 3.2(RC) from now on.

Juha


--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
Am 15.04.20 um 09:24 schrieb zeljko:
> On 4/14/20 8:24 PM, Florian Klämpfl via lazarus wrote:
>
>> Sorry, I were not precise enough. Can you also post a disassembly of
>> the swap procedure at 0x00007ffff666c7f1?
>
>
> 0x00007ffff666c7f1 is at line 382 inside assembler.txt. That's all I can
> get.

The offending line is
=> 0x00007ffff666c7f1 <+385>:   movaps %xmm0,0x50(%rsp)

So it is very likely an unaligned data sig fault (rsp not divisable by
8). This is fixed by r38400. Note that in some configurations it might
work, in others not.
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
12