Re: Adding debug symbols causes segmentation faults with GCC-4.1 and MIPS...

2005-09-13 Thread Nicholas Nethercote
On Tue, 13 Sep 2005, Steven J. Hill wrote: You might want to first make sure that your program has no memory access errors. You could try building it for x86 and debugging with valgrind, to see if that catches anything. A good idea. I built it for x86. Unfortunately, from the output it appear

Re: Adding debug symbols causes segmentation faults with GCC-4.1 and MIPS...

2005-09-13 Thread Steven J. Hill
The interesting thing to note is that if I edit this and only do one clone call, things work. As soon as I attempt to do a second clone, things fall apart when debugging symbols with '-O0 -g' are compiled. Again, the source link is below. I am going to have to make a note of this bug and come back

Re: Adding debug symbols causes segmentation faults with GCC-4.1 and MIPS...

2005-09-13 Thread Steven J. Hill
Joe Buck wrote: You might want to first make sure that your program has no memory access errors. You could try building it for x86 and debugging with valgrind, to see if that catches anything. A good idea. I built it for x86. Unfortunately, from the output it appears that 'clone' is not suppo

Re: Adding debug symbols causes segmentation faults with GCC-4.1 and MIPS...

2005-09-12 Thread Joe Buck
On Mon, Sep 12, 2005 at 09:17:57PM -0500, Steven J. Hill wrote: > I attempted to search through Bugzilla, but I did not find anything that > matched my query. When using the options '-O0' and '-g' together with > GCC-4.1.0, > I get an executable that will segfault. If I use all the other > optimi

Re: Adding debug symbols causes segmentation faults with GCC-4.1 and MIPS...

2005-09-12 Thread Eric Christopher
I assume you mean using the gdb simulator, or what? Sorry for my ignorance. Yup. Otherwise, what's the code look like where they segfault? Let me quantify that and I will post a tarball tomorrow. Thanks. OK. I don't have any mips hardware at the moment, but I should be able to he

Re: Adding debug symbols causes segmentation faults with GCC-4.1 and MIPS...

2005-09-12 Thread Steven J. Hill
Eric Christopher wrote: I've not seen it, but do you see it with, say, those options and the simulator testsuite? (I don't have one built at the moment or I'd check myself.) I assume you mean using the gdb simulator, or what? Sorry for my ignorance. Otherwise, what's the code look like

Re: Adding debug symbols causes segmentation faults with GCC-4.1 and MIPS...

2005-09-12 Thread Eric Christopher
On Sep 12, 2005, at 7:17 PM, Steven J. Hill wrote: Greetings. I attempted to search through Bugzilla, but I did not find anything that matched my query. When using the options '-O0' and '-g' together with GCC-4.1.0, I get an executable that will segfault. If I use all the other optimizat

Adding debug symbols causes segmentation faults with GCC-4.1 and MIPS...

2005-09-12 Thread Steven J. Hill
Greetings. I attempted to search through Bugzilla, but I did not find anything that matched my query. When using the options '-O0' and '-g' together with GCC-4.1.0, I get an executable that will segfault. If I use all the other optimizations of -O1, -O2 or -Os I do not have this problem. I am usi