[ cegcc-Bugs (use Trac instead)-2868656 ] virtual keyword causes exception?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ cegcc-Bugs (use Trac instead)-2868656 ] virtual keyword causes exception?

SourceForge.net
Bugs (use Trac instead) item #2868656, was opened at 2009-09-27 23:34
Message generated for change (Comment added) made by pfalcon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=2868656&group_id=173455

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: CeGCC (arm-wince-cegcc)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Rob Eggleton (rite)
Assigned to: Nobody/Anonymous (nobody)
Summary: virtual keyword causes exception?

Initial Comment:
Adding "virtual" to a simple method causes the following exception to be raised:

"Program: A.exe
Exception: 0xC00000FD
Address: 00000000"


This happens both on the emulator I'm using (Microsoft DeviceEmulator Manager 9.0.21022.8) and on the real device (Intel XScale 400Mhz PXA 255).

The code being compiled is:

#include <iostream>


using std::cout;
using std::endl;


class Simple
{
public:
   Simple();
   virtual ~Simple();
};


Simple::Simple()
{
}

Simple::~Simple()
{
}


int
main()
{
   cout << "Strange?" << endl;
}


I'm compiling the code with

arm-wince-cegcc-g++ -o A.exe A.cpp

If I remove "virtual" from the destructor then the code runs without an exception. This happens for any method not just the destructor.

arm-wince-cegcc-g++ --version gives:

arm-wince-cegcc-g++ (GCC) 4.1.0
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



Any ideas?

----------------------------------------------------------------------

>Comment By: Paul Sokolovsky (pfalcon)
Date: 2011-02-05 07:12

Message:
Thanks for your bug report!

To ease maintenance of the project, we are migrating bug tracking
facilities to Trac. We would appreciate if you re-posted this bug on Trac
via https://sourceforge.net/apps/trac/cegcc/newticket . Please include link
to this bug for reference.


----------------------------------------------------------------------

Comment By: Danny Backx (dannybackx)
Date: 2009-10-01 09:49

Message:
The test below is with your executable on my iPAQ 214 running WM 6.0.

pavilion: {121} rcp A.exe ipaq:/temp
pavilion: {122} rsh ipaq /temp/A.exe
Strange
pavilion: {123}

----------------------------------------------------------------------

Comment By: Rob Eggleton (rite)
Date: 2009-09-30 23:39

Message:
I've updated to 0.59.1 (and downloaded mpfr 2.4.1). Exactly the same thing
is happening. I've attached a tar ball of: the source, the output from
strace when compiling, the resultant .exe file and the build (go) script.
It's weird I have another app with a few thousand lines which all works
fine ... but as soon as I add "virtual" it fails.

----------------------------------------------------------------------

Comment By: Danny Backx (dannybackx)
Date: 2009-09-30 13:04

Message:
I cannot reproduce this, but I'm using the gcc-4.4 based software.
Could you pick up the latest release (0.59.1) and try it ?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=865514&aid=2868656&group_id=173455

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Cegcc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel