[glade--] Error from calling malloc
关阳 <[email protected]> Tue, 27 Jan 2009 02:52:39 -0500
| Newsgroups | gmane.comp.gnome.glademm |
|---|---|
| Message-ID | <[email protected]> |
--===============0700067650== Content-Type: multipart/alternative; boundary=0016e6513afea8ba2404617223e3 --0016e6513afea8ba2404617223e3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Dear all: I encountered some problem while calling malloc. Here is the back trace from gdb: (gdb) bt #0 0xb7eb086b in ?? () from /lib/libc.so.6 #1 0xb7fb1000 in ?? () #2 0x00000010 in ?? () #3 0xb7f704c0 in ?? () from /lib/libc.so.6 #4 0xb7f704c0 in ?? () from /lib/libc.so.6 #5 0xbfad3e84 in ?? () #6 0xb7eaa7a5 in ?? () from /lib/libc.so.6 #7 0xb7eb27fe in malloc () from /lib/libc.so.6 #8 0x0804a237 in GetAvailableInTime (badTimeList=0x80db660) at random_pair.c:1171 #9 0x08049e50 in GetGlobalAvailableTxTime (thisPair=0x804d5f0) at random_pair.c:994 #10 0x080495b3 in GetStartTime (currentPair=0x804d5f0) at random_pair.c:657 #11 0x080494b3 in Schedule (sequence=0x804d170, PRINT=0) at random_pair.c:615 #12 0x0804886c in main () at random_pair.c:181 The first thing is: what I can do to step into functions in /lib/libc.so.6 so I can locate the problem more precisely. Second: in what circumstances will malloc get corrupted? -- ------------------------------------------------------------------- Yang Guan Shanghai Jiao Tong University --0016e6513afea8ba2404617223e3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>Dear all:</div><div><br></div><div>I encountered some problem while ca= lling malloc. Here is the back trace from gdb:</div><div><br></div><div>(gd= b) bt</div><div>#0 0xb7eb086b in ?? () from /lib/libc.so.6</div><div>= #1 0xb7fb1000 in ?? ()</div> <div>#2 0x00000010 in ?? ()</div><div>#3 0xb7f704c0 in ?? () fr= om /lib/libc.so.6</div><div>#4 0xb7f704c0 in ?? () from /lib/libc.so.= 6</div><div>#5 0xbfad3e84 in ?? ()</div><div>#6 0xb7eaa7a5 in ?= ? () from /lib/libc.so.6</div> <div>#7 0xb7eb27fe in malloc () from /lib/libc.so.6</div><div>#8 &nbs= p;0x0804a237 in GetAvailableInTime (badTimeList=3D0x80db660) at random_pair= .c:1171</div><div>#9 0x08049e50 in GetGlobalAvailableTxTime (thisPair= =3D0x804d5f0) at random_pair.c:994</div> <div>#10 0x080495b3 in GetStartTime (currentPair=3D0x804d5f0) at random_pai= r.c:657</div><div>#11 0x080494b3 in Schedule (sequence=3D0x804d170, PRINT= =3D0) at random_pair.c:615</div><div>#12 0x0804886c in main () at random_pa= ir.c:181</div> <div><br></div><div>The first thing is: what I can do to step into function= s in /lib/libc.so.6 so I can locate the problem more precisely.</div><div>S= econd: in what circumstances will malloc get corrupted? </div><br>-- <= br> -------------------------------------------------------------------<br>Yang= Guan<br>Shanghai Jiao Tong University<br> --0016e6513afea8ba2404617223e3-- --===============0700067650== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ glademm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/glademm-list --===============0700067650==--