[Gambas-devel] Signal 11 in DNS client [FIXED]
Ron
ron at ...572...
Mon Oct 24 12:49:51 CEST 2011
Benoit,
Found the problem and the fix:
~/install/gambas/trunk/gb.net/src$ diff CDnsClient.c.org CDnsClient.c
64c64,65
< if (read_dns_pipe( data, length) != length)
---
>
> if (read(dns_r_pipe, data, length) != length)
it was calling itself over and over again...
I guess I'm the only one using the gambas3 gb.net dns code...?
This bug was there since 7th of September.
http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/trunk/gb.net/src/CDnsClient.c?r1=3870&r2=4105&pathrev=4105
<http://gambas.svn.sourceforge.net/viewvc/gambas/gambas/trunk/gb.net/src/CDnsClient.c?r1=3870&r2=4105&pathrev=4105>
Regards,
Ron_2nd.
> Something wrong in gb.net <http://gb.net> dns client of Gambas3
>
>
> Program received signal SIGSEGV, Segmentation fault.
> read_dns_pipe (data=0x7fffffffdee0, length=8) at CDnsClient.c:64
> 64if (read_dns_pipe( data, length) != length)
> (gdb) bt
> #0 read_dns_pipe (data=0x7fffffffdee0, length=8) at CDnsClient.c:64
> #1 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #2 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #3 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #4 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #5 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #6 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #7 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #8 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #9 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #10 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
> at CDnsClient.c:64
> #11 0x00007ffff5ecc7ce in read_dns_pipe (data=<value optimized out>,
> length=8)
>
> This goes on many entries...
>
> Another one with gb.net <http://gb.net> compiled without opts...
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff5ec9b48 in read_dns_pipe (data=Cannot access memory at
> address 0x7fffff7feff8
> ) at CDnsClient.c:63
> 63{
> (gdb) bt
> #0 0x00007ffff5ec9b48 in read_dns_pipe (data=Cannot access memory at
> address 0x7fffff7feff8
> ) at CDnsClient.c:63
> #1 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
> #2 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
> #3 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
> #4 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
> #5 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
> #6 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
> #7 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
> #8 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
> #9 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
> #10 0x00007ffff5ec9b63 in read_dns_pipe (data=0x7fffffffded8,
> length=8) at CDnsClient.c:64
>
>
> [System]
>
> OperatingSystem=Linux
>
> Kernel=2.6.38-11-generic
>
> Architecture=x86_64
>
> Memory=3787836 kB
>
> DistributionVendor=Ubuntu
>
> DistributionRelease="Ubuntu 11.04"
>
> Desktop=Gnome
>
> [Gambas 2]
>
> Version=2.23.1
>
> Path=/usr/local/bin/gbx2
>
> [Gambas 3]
>
> Version=2.99.5
>
> Path=/usr/local/bin/gbx3
>
> [Libraries]
>
> Qt4=libQtCore.so.4.7.2
>
> GTK+=libgtk-x11-2.0.so.0.2400.4
>
>
> ~/install/gambas/trunk$ svn info
>
> Path: .
>
> URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk
>
> Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas
>
> Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5
>
> Revision: 4207
>
> Node Kind: directory
>
> Schedule: normal
>
> Last Changed Author: gambas
>
> Last Changed Rev: 4207
>
> Last Changed Date: 2011-10-22 01:54:17 +0200 (Sat, 22 Oct 2011)
>
>
>
> Regards,
> Ron_2nd.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20111024/5f6ecec0/attachment.html>
More information about the Devel
mailing list