logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [ gpsdrive ] Segmentation fault: msg#00038

Subject: Re: [ gpsdrive ] Segmentation fault
On Wednesday 08 June 2005 13:25, Edwin Valencia wrote:
> HI...
>
> El mié, 08-06-2005 a las 11:35, Joerg Ostertag escribió:
> > Now it gets tricky.
> >
> > I don't really have a clue why this happens.
> >
> > If you want you could try setting a breakpoint right before the
> >     gdk_draw_pixbuf (drawable, kontext,
> >                                              friendspixbuf, 0, 0,
> >                                              posxdest - 18, posydest - 12,
> >                                              39, 24, GDK_RGB_DITHER_NONE,
> >                                              0, 0);
> >  in gpsdrive.c:drawfriends()
> >
> > and tell us the content of all variables.
>
> I will try to do it, BUT I am not a developer :-) , and I don't know to
> use GDB very fine, BUT here send the output of the for my is the that
> Joerg Ostertag requests to me "ask to me"
>
> --
> (gdb) print drawable
> 0x81e1da0
> (gdb) print kontext
> 0x81de950
> (gdb) print friendspixbuf
> 0x8162f80
> (gdb) print posxdest
> No symbol "posxdest" in current context
> (gdb) print posydest
> No symbol "posydest" in current context
> (gdb) print GDK_RGB_DITHER_NONE
> GDK_RGB_DITHER_NONE
> --

Sorry; This output didn't bring any light into the problem.



Please try the following:
 - download gpsdrive-2.10pre2 from http://www.gpsdrive.cc/

 - unpack it
        tar -xvzf gpsdrive-2.10pre2.tar.gz

 - configure it with debug option switched on
        cd gpsdrive-2.10pre2
        ./configure --with-debug
        --> Send this output

 - compile it
        make

 - start it with capturing the complete output
   cd src
        gpsdrive -D 2>&1 | tee gpsdrive_output.txt
        ---> Send this output

 - start the debugger
        cd src
        gdb --args gpsdrive -D

 - set a breakpoint
        b 4717

 - start the programm
        r

 - print the variables
   on my box it looks like this:

Breakpoint 1, drawfriends () at gpsdrive.c:4717
4717                  gdk_draw_pixbuf (drawable, kontext, friendspixbuf, 0, 0,
(gdb) l
4712            {
4713
4714              if ((posydest >= 0) && (posydest < SCREEN_Y))
4715                {
4716
4717                  gdk_draw_pixbuf (drawable, kontext, friendspixbuf, 0, 0,
4718                                   posxdest - 18,
4719                                   posydest - 12, 39, 24,
4720                                   GDK_RGB_DITHER_NONE, 0, 0);
4721                  gdk_gc_set_line_attributes (kontext, 4, 0, 0, 0);
(gdb) p drawable
$1 = (GdkDrawable *) 0x8256220
(gdb) p kontext
$2 = (GdkGC *) 0x8256268
(gdb) p friendspixbuf
$3 = (GdkPixbuf *) 0x818efd0
(gdb) p posxdest
$4 = 60.271915629473469
(gdb) p posydest
$5 = 180.92703781028297
(gdb) p GDK_RGB_DITHER_NONE
$6 = GDK_RGB_DITHER_NONE
(gdb) 

So this is another try. I don't have any more ideas.

-

Joerg
--
This message was part of the gpsdrive mailinglist
unsubscribing can be done by sending a mail containing a body of:
-quote--
unsubscribe gpsdrive
-unquote--
to majordomo-ahljRfkWE0EwtzFM8z8+AfP6llvjuJOh@xxxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>