Re: [gtk-vnc-devel] Crash



On Sat, Mar 15, 2008 at 12:55:56PM -0300, Jonh Wendell wrote:
> Hi, folks.
> 
> There is a bug report against Vinagre about a weird crash.
> Could you take a look at it?
> http://bugzilla.gnome.org/show_bug.cgi?id=522090
> 
> Any hint is welcome :)

The last debug message printed before it shuts down the widget is
from this code:

        GVNC_DEBUG("Resolving host %s %s\n", host, port);
        memset (&hints, '\0', sizeof (hints));
        hints.ai_flags = AI_ADDRCONFIG;
        hints.ai_socktype = SOCK_STREAM;
        hints.ai_protocol = IPPROTO_TCP;

        if ((ret = getaddrinfo(host, port, &hints, &ai)) != 0)
                return FALSE;

So I'd say that the host "macros.local" is not resolving, and then during
the cleanup code to shut down the widget memory is getting corrupted.

We should put a GVNC_DEBUG() statement in the error path for getaddrinfo()
really, so we can see the exact error condition there.

Dan.
-- 
|: Red Hat, Engineering, Boston   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]