[Gambas-user] Bug: Shell command gives segmentaion fault

Alan Huseby awh at ...401...
Mon Mar 22 18:36:20 CET 2004


I've had this problem for a couple of releases of Gambas ago, I figured it
was just a problem with my code, but I finally decided to try and track it
down.  If I try to run the shell command even by itself in a new program
where it's the only line of code, it still segfaults.  My app is console
based, currently running on LinuxMandrake 10, also tested on RedHat 7.3,
Mandrake 9, 9.1, and 9.2 with same problems.  AMD XP-1800+, 512MB RAM

In a new blank application the following causes the segfault for me:

shell "lynx -source > test.txt" wait

The program does run and functions normally.

(gdb) run
Starting program: /usr/bin/gbx -p
My test program
Detaching after fork from child process 10305.

Program received signal SIGSEGV, Segmentation fault.
0x0805fd28 in watch_fd (fd=-1, flag=0) at gbx_watch.c:67
67          FD_CLR(fd, &read_fd);
(gdb) bt
#0  0x0805fd28 in watch_fd (fd=-1, flag=0) at gbx_watch.c:67
#1  0x0805fe18 in WATCH_watch (fd=-1, type=0, callback=0x0, param=0) at
gbx_watch.c:114
#2  0x0805d970 in GB_Watch (fd=-1, flag=0, callback=0x0, param=0) at
gbx_api.c:918
#3  0x08065451 in exit_process (_object=0x8074bd0) at gbx_c_process.c:138
#4  0x080654fe in stop_process_after (param=134695888) at
gbx_c_process.c:171
#5  0x08054f66 in EVENT_check_post () at gbx_event.c:176
#6  0x0805fff4 in WATCH_loop () at gbx_watch.c:189
#7  0x08060a6c in main (argc=1, argv=0xbffff714) at gbx.c:276
(gdb)

Any help would be appreciated.





More information about the User mailing list