- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Programs that link to Oracle core dump on 11.11
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО07-21-2005 06:47 AM
тАО07-21-2005 06:47 AM
Now we've discovered the same problem occurs when we try to run a program that links to our libraries and a QT library, so it looks like it's not just a problem with Oracle.
To get our code to compile and link successfully, we had to use the -AA flag. We are wondering if that is causing a problem when we try to link to third-party libraries, but we can't seem to confirm that. I don't see any of the -AP libraries listed when I do "ldd" on my executables.
I'd appreciate any suggestions on how we can fix this problem.
Solved! Go to Solution.
- Tags:
- Oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 07:43 AM
тАО07-21-2005 07:43 AM
Re: Programs that link to Oracle core dump on 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 08:15 AM
тАО07-21-2005 08:15 AM
Re: Programs that link to Oracle core dump on 11.11
I have been compiling with -g.
When I use RunDDD and run the program until it dies, I get the following error message:
Program received signal SIGABRT, Aborted
si_code: 0 - SI_UNKNOWN - signal of unknown origin.
0x77f9dee0 in kill+0x10 () from /usr/lib/libc.2
Here is what backtrace shows:
#11 0x77e74b58 in _main+0x100 () from /usr/lib/libCsup_v2.2
#10 0x77e74828 in __mainHelper+0x40 () from /usr/lib/libCsup_v2.2
#9 0x165298 in std::__sinit_Process_C+0x3c ()
#8 0x77dd6194 in std::ios_base::Init::Init+0x1df0 () from /usr/lib/libstd_v2.2
#7 0x77dd66cc in std::ios_base::setf+0x78 () from /usr/lib/libstd_v2.2
#6 0x77e71254 in __throw__FPvT1+0x14c () from /usr/lib/libCsup_v2.2
#5 0x77e70cf4 in ThrowException+0x70 () from /usr/lib/libCsup_v2.2
#4 0x77e7083c in std::terminate+0x38 () from /usr/lib/libCsup_v2.2
#3 0x77f78b24 in abort+0x1c () from /usr/lib/libc.2
#2 0x77f78ac8 in abort_C+0x160 () from /usr/lib/libc.2
#1 0x77f3716c in raise+0x24 () from /usr/lib/libc.2
#0 0x77f9dee0 in kill+0x10 () from /usr/lib/libc.2
I'm not sure what this is telling me. Can you provide any more help?
- Tags:
- -mt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 08:25 AM
тАО07-21-2005 08:25 AM
Re: Programs that link to Oracle core dump on 11.11
The man page for aCC makes it rather clear:
/quote/
NOTE: Objects and libraries compiled with -AA are binary incompatible with objects and libraries compiled without -AA.
/unquote/
At least you can get the source for Qt so that if necessary, you can build the libraries to match Oracle's apparent use of -AA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 08:52 AM
тАО07-21-2005 08:52 AM
Re: Programs that link to Oracle core dump on 11.11
We have been compiling all of our libraries with -AA because we got compile errors if we didn't. We've also been linking our executables using -AA.
Do you think the problem is that Oracle's library isn't compiled with -AA?
I checked Oracle's libclntsh.sl with ldd, and I don't see any libraries in it that are listed as being either -AA (_v2.) or -AP (libstream., libstd., librwtool., or libCsup.). I also checked my executable with ldd, and I only see the -AA libraries in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2005 03:49 PM
тАО07-21-2005 03:49 PM
Solution-mt Sets various -D flags to enable multi-threading. Also
sets -lpthread. For details see HP aC++ Online
Programmer's Guide.
Oracle's libclntsh.sl pulls in libpthread and that can result in core dump if -mt option is not used. This applies even if your program is not using any MT related calls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2005 09:02 AM
тАО07-25-2005 09:02 AM
Re: Programs that link to Oracle core dump on 11.11
I do have a couple of questions related to this:
1. The problem went away when I recompiled everything with -mt, but the linking is still being done without -mt. So far I haven't seen a difference in programs linked with or without -mt (as long as they are compiled with -mt). Would you recommend also including the -mt in the link line?
2. Can you offer any explanation for why the -mt would be needed on 11.11 but not 11.23? I'm using aCC 3.63 (with -AA) on 11.11 and aCC 5.55 (without -AA) on 11.23 to compile the same source code.
Thanks again for helping me with this!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2005 01:59 PM
тАО07-25-2005 01:59 PM
Re: Programs that link to Oracle core dump on 11.11
To see what preprocessor flags are defined run aCC with '-mt -v' (-v for verbose). These flags are defined to make your library calls thread-safe. I think that you must use -mt with aCC if you are linking with libpthread (implicitly in your case through oracle library).
2. Really don't know why. aCC 5.55 must be using -AA by default or otherwise your code wouldn't compile. You can check this by looking at the man page for aCC or check for existance of _HP_NAMESPACE_STD macro in aCC -v output. If you see -D_HP_NAMESPACE_STD in aCC -v it means -AA is on.
In any case you can't go wrong with -mt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2005 08:24 AM
тАО07-26-2005 08:24 AM
Re: Programs that link to Oracle core dump on 11.11
According to some documentation from HP, -AA is the default for Itanium/11.23 systems but not for PA-RISC/11.11 systems, so that explains why I need to use -AA on our 11.11 system. I'm still not sure why I need to use -mt on 11.11 but not 11.23, but I suppose I can just go with what works for now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2005 01:28 AM
тАО08-08-2005 01:28 AM