This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/1627: gdb crashes inside malloc when running something


The following reply was made to PR gdb/1627; it has been noted by GNATS.

From: Olivier Crete <tester@tester.ca>
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: gdb/1627: gdb crashes inside malloc when running something
Date: Mon, 26 Apr 2004 21:05:28 +0200

 --=-AUntHv8a1T59ErDTE0pk
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 The following commit causes gdb to segfault... But I dont really know
 what the copied information is... Hope that helps
 
 Index: gdb/symfile.c
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvs/src/src/gdb/symfile.c,v
 retrieving revision 1.103
 retrieving revision 1.104
 diff -b -u -1 -r1.103 -r1.104
 --- gdb/symfile.c       3 Sep 2003 21:01:44 -0000       1.103
 +++ gdb/symfile.c       11 Sep 2003 19:20:07 -0000      1.104
 @@ -856,3 +856,8 @@
    if (addrs)
 -    *orig_addrs =3D *addrs;
 +    {
 +      int i;
 +      orig_addrs->num_sections =3D addrs->num_sections;
 +      for (i =3D 0; i < addrs->num_sections; i++)
 +       orig_addrs->other[i] =3D addrs->other[i];
 +    }
 
 
 --=-AUntHv8a1T59ErDTE0pk
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (GNU/Linux)
 
 iD8DBQBAjV12HTiOWk7ZorsRAvhqAJ9DSNViB+6CZaySgtfXBV3Ex/JoxQCaAkU0
 Awpd73jrInY2gLyrR2rwXBU=
 =vRMy
 -----END PGP SIGNATURE-----
 
 --=-AUntHv8a1T59ErDTE0pk--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]