[sage-support] Re: Debugging; how to use sage -gdb?

2009-08-07 Thread Simon King
Dear Robert, On Aug 7, 5:17 pm, Robert Bradshaw wrote: ... > > It realloc error prone? > > Doubtful, or we'd be crashing all over. I thought it was guaranteed   > to give you back the same spot if you realloc to something smaller,   > but that may not be the case, and certainly isn't if it's som

[sage-support] Re: Debugging; how to use sage -gdb?

2009-08-07 Thread Robert Bradshaw
On Aug 7, 2009, at 1:16 AM, Simon King wrote: > > Hi Robert, > > On 7 Aug., 09:06, Robert Bradshaw > wrote: > ... >>> I came to asking about "sage -gdb" since sage's last words at >>> crashing >>> suggest to use "sage -gdb". But then I would expect that it is >>> explained in detail in the doc

[sage-support] Re: Debugging; how to use sage -gdb?

2009-08-07 Thread Simon King
Hi Robert, On 7 Aug., 09:06, Robert Bradshaw wrote: ... > > I came to asking about "sage -gdb" since sage's last words at crashing > > suggest to use "sage -gdb". But then I would expect that it is > > explained in detail in the documentation. However, searching "sage - > > gdb" in the developer

[sage-support] Re: Debugging; how to use sage -gdb?

2009-08-07 Thread Robert Bradshaw
On Aug 6, 2009, at 3:59 PM, Simon King wrote: > > Dear Minh, > > On 7 Aug., 00:46, Minh Nguyen wrote: >> This is unrelated but: the version of GCC that is distributed with >> openSUSE 11.0 is >> >> $ gcc --version >> gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch >> revision 1350

[sage-support] Re: Debugging; how to use sage -gdb?

2009-08-06 Thread Simon King
Dear Minh, On 7 Aug., 00:46, Minh Nguyen wrote: > This is unrelated but: the version of GCC that is distributed with > openSUSE 11.0 is > > $ gcc --version > gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] > Copyright (C) 2008 Free Software Foundation, Inc. > This i

[sage-support] Re: Debugging; how to use sage -gdb?

2009-08-06 Thread Minh Nguyen
Hi Simon, On Fri, Aug 7, 2009 at 8:09 AM, Simon King wrote: > > Hi! > > Currently I am puzzled by a bug, and so far my approaches to tackle it > down failed. I guess I should use debugging tools such as gdb, but I > did not find a tutorial or wiki page concerning "sage -gdb". For > example: When

[sage-support] Re: Debugging; how to use sage -gdb?

2009-08-06 Thread Simon King
What I said about inserting loads(dumps(self)) holds on openSUSE 11.0 Intel Core Duo, but I am afraid it doesn't on sage.math. Anyway. I think sage -gdb should allow me to see what exactly went wrong (freeing non-allocated memory? double free? whatever?), and also show me, in what line the memory