Mail Archives: djgpp/2000/12/27/16:07:23
From: | "Alex Oleynikov" <alex AT compuweigh DOT com>
|
To: | "DJGPP Mail List" <djgpp AT delorie DOT com>
|
Subject: | libc _free exception
|
Date: | Wed, 27 Dec 2000 16:04:01 -0500
|
Message-ID: | <NEBBKABEDKFPFBKEMBFOAELOCAAA.alex@compuweigh.com>
|
MIME-Version: | 1.0
|
X-Priority: | 3 (Normal)
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200
|
Importance: | Normal
|
Reply-To: | djgpp AT delorie DOT com
|
This is a multi-part message in MIME format.
------=_NextPart_000_001C_01C0701E.A1087630
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Hi everybody,
Seems, I have a trouble with function free() in libc. In my app I use
several different libraries (MGUI, pmcom, grx20, ctx2jpg) and sometimes it
GPFs on me (General Protection Fault in RMCB at eip=10cf; … error=00a4)
Investigating the call frame traceback EIPs, I found that it is always
function free(), who causes the exception, called from within on of the
libraries (MGUI). Particularly, this line of code inside it:
…
<_free + 0xaa > mov %ecx, %ebx
…
According to the exception info DJGPP shows, ecx = 00000000 at this moment.
Does anybody know what may be the problem? Maybe the different libraries I
am using are compiled with different versions of libc?
Any help is greatly appreciated.
Alex
------=_NextPart_000_001C_01C0701E.A1087630
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 9">
<meta name=3DOriginator content=3D"Microsoft Word 9">
<link rel=3DFile-List href=3D"cid:filelist DOT xml AT 01C0701E DOT A0EE5E80">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Arial;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
h2
{mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:2;
font-size:14.0pt;
font-family:Arial;
font-style:italic;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
{margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Arial;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
p.Level1, li.Level1, div.Level1
{mso-style-name:"Level 1";
mso-style-parent:"Heading 2";
margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:.1in;
text-align:justify;
text-indent:-.1in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:2;
mso-list:l0 level1 lfo11;
font-size:16.0pt;
mso-bidi-font-size:14.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
p.Level2, li.Level2, div.Level2
{mso-style-name:"Level 2";
mso-style-parent:"Level 1";
margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:.55in;
text-align:justify;
text-indent:-.3in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:2;
mso-list:l0 level2 lfo11;
font-size:14.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
p.Level5, li.Level5, div.Level5
{mso-style-name:"Level 5";
mso-style-parent:"Level 4";
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:1.3in;
margin-bottom:.0001pt;
text-align:justify;
text-indent:-.2in;
mso-pagination:widow-orphan;
mso-list:l0 level5 lfo11;
tab-stops:list 1.35in;
font-size:12.0pt;
font-family:Arial;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
p.Level4, li.Level4, div.Level4
{mso-style-name:"Level 4";
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:1.2in;
margin-bottom:.0001pt;
text-align:justify;
text-indent:-.45in;
mso-pagination:widow-orphan;
mso-list:l0 level4 lfo11;
font-size:12.0pt;
font-family:Arial;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
p.Level3, li.Level3, div.Level3
{mso-style-name:"Level 3";
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.85in;
margin-bottom:.0001pt;
text-align:justify;
text-indent:-.35in;
mso-pagination:widow-orphan;
mso-list:l0 level3 lfo11;
font-size:12.0pt;
font-family:Arial;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";
font-weight:bold;
mso-bidi-font-weight:normal;}
span.EmailStyle20
{mso-style-type:personal-compose;
mso-ansi-font-size:10.0pt;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:black;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:47648955;
mso-list-template-ids:59295290;}
@list l0:level1
{mso-level-number-format:roman-upper;
mso-level-style-link:"Level 1";
mso-level-suffix:space;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.1in;
text-indent:-.1in;}
@list l0:level2
{mso-level-style-link:"Level 2";
mso-level-suffix:space;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.55in;
text-indent:-.3in;}
@list l0:level3
{mso-level-style-link:"Level 3";
mso-level-suffix:space;
mso-level-text:"%2\.%3\.";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.85in;
text-indent:-.35in;}
@list l0:level4
{mso-level-style-link:"Level 4";
mso-level-suffix:space;
mso-level-text:"%2\.%3\.%4\.";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:1.2in;
text-indent:-.45in;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-style-link:"Level 5";
mso-level-text:\F0B7;
mso-level-tab-stop:1.35in;
mso-level-number-position:left;
margin-left:1.3in;
text-indent:-.2in;
font-family:Symbol;
color:windowtext;}
@list l0:level6
{mso-level-text:"%2\.%3\.%4\.%5\.%6\.";
mso-level-tab-stop:1.9in;
mso-level-number-position:left;
margin-left:1.9in;
text-indent:-.65in;}
@list l0:level7
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.";
mso-level-tab-stop:2.75in;
mso-level-number-position:left;
margin-left:2.25in;
text-indent:-.75in;}
@list l0:level8
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.";
mso-level-tab-stop:3.0in;
mso-level-number-position:left;
margin-left:2.6in;
text-indent:-.85in;}
@list l0:level9
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9\.";
mso-level-tab-stop:3.5in;
mso-level-number-position:left;
margin-left:3.0in;
text-indent:-1.0in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
</head>
<body lang=3DEN-US style=3D'tab-interval:.5in'>
<div class=3DSection1>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'>Hi
everybody,<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'>Seems, I
have a trouble with function free() in libc. In my app I use several =
different
libraries (MGUI, pmcom, grx20, ctx2jpg) and sometimes it GPFs on me =
(General
Protection Fault in RMCB at eip=3D10cf; … =
error=3D00a4)<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'>Investigating
the call frame traceback EIPs, I found that it is always function =
free(), who
causes the exception, called from within on of the libraries (MGUI).
Particularly, this line of code inside =
it:<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'>…<o:p></o:p></=
span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'><_free +
0xaa > mov %ecx, %ebx<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'>…<o:p></o:p></=
span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'>According
to the exception info DJGPP shows, ecx =3D <span style=3D"mso-spacerun:
yes"> </span>00000000 at this =
moment.<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'>Does
anybody know what may be the problem? Maybe the different libraries I am =
using are
compiled with different versions of =
libc?<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'>Any help is
greatly appreciated.<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle20><font size=3D2 =
color=3Dblack
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt'>Alex<o:p></o:p></spa=
n></font></span></p>
</div>
</body>
</html>
------=_NextPart_000_001C_01C0701E.A1087630--
- Raw text -