strange segmentation fault error!



Hi all,

This is my first post to the list. I encountered a strange bug in my program and would like to seek the expertise of the group.

I have a window created using GTK/GDK displaying a video stream. On mouse clicking inside the window frame, I am to get the coordinates of the mouse click. All these appear fine. The problem only surfaces after numerous clicks (around >10, sometimes even the 2nd or 3rd clicks), the program terminates with a segmentation fault error. 

On debugging with gdb, the error that caused the segmentation fault was a file called eval.c could not be located. I did not create such a file and a find/search on the system does not show the presence of such a file.

Here is the error msg from gdb:
program received signal SIGSEGV, segmentation faults.
0x00FA0000 in ??() at eval.c:41
41  eval.c:No such file or directory
     in eval.c

and on using backtrace, the following msg was obtained:
#0  0x00FA0000 in ??() at eval.c:41
#1  0x0804B9C3 in myfunction(data=0x0) at main.c:124
#2  0x4019B691 in g_timeout_dispatch() at eval.c:41
#3  0x4019A773 in g_main_dispatch() at eval.c:41
...

myfunction() is called every 120 msec to capture the video frames and draw the pixels on my drawing area.

What could be wrong with the problem?
I am currently using GTK+ 1.2. Should I upgrade to GTK+ 2.0?

Any insights would be greatly appreciated.

Thanks
J



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