Laz 2.1 trunk, or 2.0.1 fixes?
Can you attach a list of all threads, and traces of other threads please?
On 24/02/2019 12:00, Michael Van Canneyt via lazarus wrote:
Hello,
I find that the IDE has become very unstable lately. I didn't install any
new packages, didn't update FPC (still on FPC 3.0.4). Just updated
lazarus
from SVN.
4 out of 5 attempts to close the IDE using the window manager button
fails:
lazarus hangs and I must kill it using
killall -KILL lazarus
from a terminal.
It's very reproducible.
Start lazarus
Open package
Compile package
Switch to form editor of start project
Close (window manager or menu file - exit)
-> hang
I can attach to it using gdb. Here is the stack trace:
0 pthread_cond_timedwait@@GLIBC_2.3.2 () at
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1 0x000000000044f306 in INTRTLEVENTWAITFORTIMEOUT
(AEVENT=0x7f460e943040, TIMEOUT=100) at ../unix/cthreads.pp:973
#2 0x000000000043f66f in RTLEVENTWAITFOR (STATE=0x7f460e943040,
TIMEOUT=100) at ../inc/thread.inc:325
#3 0x000000000052fc3c in CHECKSYNCHRONIZE (TIMEOUT=100) at
../objpas/classes/classes.inc:395
#4 0x000000000199177a in DOONIDECLOSE (this=0x7f45fff9ba80,
SENDER=0x7f46057bfdb0) at opkman_intf.pas:125
#5 0x00000000006a30c7 in CALLNOTIFYEVENTS (this=0x7f45f4c6d440,
SENDER=0x7f46057bfdb0) at lazmethodlist.pas:315
#6 0x00000000009749f5 in DOCALLNOTIFYHANDLER (this=0x7f46057bfdb0,
HANDLERTYPE=LIHTIDECLOSE) at lazideintf.pas:659
#7 0x00000000004ad026 in MAINIDEFORMCLOSE (this=0x7f46057bfdb0,
SENDER=0x7f45f73f98f0, CLOSEACTION=CAFREE) at main.pp:2058
#8 0x0000000000487698 in DOCLOSE (this=0x7f45f73f98f0,
CLOSEACTION=CAFREE) at include/customform.inc:959
#9 0x000000000048af81 in CLOSE (this=0x7f45f73f98f0) at
include/customform.inc:2196
#10 0x00000000004c1afd in QUITIDE (this=0x7f46057bfdb0) at main.pp:6622
#11 0x00000000004b50dd in MNUQUITCLICKED (this=0x7f46057bfdb0,
SENDER=0x7f45f7e9cfc0) at main.pp:3655
#12 0x000000000096f40f in MENUITEMCLICK (this=0x7f45f7e9cfc0,
SENDER=0x7f45fff05d40) at menuintf.pas:544
#13 0x00000000009733b1 in MENUITEMCLICK (this=0x7f45f7e9cfc0,
SENDER=0x7f45fff05d40) at menuintf.pas:1695
Seems a bug in the online package manager. Who said once that threads
are evil ? :)
For now I uninstalled the online package manager, but a fix would be
really appreciated :-)
Michael.
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus