Re: patch for fix loader SIGSEGV in the 'Manual TCP/IP Configuration'

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

 



I guess the rawhide is Fedora rawhide version.
Where can I get the rawhide version.
I can help do some test work.
Thank you very much.

2007/5/2, David Cantrell < dcantrell@xxxxxxxxxx>:
Thanks for the patch.  Will test it out and apply to rawhide.

On Wed, 2007-05-02 at 10:29 +0800, Dawei Pang wrote:
> Hi,
> I found 'loader received SIGSEGV' when I configure network in the
> 'Manual TCP/IP Configuration'.
> The problem happened on the 64bit arch first and maybe lead some wrong
> check for netmask in the other arch.
> After I traced the code, I found that the SIGSEGV happen in the
> cidrCallback function.
> The point address of data->cidr4Entry,data->cidr6Entry is wrong.
> I found that the code of net.c have some point error, the patch as
> followed may fix the problem.
> Please check,thank you very much.
> ------------------------------------------------------------------------------------------------
> diff -Nura 0501/loader2/net.c 0501.new/loader2/net.c
> --- 0501/loader2/net.c 2007-04-28 03:53:15.000000000 +0800
> +++ 0501.new/loader2/net.c 2007-05-02 00:11:38.000000000 +0800
> @@ -933,8 +933,8 @@
> newtGridSetField(egrid, 1, pos, NEWT_GRID_SUBGRID, qgrid,
> 0, 0, 0, 0, NEWT_ANCHOR_LEFT, 0);
>
> - newtComponentAddCallback(ipcomps->ipv4Entry, ipCallback, &ipcomps);
> - newtComponentAddCallback(ipcomps->cidr4Entry, cidrCallback, &ipcomps);
> + newtComponentAddCallback(ipcomps->ipv4Entry, ipCallback, ipcomps);
> + newtComponentAddCallback(ipcomps->cidr4Entry, cidrCallback, ipcomps);
>
> /* populate fields if we have data already */
> tip = NULL;
> @@ -985,8 +985,8 @@
> newtGridSetField(egrid, 1, pos, NEWT_GRID_SUBGRID, rgrid,
> 0, 0, 0, 0, NEWT_ANCHOR_LEFT, 0);
>
> - newtComponentAddCallback(ipcomps->ipv6Entry, ipCallback, &ipcomps);
> - newtComponentAddCallback(ipcomps->cidr6Entry, cidrCallback, &ipcomps);
> + newtComponentAddCallback(ipcomps->ipv6Entry, ipCallback, ipcomps);
> + newtComponentAddCallback(ipcomps->cidr6Entry, cidrCallback, ipcomps);
>
> /* populate fields if we have data already */
> tip = NULL;
> @@ -1053,8 +1053,8 @@
> newtEntrySet(ipcomps->nsEntry, ret, 1);
> }
>
> - newtComponentAddCallback(ipcomps->gwEntry, ipCallback, &ipcomps);
> - newtComponentAddCallback(ipcomps->nsEntry, ipCallback, &ipcomps);
> + newtComponentAddCallback(ipcomps->gwEntry, ipCallback, ipcomps);
> + newtComponentAddCallback(ipcomps->nsEntry, ipCallback, ipcomps);
>
> /* button bar at the bottom of the window */
> buttons = newtButtonBar(_("OK"), &okay, _("Back"), &back, NULL);
>
>
>
>
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Westford, MA

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list




--
--Pang Dawei

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux