[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2898: The process does not start


http://gambaswiki.org/bugtracker/edit?object=BUG.2898&from=L21haW4-

Comment #8 by Gianluigi GRADASCHI:

Hi Benoit,

unfortunately I'm not familiar with debugging, with gdb on the latest master (3d54ca4) I get this output:

$ gbc3 -agt
OK
gian@gian:~/gambasdevel/app/src/gambas3$ gdb gbx3
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 gbx3...
(gdb) run
Starting program: /usr/bin/gbx3 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after vfork from child process 4254]
[Detaching after vfork from child process 4256]
[Detaching after vfork from child process 4258]
[New Thread 0x7fffe8960640 (LWP 4260)]
[New Thread 0x7fffe3fff640 (LWP 4261)]
[New Thread 0x7fffe37fe640 (LWP 4262)]
[Thread 0x7fffe37fe640 (LWP 4262) exited]
[New Thread 0x7fffe37fe640 (LWP 4263)]
[New Thread 0x7fffe2fbe640 (LWP 4264)]
[Thread 0x7fffe37fe640 (LWP 4263) exited]
[Thread 0x7fffe2fbe640 (LWP 4264) exited]
[New Thread 0x7fffe2fbe640 (LWP 4265)]
[New Thread 0x7fffe37fe640 (LWP 4266)]
[Thread 0x7fffe2fbe640 (LWP 4265) exited]
[New Thread 0x7fffe2fbe640 (LWP 4267)]
[Thread 0x7fffe37fe640 (LWP 4266) exited]
[New Thread 0x7fffe37fe640 (LWP 4268)]
[New Thread 0x7fffe26bb640 (LWP 4269)]
[Thread 0x7fffe37fe640 (LWP 4268) exited]
[Thread 0x7fffe26bb640 (LWP 4269) exited]
[New Thread 0x7fffe26bb640 (LWP 4273)]
[New Thread 0x7fffe37fe640 (LWP 4274)]
[Thread 0x7fffe37fe640 (LWP 4274) exited]
[Thread 0x7fffe26bb640 (LWP 4273) exited]
[New Thread 0x7fffe26bb640 (LWP 4275)]
[New Thread 0x7fffe37fe640 (LWP 4276)]
[Thread 0x7fffe26bb640 (LWP 4275) exited]
[Thread 0x7fffe37fe640 (LWP 4276) exited]
[New Thread 0x7fffe37fe640 (LWP 4277)]
[New Thread 0x7fffe26bb640 (LWP 4278)]
[Thread 0x7fffe37fe640 (LWP 4277) exited]
[Thread 0x7fffe26bb640 (LWP 4278) exited]
[New Thread 0x7fffe26bb640 (LWP 4279)]
[New Thread 0x7fffe37fe640 (LWP 4280)]
[Thread 0x7fffe37fe640 (LWP 4280) exited]
[Thread 0x7fffe26bb640 (LWP 4279) exited]
[New Thread 0x7fffe26bb640 (LWP 4281)]
[New Thread 0x7fffe37fe640 (LWP 4282)]
[New Thread 0x7fffe1e55640 (LWP 4283)]
[Detaching after vfork from child process 4284]
[New Thread 0x7fffe14b6640 (LWP 4289)]
[New Thread 0x7fffe0b74640 (LWP 4290)]
[New Thread 0x7fffd1fff640 (LWP 4291)]
[New Thread 0x7fffd17fe640 (LWP 4292)]
[New Thread 0x7fffd0dfd640 (LWP 4293)]
[New Thread 0x7fff7af30640 (LWP 4294)]
[New Thread 0x7fff7a72f640 (LWP 4295)]
[New Thread 0x7fff79f2e640 (LWP 4296)]
[New Thread 0x7fff7972d640 (LWP 4297)]
[New Thread 0x7fff78f2c640 (LWP 4298)]
[New Thread 0x7fff53fff640 (LWP 4299)]
[Thread 0x7fff53fff640 (LWP 4299) exited]
[Thread 0x7fff78f2c640 (LWP 4298) exited]
[Thread 0x7fff7972d640 (LWP 4297) exited]
[Thread 0x7fff79f2e640 (LWP 4296) exited]
[New Thread 0x7fff79f2e640 (LWP 4300)]
[New Thread 0x7fff7972d640 (LWP 4301)]
[New Thread 0x7fff78f2c640 (LWP 4302)]
[New Thread 0x7fff53fff640 (LWP 4306)]
[New Thread 0x7fff537fe640 (LWP 4307)]
[Thread 0x7fff537fe640 (LWP 4307) exited]
[Thread 0x7fff53fff640 (LWP 4306) exited]
[New Thread 0x7fff53fff640 (LWP 4308)]
[New Thread 0x7fff537fe640 (LWP 4309)]
[New Thread 0x7fff50ffd640 (LWP 4310)]
[New Thread 0x7fff3ffff640 (LWP 4311)]
[Detaching after vfork from child process 4312]
[New Thread 0x7fff3f7fe640 (LWP 4313)]
[New Thread 0x7fff3effd640 (LWP 4314)]
[Thread 0x7fff3f7fe640 (LWP 4313) exited]
[Thread 0x7fff3effd640 (LWP 4314) exited]
[Detaching after vfork from child process 4322]
*** buffer overflow detected ***: terminated

Thread 1 "gbx3" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737350444864) at ./nptl/pthread_kill.c:44
44	./nptl/pthread_kill.c: File o directory non esistente.
(gdb) bt
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737350444864)
    at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140737350444864)
    at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140737350444864, signo=signo@entry=6)
    at ./nptl/pthread_kill.c:89
#3  0x00007ffff7db3476 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/posix/raise.c:26
#4  0x00007ffff7d997f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x00007ffff7dfa676 in __libc_message
    (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7f4c92e "*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:155
#6  0x00007ffff7ea759a in __GI___fortify_fail
    (msg=msg@entry=0x7ffff7f4c8d4 "buffer overflow detected")
    at ./debug/fortify_fail.c:26
#7  0x00007ffff7ea5f16 in __GI___chk_fail () at ./debug/chk_fail.c:28
#8  0x00007ffff7ea74db in __fdelt_chk (d=d@entry=-1) at ./debug/fdelt_chk.c:25
#9  0x000055555559f533 in WATCH_process
    (fd_end=fd_end@entry=-1, fd_output=60, fd_error=63, timeout=timeout@entry=0) at gbx_watch.c:700
#10 0x00005555555afa41 in CPROCESS_wait_for (timeout=0, process=0x5555575e3f78)
    at gbx_c_process.c:1000
#11 CPROCESS_wait_for
--Type <RET> for more, q to quit, c to continue without paging--
    (process=process@entry=0x5555575e3f78, timeout=timeout@entry=0)
    at gbx_c_process.c:974
#12 0x000055555558fae1 in SUBR_exec (code=<optimized out>)
    at gbx_subr_misc.c:195
#13 0x00005555555bb583 in EXEC_loop () at gbx_exec_loop.c:862
#14 0x00005555555c125d in EXEC_function_loop () at gbx_exec.c:916
#15 0x00005555555c1a44 in EXEC_function_real () at gbx_exec.c:903
#16 0x00005555555c2ed1 in EXEC_public_desc
    (class=<optimized out>, object=object@entry=0x0, desc=desc@entry=0x555555e4a508, nparam=nparam@entry=0) at gbx_exec.c:1587
#17 0x00005555555751e8 in main (argc=<optimized out>, argv=<optimized out>)
    at gbx.c:495
(gdb) 
(gdb) q
A debugging session is active.

	Inferior 1 [process 4251] will be killed.

Quit anyway? (y or n) y


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----

References:
[Gambas-bugtracker] Bug #2898: The process does not start<bugtracker@xxxxxxxxxxxxxx>