- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- 32bit C binaries core dumping on HP-UX11i
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
Forums
Discussions
Discussions
Discussions
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
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
06-10-2008 03:54 AM
06-10-2008 03:54 AM
32bit C binaries core dumping on HP-UX11i
I have switched to native threads (becaue HP-UX11 doesn't need green threads) and successfully recompiled the binaries (and JNI inrerface) using DAportable and PA_RISC to keep it all 32 bit, but my program crashes as soon as I try to start it.
"getconf HW_CPU_SUPP_BITS" returns 64, does this mean I can't run a 32 bit binary, or is it something else?
- Tags:
- JNI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 05:59 AM
06-10-2008 05:59 AM
Re: 32bit C binaries core dumping on HP-UX11i
> getconf HW_CPU_SUPP_BITS" returns 64, does this mean I can't run a 32 bit binary, or is it something else?
This simply means that your hardware runs a 64-bit kernel. That doesn't mean that this isn't capable of running 32-bit code.
The reason for the "crash" is important in diagnosis. Do you have a core file, and what was the fault that created it?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 07:44 AM
06-10-2008 07:44 AM
Re: 32bit C binaries core dumping on HP-UX11i
OOPS! That was the thing I forgot to mention, I have got a core file, but it's been a few years since I did any development and I can't remember the command to run the debugger.
I did suspect that there shouldn't be a problem running 32bit binaries, but it crashed so quickly, I was hoping for an easy solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 07:54 AM
06-10-2008 07:54 AM
Re: 32bit C binaries core dumping on HP-UX11i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 08:42 AM
06-10-2008 08:42 AM
Re: 32bit C binaries core dumping on HP-UX11i
you can use gdb for analyzing core file.
Kenan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 10:58 AM
06-10-2008 10:58 AM
Re: 32bit C binaries core dumping on HP-UX11i
(gdb) bt
Of course compiling it with -g will enable you to print out variables.
- Tags:
- gdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 11:57 PM
06-10-2008 11:57 PM
Re: 32bit C binaries core dumping on HP-UX11i
In the mean time I had worked out that I used to use xdb, but as this is a new server that was supposed to be for test, rather than development, it hasn't been installed.
gdb shows me that my programs are crashing in /usr/lib/libc.2 when trying to createJVM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2008 12:25 AM
06-11-2008 12:25 AM
Re: 32bit C binaries core dumping on HP-UX11i
Ex:
# file ./a.out
./a.out: ELF-32 executable object file - IA64
So, its a 32-bit ELF binary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2008 12:41 AM
06-11-2008 12:41 AM
Re: 32bit C binaries core dumping on HP-UX11i
xdb was last supported on 10.20.
>gdb shows me that my programs are crashing in libc.2 when trying to createJVM
What's the stack trace look like?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2008 01:15 AM
06-11-2008 01:15 AM
Re: 32bit C binaries core dumping on HP-UX11i
My JNI interface was compiled in 64bit (file libjniqueue.sl). I've added +DAportable to the cc command and the core dumping has stopped.
The bad new: my programs are still not starting, but now they just shut down nicely without saying why.
I think it's with me now to add some debug lines (or run it inside gdb). I'll post an update later