STRANGE SEGFAULT
- From: Toni Moreno Giménez <toni moreno gimenez wanadoo es>
- To: gtk-list gnome org
- Subject: STRANGE SEGFAULT
- Date: Tue, 9 Apr 2002 00:31:24 +0200
Hi.
When debugging my application, gdb shows the following backtrace:
Loaded symbols for /usr/lib/gtk/themes/engines/libraleigh.so
#0 0x40485f84 in __libc_write () from /lib/i686/libc.so.6
(gdb) ba
#0 0x40485f84 in __libc_write () from /lib/i686/libc.so.6
#1 0x402b91b4 in _XlcPublicMethods () from /usr/X11R6/lib/libX11.so.6
#2 0x4022b8d7 in _X11TransWrite () from /usr/X11R6/lib/libX11.so.6
#3 0x4020ebdd in _XFlush () from /usr/X11R6/lib/libX11.so.6
#4 0x402100d7 in _XReply () from /usr/X11R6/lib/libX11.so.6
#5 0x4020b9b8 in XSync () from /usr/X11R6/lib/libX11.so.6
#6 0x4016a253 in gdk_image_new () at eval.c:41
#7 0x40169fff in gdk_image_new () at eval.c:41
...
...
The code "seems" ok, so I have tested diferent solutions, in the last, I have
decided to lock memory using mlockall(), when using it, application runs ok,
I have no much experience on direct system call programming so I can't
understand this segfault.
The application is running 2 threads , the first for the gtk_main loop, and
the second runs a sound writer to /dev/dsp loop.
Somebody can help me? please ?
Lots of thanks.
--
=================
Toni Moreno Giménez
=================
Pje de las rosas nº 22
Vilassar de Mar
(Barcelona) España
CP: 08340
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]