I think this must be here too... please i need help with these... i can't debug any deep, or don't know what else to do.

---------- Forwarded message ----------
From: Alvaro Aguirre <[EMAIL PROTECTED]>
Date: Oct 5, 2006 3:43 PM
Subject: Re: Signal 4 running gtk-demo
To: directfb-users@directfb.org

I trace the problem to
data->pipe_thread = direct_thread_create( DTT_MESSAGING,
                                               IDirectFBEventBuffer_Feed, data,
                                               "EventBufferFeed" );

on IDirectFBEventBuffer_CreateFileDescriptor (src/input/idirectfbinputbuffer.c)
The specific problem is after the thread is created, exactly in the point where will be executed the function
ret = thread->main( thread, thread->arg );
on direct_thread_main (lib/direct/thread.c) directfb hangs

If i put a sleep just before ret = thread->main( thread, thread->arg ); gtk-demo loads ok (also if i comment direct_thread_create) but this left me without mouse (i don't test the keyboard).

IDEAS PLEASE!!!!!!



On 10/4/06, Alvaro Aguirre < [EMAIL PROTECTED]> wrote:
A strace with --enable-trace on the same point where hangs:

.
.
.
ioctl(5, KDGKBENT, 0x7ffffbf0)          = 0
ioctl(5, KDGKBENT, 0x7ffffbf0)          = 0
ioctl(5, KDGKBENT, 0x7ffffbf0)          = 0
ioctl(5, KDGKBENT, 0x7ffffbf0)          = 0
open("/directfb-1.0.0-rc1/cursor.dat", O_RDONLY) = 9
fstat64(9, {st_mode=S_IFREG|0644, st_size=6400, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aac2000
read(9, "[EMAIL PROTECTED]"..., 4096) = 4096
read(9, "\377\377\377|\377\377\377z\377\377\377w\377\377\377u\377"..., 4096) = 2304
close(9)                                = 0
munmap(0x2aac2000, 4096)                = 0
socketpair(PF_FILE, SOCK_STREAM, 0, [9, 10]) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
write(7, "`\340\37+\0\0\0\0\0\0\0\0\2347\34+`\'\5\0\0\0\0\200\0\0"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
<... rt_sigsuspend resumed> )           = 32
sigreturn()                             = ? (mask now [RTMIN])
write(2, "(*) Direct/Thread: Running \'Even"..., 65) = 65
fstat64(9, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
fcntl64(9, F_GETFL)                     = 0x2 (flags O_RDWR)
access("gtk-logo-rgb.gif ", F_OK)        = -1 ENOENT (No such file or directory)
access("/usr/local/share/gtk-2.0/demo/gtk-logo-rgb.gif", F_OK) = 0
open("/usr/local//lib/charset.alias", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/share/gtk-2.0/demo/gtk-logo-rgb.gif", O_RDONLY|O_LARGEFILE) = 11
fstat64(11, {st_mode=S_IFREG|0644, st_size=6427, ...}) = 0
old_mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b464000
read(11, "GIF89ak\0\214\0\347\0\0\377\377\377\357\373\365\357\364"..., 131072) = 6427
.
.
.



On 10/4/06, Alvaro Aguirre < [EMAIL PROTECTED]> wrote:
I'm running directfb on a arm device but i have problems when i try to run gtk-demo with directfb compiled WITHOUT --enable-trace. WITH trace the gtk-demo runs ok, without i got:

[EMAIL PROTECTED]:root# gtk-demo

     =======================|  DirectFB 1.0.0-rc1  |=======================
          (c) 2001-2006  United Cultures of Earth - go for outer space!
          (c) 2000-2004  Convergence (integrated media) GmbH
        ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2006-10-04 22:46)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 496)...
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 502)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (Convergence GmbH)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 520)...
(*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH)
(!) Direct/Modules: Could not open module directory `/usr/local/lib/directfb- 1.0-0/gfxdrivers'!
    --> No such file or directory
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (convergence integrated media GmbH)
(*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
(*) Direct/Thread: Running 'EventBufferFeed' (MESSAGING, 523)...
(!) [  523:    0.000] --> Caught signal 4 (at 0x2b175318, illegal opcode) <--
Killed

I also run gtk-demo using strace and the tail of the log is:
.
.
.
ioctl(5, KDGKBENT, 0x7ffffc80)          = 0
ioctl(5, KDGKBENT, 0x7ffffc7c)          = 0
ioctl(5, KDGKBENT, 0x7ffffc88)          = 0
ioctl(5, KDGKBENT, 0x7ffffc84)          = 0
ioctl(5, KDGKBENT, 0x7ffffc80)          = 0
ioctl(5, KDGKBENT, 0x7ffffc7c)          = 0
ioctl(5, KDGKBENT, 0x7ffffc88)          = 0
ioctl(5, KDGKBENT, 0x7ffffc84)          = 0
ioctl(5, KDGKBENT, 0x7ffffc80)          = 0
ioctl(5, KDGKBENT, 0x7ffffc7c)          = 0
open("/directfb-1.0.0-rc1 /cursor.dat", O_RDONLY) = -1 ENOENT (No such file or directory)
socketpair(PF_FILE, SOCK_STREAM, 0, [9, 10]) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
write(7, "`p\36+\0\0\0\0\0\0\0\0\364\321\32+\260M\4\0\0\0\0\200\0"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
<... rt_sigsuspend resumed> )           = 32
sigreturn()                             = ? (mask now [RTMIN])
write(2, "(*) Direct/Thread: Running \'Even"..., 65) = 65
fstat64(9,  <unfinished ...>
+++ killed by SIGKILL +++


uname -a in my system reports:
Linux ts7000 2.4.26-ts11 #35 Thu Jul 6 15:44:29 MST 2006 armv4l GNU/Linux

Sugestions?
Alvaro


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to