The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Memory fault(coredump) fkaba81 Ubuntu 2 03-26-2008 01:56 PM
Memory fault in ql session param_it UNIX for Advanced & Expert Users 0 10-26-2007 04:54 AM
memory fault iwbasts High Level Programming 1 03-21-2006 04:15 AM
Memory fault(coredump) ralo High Level Programming 0 10-14-2005 04:35 AM
Memory Fault robertoveras UNIX for Dummies Questions & Answers 1 04-04-2002 09:09 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-05-2004
dnardi212 dnardi212 is offline
Registered User
  
 

Join Date: Jan 2004
Location: MA
Posts: 5
Memory Fault with Lawson Install

We are a Lawson shop trying to upgrade our Lawson environment from an old version to a new one. When we run the install scripts on one of our systems (RP8400, HP-UX 11.i) we get a Memory Fault error and it core dumps. HP support has taken an output of TUSC and then pointed us to the application vendor, but the vendor hasn't been helpful as of yet.

Is there any way we can decipher what the install program is trying to do and determine what the program is dying on? We have stoppped all processes on the system to eliminate that a lack of memory exists.

The HP-UX version is just about a year old now, and has had some minor patches along the way. This is a production system, so down time and major patching is limited.

Any help will be greatly appreciated!!!
  #2 (permalink)  
Old 03-05-2004
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
Here is a quick program:
Code:
#ifdef __STDC__
#define PROTOTYPICAL
#endif
#ifdef __cplusplus
#define PROTOTYPICAL
#endif

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>


#ifdef PROTOTYPICAL
int main(int argc, char *argv[])
#else
main(argc,argv)
char *argv[];
#endif
{
        char *p;
        brk(&p);
        *--p=1;
        exit(0);
}
It is specific to HP-UX. But copy that code into a file called memoryfault.c. Compile it with:
cc memoryfault.c -o memoryfault
and run it with:
./memoryfault

It will generate a memory fault. This is because it attempted a illegal sequence of operations. Adding memory or swap to your box will not fix my program. My program is broken. That's what a memory fault is.

A "memory fault" might be called a "segmentation fault" on another OS. Or even another shell. But the signal SIGSEGV was sent to process by the kernel. The shell detects this and displays the "memory fault" message.

Basicly the program attempted to write into a place that was not a writable memory segment. Your program might be doing that. Or it might be attempting a read from a location that is not in a readable memory segment.

But clearly, the program has a bug and it almost certainly involves referencing a pointer with an invalid value. And the author of the program is going to need to fix that.
  #3 (permalink)  
Old 03-05-2004
dnardi212 dnardi212 is offline
Registered User
  
 

Join Date: Jan 2004
Location: MA
Posts: 5
Thanks for your help! Your explaination is very helpful understanding what causes the error message.

We kinda' new there was a problem with the code, but we are not getting any help from the vendor as to what the problem is.

The closest we got....
when the program tries to update an existing file that it needs it bombs. But when we remove the file it is looking to update, it creates a new one and updates that one just fine. The code written to handle the pre-existing file appears to be buggy.

Thanks for getting back so quickly
Regards~
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:21 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0