HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- CXX app crashes when compile and link with debug.
Operating System - HP-UX
1832993
Members
3956
Online
110048
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 10:24 AM
01-18-2007 10:24 AM
CXX app crashes when compile and link with debug.
Hi Mr. Wizard,
I have a CXX program with multiple inheritance as following:
class A {
public: virtual void a()=0;
};
class B : virtual public A {
public: virtual void b()=0;
};
class C : virtual public A {
public: virtual void c()=0;
};
class D : public B, public C {
public:
void a() {}
void b() {}
void c() {}
};
void main() {
D d;
}
----------------------------
1) Compile and link without debug the program works (i.e. cxx test, cxxlink test)
2) Compile and link with debug, the program works (i.e. cxx/deb test, cxxlink/deb test).
3) Compile and link with debug and with NOOPT (i.e. cxx/deb/noopt test, cxxlink/deb test). The program crashes with access violation at C::C+1088 when main tries to instantiate d object.
System is OpenVMS IA64 V8.2-1
Compiler HP C++ V7.2-018.
Attached are the CXX program.
Thankyou very much.
I have a CXX program with multiple inheritance as following:
class A {
public: virtual void a()=0;
};
class B : virtual public A {
public: virtual void b()=0;
};
class C : virtual public A {
public: virtual void c()=0;
};
class D : public B, public C {
public:
void a() {}
void b() {}
void c() {}
};
void main() {
D d;
}
----------------------------
1) Compile and link without debug the program works (i.e. cxx test, cxxlink test)
2) Compile and link with debug, the program works (i.e. cxx/deb test, cxxlink/deb test).
3) Compile and link with debug and with NOOPT (i.e. cxx/deb/noopt test, cxxlink/deb test). The program crashes with access violation at C::C+1088 when main tries to instantiate d object.
System is OpenVMS IA64 V8.2-1
Compiler HP C++ V7.2-018.
Attached are the CXX program.
Thankyou very much.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 12:26 PM
01-18-2007 12:26 PM
Re: CXX app crashes when compile and link with debug.
Shalom,
Sounds like a bad debugger.
Maybe there is a patch available.
SEP
Sounds like a bad debugger.
Maybe there is a patch available.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 10:27 PM
01-19-2007 10:27 PM
Re: CXX app crashes when compile and link with debug.
I'm not sure why you are posting this here? It works perfectly fine on HP-UX. ;-)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP