-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用5.0.9的minigui库时拖拽窗口会死锁右键菜单显示minigui消息对话框也会死锁 #83
Comments
我用valgrind跑了一下线程测试,发现z序这块有点异常 |
Thanks for your detailed bug report! We will review and fix this bug asap. |
感觉这个问题有点严重,根据我的测试不仅仅在于上述场景,正常的movewindow都可能导致死锁的产生。 |
You are right. We are fixing the bug. |
We have fixed the bug: there is a deadlock introduced in v5.0.6. We have update the master branch and re-5-0 branch. Thanks for your bug report and useful information! |
之前用的3.2版本现在更新5.0版本跑mg-sample时发现以上问题,minigui运行在线程模式下!
(gdb) bt
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
#1 0x00007ffff7a41aaa in SendSyncMessage (hWnd=, msg=247,
wParam=, lParam=140737488347888) at message.c:1754
#2 0x00007ffff7a1449b in MoveWindow (hWnd=0x60b9f0, x=,
y=, w=800, h=, fPaint=) at window.c:5286
#3 0x00007ffff7a154bc in DefaultPostMsgHandler (lParam=2817498546992,
wParam=240518168592, message=81, pWin=0x60b9f0) at window.c:2267
#4 PreDefMainWinProc (hWnd=0x60b9f0, message=81, wParam=240518168592,
lParam=2817498546992) at window.c:2653
#5 0x00007ffff7a41308 in DispatchMessage (pMsg=pMsg@entry=0x7fffffffe3e0)
at message.c:1386
#6 0x00000000004014bc in MiniGUIAppMain (argc=argc@entry=1,
argv=argv@entry=0x7fffffffe588) at helloworld.c:209
#7 0x0000000000400d13 in main (args=1, argv=0x7fffffffe588) at helloworld.c:174
(gdb) info threads
Id Target Id Frame
3 Thread 0x7ffff5709700 (LWP 1729) "helloworld" 0x00007ffff76bb913 in select ()
at ../sysdeps/unix/syscall-template.S:81
2 Thread 0x7ffff5f0a700 (LWP 1728) "helloworld" pthread_rwlock_wrlock ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S:85
at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85
The text was updated successfully, but these errors were encountered: