Help with a multi-threaded application. Spot a crash.
- From: Osmo Antero <osmoma gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Help with a multi-threaded application. Spot a crash.
- Date: Wed, 30 May 2012 20:30:40 +0100
Hello,
I have a multi-threaded application that filters data practically
while user types text in an entry-field. But this applications
regularly crashes. This surprises me because I have done similar code
in another occacion and language. This particular Gtk code is from an
open source app. So
Would you help me to spot this annoying "segmentation fault" so I
could move on. This seq-fault happens every time.
$ ./test2
Came here 0
Came here 0
Came here 0
Came here 0
Came here 0
Came here 0
Came here 0
Came here 0
Came here 0
Came here 0
Came here 1
Came here 1
Segmentation fault
Here is a complete test-code which I modelled after the actual
application. It will show the crash.
http://www.futuredesktop.org/tmp/test2.c
Compile it for Gtk2:
gcc -Wall test2.c -o test2 $(pkg-config --cflags --libs gtk+-2.0
gdk-2.0 gthread-2.0)
Or for Gtk3:
gcc -Wall test2.c -o test2 $(pkg-config --cflags --libs gtk+-3.0
gdk-3.0 gthread-2.0)
And run:
./test2
TIA! All comments are welcomed.
Kindly
osmo antero
http://www.futuredesktop.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]