Bug 7377 - rp3-config crashes
rp3-config crashes
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: rp3 (Show other bugs)
6.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jonathan Blandford
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-11-27 15:05 EST by Paolo Nason
Modified: 2013-04-02 00:13 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-12-01 10:11:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Paolo Nason 1999-11-27 15:05:54 EST
Hello,
in rp3-1.0.1 I had a segmentation fault problem when using rp3-config.
In account.cc, the function load_accounts, the line marked 3
should go in 1; otherwise, if the continue statement 2 is reached,
tmp does not get updated, and the same interfaced is released twice,
causing segmentation faults when freeing the buffers twice.
The bug has gone away with the modification I propose.

A different problem arises in inteface.c, at the line
glob("/etc/sysconfig/network-scripts/ifcfg-*", 0, NULL, &globbuf);
a file ifcfg- was present in my configuration, causing problems.
Cheers,
Paolo Nason


GSList*
load_accounts     (void)
{
....
  tmp = ifs;
  while (tmp != NULL)
    {
      interface* iface = (interface*)tmp->data;
1      /* should be here */
      tmp = g_list_next(tmp);
      if (strncmp(iface->logicalName, "ppp", strlen("ppp")) == 0)
        {
          Account* a;
          char* tmp;

          tmp = svGetValue (iface->ifcfg, "WVDIALSECT");
          if (tmp == NULL)
            {
              interface_free (iface);
2              continue;
            }
.................
        }
      else
        {
          interface_free(iface);
        }

3      tmp = g_list_next(tmp);
    }
  g_list_free(ifs);
  return accounts;
}
Comment 1 Michael K. Johnson 1999-11-30 10:58:59 EST
Please try the test release
ftp://people.redhat.com/rp3/rp3-1.0.2-1.i386.rpm
and report whether it fixes this problem for you.
Comment 2 Michael K. Johnson 1999-12-01 10:01:59 EST
Paolo reports this not fixed in 1.0.2.
Comment 3 Jonathan Blandford 1999-12-01 10:11:59 EST
Thanks for the patch.  This is fixed in the source and will be in the next
release.
-Jonathan

Note You need to log in before you can comment on or make changes to this bug.