[Gambas-bugtracker] Bug #2678: Project already open, issue
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Wed Jan 4 14:55:06 CET 2023
http://gambaswiki.org/bugtracker/edit?object=BUG.2678&from=L21haW4-
Comment #6 by Gianluigi GRADASCHI:
Hi Benoit,
it just happened with the last master as well, I tried to open a program in another window of the IDE and nothing happened, so I gave the commands you suggested yesterday assuming that the most recent process is the one that is blocked:
gian at gian:~$ pidof gbr3
157291 157130
gian at gian:~$ sudo gdb gbr3 157291
[sudo] password di gian:
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gbr3...
Attaching to program: /usr/bin/gbr3, process 157291
[New LWP 157300]
[New LWP 157301]
[New LWP 157324]
[New LWP 157325]
[New LWP 157327]
[New LWP 157328]
[New LWP 157329]
[New LWP 157330]
[New LWP 157355]
[New LWP 157356]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f82b57457ed in __GI___select (nfds=nfds at entry=42, readfds=readfds at entry=0x7ffd30111f10, writefds=writefds at entry=0x0, exceptfds=exceptfds at entry=0x0, timeout=timeout at entry=0x0) at ../sysdeps/unix/sysv/linux/select.c:69
69 ../sysdeps/unix/sysv/linux/select.c: File o directory non esistente.
(gdb) p DEBUG_get_current_position()
$1 = 0x55f1af4b8900 <COMMON_buffer> "[gb.jit].CCompilation.Wait.143"
(gdb) bt
#0 0x00007f82b57457ed in __GI___select
(nfds=nfds at entry=42, readfds=readfds at entry=0x7ffd30111f10, writefds=writefds at entry=0x0, exceptfds=exceptfds at entry=0x0, timeout=timeout at entry=0x0)
at ../sysdeps/unix/sysv/linux/select.c:69
#1 0x000055f1af4618c5 in WATCH_process
(fd_end=fd_end at entry=41, fd_output=-1, fd_error=-1, timeout=timeout at entry=0) at gbx_watch.c:715
#2 0x000055f1af471ac1 in CPROCESS_wait_for (timeout=0, process=0x55f1aff29268)
at gbx_c_process.c:998
#3 CPROCESS_wait_for (process=0x55f1aff29268, timeout=0)
at gbx_c_process.c:972
#4 0x000055f1af4844cb in EXEC_native () at gbx_exec.c:1336
#5 0x000055f1af47e4fb in EXEC_loop () at gbx_exec_loop.c:1572
#6 0x000055f1af48337d in EXEC_function_loop () at gbx_exec.c:911
#7 0x000055f1af483b48 in EXEC_function_real () at gbx_exec.c:898
#8 0x000055f1af484ff9 in EXEC_public_desc
(class=<optimized out>, object=<optimized out>, desc=<optimized out>, nparam=<optimized out>) at gbx_exec.c:1591
#9 0x000055f1af45793b in GB_Call
(func=func at entry=0x55f1af4b6640 <_jit_wait_func>, nparam=nparam at entry=1, release=release at entry=0) at gbx_api.c:1212
#10 0x000055f1af43a6a5 in wait_for_compilation (arch=<optimized out>)
at gbx_jit.c:165
--Type <RET> for more, q to quit, c to continue without paging--
#11 create_function (index=7, class=0x55f1aff23c68) at gbx_jit.c:216
#12 JIT_exec (ret_on_stack=ret_on_stack at entry=1 '\001') at gbx_jit.c:290
#13 0x000055f1af47e992 in EXEC_loop () at gbx_exec_loop.c:1291
#14 0x000055f1af48337d in EXEC_function_loop () at gbx_exec.c:911
#15 0x000055f1af483b48 in EXEC_function_real () at gbx_exec.c:898
#16 0x000055f1af4878cb in EXEC_pop_unknown () at gbx_exec_pop.c:267
#17 0x000055f1af47df19 in EXEC_loop () at gbx_exec_loop.c:984
#18 0x000055f1af48337d in EXEC_function_loop () at gbx_exec.c:911
#19 0x000055f1af483b48 in EXEC_function_real () at gbx_exec.c:898
#20 0x000055f1af48515b in EXEC_special
(special=special at entry=0, class=<optimized out>, object=<optimized out>,
object at entry=0x55f1b0ce0c18, nparam=<optimized out>, drop=drop at entry=1 '\001') at gbx_exec.c:1667
#21 0x000055f1af485675 in EXEC_special_inheritance
(special=special at entry=0, class=<optimized out>,
class at entry=0x55f1afef98d8, object=object at entry=0x55f1b0ce0c18, nparam=0,
nparam at entry=1, drop=drop at entry=1 '\001') at gbx_exec.c:1812
#22 0x000055f1af485ca0 in EXEC_new (code=<optimized out>) at gbx_exec.c:1921
#23 0x000055f1af47deb8 in EXEC_loop () at gbx_exec_loop.c:1058
#24 0x000055f1af48337d in EXEC_function_loop () at gbx_exec.c:911
#25 0x000055f1af483b48 in EXEC_function_real () at gbx_exec.c:898
#26 0x000055f1af485803 in EXEC_special_inheritance
(special=special at entry=0, class=class at entry=0x55f1b01858c8, object=object at en--Type <RET> for more, q to quit, c to continue without paging--
try=0x55f1b22ab658, nparam=nparam at entry=1, drop=drop at entry=1 '\001')
at gbx_exec.c:1765
#27 0x000055f1af485ca0 in EXEC_new (code=<optimized out>) at gbx_exec.c:1921
#28 0x000055f1af47deb8 in EXEC_loop () at gbx_exec_loop.c:1058
#29 0x000055f1af48337d in EXEC_function_loop () at gbx_exec.c:911
#30 0x000055f1af483b48 in EXEC_function_real () at gbx_exec.c:898
#31 0x000055f1af484ff9 in EXEC_public_desc
(class=<optimized out>, object=object at entry=0x0, desc=desc at entry=0x55f1b03ff328, nparam=nparam at entry=0) at gbx_exec.c:1591
#32 0x000055f1af437fa8 in main (argc=<optimized out>, argv=<optimized out>)
at gbx.c:488
(gdb) q
A debugging session is active.
Inferior 1 [process 157291] will be detached.
Quit anyway? (y or n) y
Detaching from program: /usr/bin/gbr3, process 157291
[Inferior 1 (process 157291) detached]
-------------------------------------------------------------
To be on the safe side, I debugged the other program as well:
gian at gian:~$ sudo gdb gbr3 157130
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gbr3...
Attaching to program: /usr/bin/gbr3, process 157130
[New LWP 157141]
[New LWP 157142]
[New LWP 157165]
[New LWP 157166]
[New LWP 157168]
[New LWP 157169]
[New LWP 157170]
[New LWP 157171]
[New LWP 157198]
[New LWP 157199]
[New LWP 157216]
[New LWP 157218]
[New LWP 157223]
[New LWP 157224]
[New LWP 157263]
[New LWP 157264]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f6672566d7f in __GI___poll (fds=0x563de06a1440, nfds=4, timeout=119) at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: File o directory non esistente.
(gdb) p DEBUG_get_current_position()
$1 = 0x563dde998004 "?"
(gdb) bt
#0 0x00007f6672566d7f in __GI___poll (fds=0x563de06a1440, nfds=4, timeout=119)
at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007f666f573666 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f666f51c3e3 in g_main_context_iteration ()
at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f666fb83de5 in gtk_main_iteration_do ()
at /lib/x86_64-linux-gnu/libgtk-3.so.0
#4 0x00007f6670ca319a in MAIN_do_iteration(bool)
(do_not_block=do_not_block at entry=false) at main.cpp:699
#5 0x00007f6670ca31ee in hook_loop() () at main.cpp:577
#6 0x0000563dde94233a in main (argc=<optimized out>, argv=<optimized out>)
at gbx.c:504
(gdb)
--------------------------------------------------------------------------
Unfortunately I understand little about Gnome Debug, tell me if I get the commands wrong and ask for more tests.
If I am able to do them, gladly do so
Regards
Gianluigi
More information about the Bugtracker
mailing list