- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Illegal instruction, bus error
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
09-10-2009 06:54 AM
09-10-2009 06:54 AM
Illegal instruction, bus error
I'm not familiar with the intricacies of the HP-UX operating system, so my main question is:
>>> What are the possible differences between our machines that could cause this different behavior? <<<
I'm not sure what the right keywords or concepts are, here? Kernel settings? Drivers? Operating system version? Processor? What's relevant
here???
[Details]
The trickiest part of this that this is on a running system so we're wiping out the hard drive while the OS is running. The wiping is done with commercial off-the-shelf software, and it supports this kind of in-place wiping out of the box. And it seems to work fine. But on the other company's machine, after the wiping is complete and the wipe program exits, returning control to my client, the client crashes with the error: "Illegal instruction. Bus error".
They have their system a lot more locked down and stripped down than my dev machine, i.e. they've removed as many packages as humanly possible to get the size down and make it more secure. I don't know exactly what they've done but I can ask if you can tell me what to ask about.
[Client description]
Here's exactly what the client is doing at the point that it crashes, if it provides any clues:
1. The wipe software is run with popen() and finishes with pclose(). That appears to work.
2. The client sends a “wipe complete” message via an SSL socket:
2a. In the main thread, it uses pthread_mutex_lock() to lock a mutex and adds a message to the outgoing message queue. Then it signals the message writer thread with pthread_cond_signal() and then calls pthread_mutex_unlock().
2b. In the writer thread, once signalled it exits from a pthread_cond_wait() call and calls pthread_mutex_unlock(), then sends the message sitting in the queue to the DM via OpenSSL’s SSL_write() function.
3. Repeat steps 2a and 2b for a “phase change” message. If this 2nd message goes through then the server will show the downgrade as successful.
4. In the main thread, it does sleep(5) followed by reboot(RB_HALT | RB_NOSYNC). These two things happen in parallel with step 3.
- Tags:
- SIGILL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2009 07:02 AM
09-10-2009 07:02 AM
Re: Illegal instruction, bus error
To get to the root of the problem you will need to do a stack trace using the debugger. For HP-UX you use the Wildebeest Debugger (WDB):
http://www.hp.com/go/wdb
This may already be available in your '/opt/langtools/bin'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2009 05:05 PM
09-10-2009 05:05 PM
Re: Illegal instruction, bus error
My question is: why do you (or the customer) care about a program crash? The OS has been destroyed on the disk so the job is done. If you really want a clean shutdown then you'll need to write a memory resident piece of code (really difficult since there is no OS) and boot this code off a CD or tape. I know of no practical way to make this work cleanly, especially for something that appears to be using networking (SSL).
If the customer wants 'official' confirmation that the wipe is complete, the display of the message would never be adequate for me. I would have to try to boot off all the installed disks before I was sure the disks were at least partially wiped. The only traceable method would be to move the disks to another server, wipe them and then use dd to read selected tracks. It all depends on what the security requirements might be.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2009 11:52 PM
09-10-2009 11:52 PM
Re: Illegal instruction, bus error
It would be better to use ignite scripting capabilities or get instpiration on how ignite boot from a ramdisk.
Then you can safely wipe out the system disk.
Else you can also create a safe environnement on ramdisk:
create a ramdisk, copy all your needed shared libs and executables and files to that ramdisk
chroot to that ramdisk and then wipeout and send your message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 03:41 AM
09-11-2009 03:41 AM
Re: Illegal instruction, bus error
Right.
>The OS has been destroyed on the disk so the job is done.
But possibly not the user data or all of the files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2009 07:17 AM
09-11-2009 07:17 AM
Re: Illegal instruction, bus error
I care about the client crashing because it needs to report status back to the server saying that the wipe is finished. It's crashing right before it's able to do that.
Anyways, I guess I'll know more once they get some info from the debugger. And if that doesn't help I'll look into the ramdisk option. That's a good idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2009 01:47 AM
09-12-2009 01:47 AM
Re: Illegal instruction, bus error
How, wasn't the system wiped before it crashed?
Any corefile left?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2009 10:10 AM
09-13-2009 10:10 AM
Re: Illegal instruction, bus error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2009 06:43 PM
09-13-2009 06:43 PM
Re: Illegal instruction, bus error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2009 07:12 PM
09-13-2009 07:12 PM
Re: Illegal instruction, bus error
The debugger typically delays reading in info so that it may read it after the crash. Anything related to the instructions and unwinding would be read as needed.