Hi all!

I am about testing the libgpf's image_viewer demo in my working tree.
That demo should transfer a ppm picture to a ggi visual and then it waits
for any key being 
pressed (via ggiGetc()).

But the crash happens _before_ I press any key.

I can reproce that bug just by restarting the demo again and again.
Has anyone any idea, what goes wrong?

Here are the last lines of the GGI_DEBUG=255 output plus the backtrace of
gdb:
---------------------------------------------------------
LibGGI: GGI_X_flush(0x804b090, 1) called
LibGGI: _ggi_x_do_blit(0x8051290, 0x0, 209x100) called
LibGII: giiEventPoll(0x8051440, 0xa0, (nil)) called
LibGII: _giiPollAll(0x8051440, 0xa0, (nil)) called
LibGII: GII_xwin_eventpoll(0x8051440) called
LibGII: giiEventPoll: starting non-polled loop
LibGII: _giiPollAll(0x8051440, 0xa0, 0xbffff4cc) called
LibGII: GII_xwin_eventpoll(0x8051440) called
LibGII: _giiPollAll(0x8051440, 0xa0, 0xbffff4cc) called
LibGII: GII_xwin_eventpoll(0x8051440) called
LibGII: GII_xwin_eventpoll: MouseMove 155,53
LibGII: _giiEvQueueAdd(0x8051440, 0xbffff1cc) called

Program received signal SIGSEGV, Segmentation fault.
0x400e73d7 in chunk_alloc () from /lib/libc.so.6
(gdb) bt
#0  0x400e73d7 in chunk_alloc () from /lib/libc.so.6
#1  0x400e6f64 in malloc () from /lib/libc.so.6
#2  0x400618a2 in _giiEvQueueSetup () at gii.c:98
#3  0x40061f25 in _giiEvQueueAdd (inp=0x8051440, ev=0xbffff1cc) at gii.c:393
#4  0x4019a951 in GII_xwin_eventpoll (inp=0x8051440, arg=0xbffff4cc) at
input.c:398
#5  0x4006256e in _giiPollall (inp=0x8051440, mask=160, arg=0xbffff4cc) at
gii.c:583
#6  0x40063ba8 in giiEventPoll (inp=0x8051440, mask=160, timeout=0x0) at
unix.c:237
#7  0x40063053 in giiEventRead (inp=0x8051440, ev=0xbffff5a4, mask=160) at
gii.c:1006
#8  0x40057a64 in ggiGetc (vis=0x804b090) at events.c:96
#9  0x8048bb0 in do_demo (vis=0x804b090, filename=0x8048d98
"file:./ggi_logo.ppm") at 
image_viewer.c:60
#10 0x8048c90 in main (argc=1, argv=0xbffff78c) at image_viewer.c:117
#11 0x400907ee in __libc_start_main () from /lib/libc.so.6
(gdb) up
#1  0x400e6f64 in malloc () from /lib/libc.so.6
(gdb) up
#2  0x400618a2 in _giiEvQueueSetup () at gii.c:98
98              qp = malloc(sizeof(gii_ev_queue));
(gdb) up
#3  0x40061f25 in _giiEvQueueAdd (inp=0x8051440, ev=0xbffff1cc) at gii.c:393
393                     qp = _giiEvQueueSetup();
(gdb) up
#4  0x4019a951 in GII_xwin_eventpoll (inp=0x8051440, arg=0xbffff4cc) at
input.c:398
398                     if (giiev.any.type) _giiEvQueueAdd(inp, &giiev);
(gdb) up
#5  0x4006256e in _giiPollall (inp=0x8051440, mask=160, arg=0xbffff4cc) at
gii.c:583
583                             retmask |= (curr->GIIeventpoll(curr, arg) &
mask);
(gdb) up
#6  0x40063ba8 in giiEventPoll (inp=0x8051440, mask=160, timeout=0x0) at
unix.c:237
237                             tmpmask = _giiPollall(inp, mask, &allfds);
(gdb) up
#7  0x40063053 in giiEventRead (inp=0x8051440, ev=0xbffff5a4, mask=160) at
gii.c:1006
1006                    giiEventPoll(inp, mask, NULL);
(gdb) up
#8  0x40057a64 in ggiGetc (vis=0x804b090) at events.c:96
96              giiEventRead(vis->input, &ev, emKeyPress | emKeyRepeat);
(gdb) up
#9  0x8048bb0 in do_demo (vis=0x804b090, filename=0x8048d98
"file:./ggi_logo.ppm") at 
image_viewer.c:60
60              (void) ggiGetc(vis);


-- 
CU,

Christoph Egger
E-Mail: [EMAIL PROTECTED]

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Attachment: "
Description: Binary data

Reply via email to