Memory Fault with Lawson Install


 
Thread Tools Search this Thread
Operating Systems HP-UX Memory Fault with Lawson Install
# 1  
Old 03-05-2004
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  
Old 03-05-2004
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  
Old 03-05-2004
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~
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

M4000 Memory Fault

Hi Guys and Gals, Does anyone know how to track down a faulty DIMM on the memory board of an M4000? showhardconf tells me which board it is, but was wondering if there was a way to track it down to a DIMM? Thanks in advance Martin (5 Replies)
Discussion started by: callmebob
5 Replies

2. Homework & Coursework Questions

Memory fault(coredump)

I am writing a program that copies a program and prints the program with a line count. this is the program I wrote: #include <stdio.h> main() { int c; int nl_cnt = 0; while((c = getchar()) != EOF){ if(c = '\n'){ nl_cnt++;... (3 Replies)
Discussion started by: heywoodfloyd
3 Replies

3. Linux

Help with memory fault

We have migrated our application from HP UX to linux. The code is in 4gl and after migration it has started giving Memory fault while running a batch job. The trace shows segmentation fault after a series of recvfrom and sendto(DB read) sigsegv segmentation fault @ 0 0 killed by SIGSEGV The... (2 Replies)
Discussion started by: aimee
2 Replies

4. UNIX for Advanced & Expert Users

Setui(0) memory fault

Hi i have this code that used to wrok fine in unix mp-ras. After the migration to linux suse i recompiled the script and now when it is executed i get a Memory fault (coredump) message. Does anybody knows why' what should I change? tks SCRIPT #include <stdio.h> #include <sys/types.h>... (1 Reply)
Discussion started by: mrodrig
1 Replies

5. UNIX for Dummies Questions & Answers

mysql memory fault

I (think I) installed MYSQL on a Red Hat box. When I try to start mysql I get a memory fault error. Any ideas on how to fix this? Here is some info that might help: My distro info $ cat /proc/version Linux version 2.4.21-40.ELsmp (bhcompile@hs20-bc1-7 .build.redhat.com) (gcc version 3.2.3... (0 Replies)
Discussion started by: wsetchell
0 Replies

6. HP-UX

WAS 6.1 ND/Lawson ERP/HP-UX 11.23 PA-RISC - unable to attach shared memory segment

I'm not an HP-UX Admin professional, but rather a Lawson ERP installer. I'm looking for clues on how to troubleshoot this issue. I have WAS 6.1 ND running on HP-UX 11.23 PA-RISC with the Lawson ERP application . When I start the Lawson application, no errors arise. When I start WAS app server, an... (4 Replies)
Discussion started by: mrvitas
4 Replies

7. Ubuntu

Memory fault(coredump)

Hey guys, I am new to the Linux world and have a question to post. When I ssh from a HP-UX machine to a ubuntu machine I get the following error message Memory fault(coredump) i.e. ssh 192.168.1.3 I get this message as shown below Memory fault(coredump) Can someone please explain... (2 Replies)
Discussion started by: fkaba81
2 Replies

8. Programming

memory fault

When I excute a program . It seems to generate an error : memory fault (core dump ) So how can i (1 Reply)
Discussion started by: iwbasts
1 Replies

9. UNIX for Dummies Questions & Answers

Coredump (memory fault)

We are running a SQR program on Unix Platform with Oracle RDBMS. It's an interfacing program to integrate data from foreign sites to PeopleSoft database, using a flat file input. After many hours of processing, the program stops with a coredump error (memory fault). With top command we noticed... (1 Reply)
Discussion started by: araziki
1 Replies

10. UNIX for Dummies Questions & Answers

Memory Fault

I am using Unix OpenServer Release 5. When a run a application with user different to "Superuser" the application give me the following error: "Memory Fault - Core Dump". What's that mean? Thank you in advance. Roberto Veras. (1 Reply)
Discussion started by: robertoveras
1 Replies
Login or Register to Ask a Question