From mint-bounce@lists.fishpool.fi Sat Feb 14 17:12:05 2009 Message-ID: <499740F4.2010203@atari-source.org> Date: Sat, 14 Feb 2009 17:08:52 -0500 From: Mark Duckworth User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= CC: mint Subject: Re: [MiNT] C++ Stuff References: <499665F5.809@atari-source.org> <4996E70E.1030603@atari-source.org> <4996EE34.8090002@freesbee.fr> In-Reply-To: <4996EE34.8090002@freesbee.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-SA-Score: -1.4 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: mduckworth@atari-source.org Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Vincent Rivière wrote: > Mark Duckworth wrote: >> T is a buddy class. The vector is defined in the buddylist class. >> The failure happens when constructing a buddylist. > > In such case, write a small testcase. > I did it for you. I made a copy/paste of your snippets in a single > source file, plus some glue (see attached file). > > For me, it works perfectly. I cross-compiled the source using gcc > 4.3.3 and I ran it on Steem (nearly perfect STe emulator - of course > without FPU !) > > m68k-atari-mint-g++ vect.cpp -o vect.tos > > (go to the emulator) > > vect > Not crashed ! screenname = bcdef > > Try this source on your system to check it is not a compiler issue. > I really think your problem is elsewhere. > Maybe you trashed the stack before calling push_back ? > Hi, It did crash (sort of): root@arawork:/h>g++ -o vect vect.cpp root@arawork:/h>./vect Not crashed ! screenname = It freezes here and if I try to attach to it with gdb I cannot interrupt execution (or maybe I'm doing it wrong). Thanks, Mark