handling a coredump on HP?

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers handling a coredump on HP?
# 1  
Old 10-16-2007
handling a coredump on HP?

This works for all my normal executions. But on one machine, a coredump is expected on one command. We don't care and know it will always happen, but need to confirm the version info from the start of the output. This is output from the exe:

$ ./Up

-*-*- XXXXXXX UPDATE XXXXX Version nnnnnnnn -*-*-
-*-*- Copyright (C) 1998-2007 xxxxxxxxxxxxxx, Inc. -*-*-

Processing begins: 10/4/2007 10:48:12

Tracking Database Connect Error
Memory fault(coredump)

However, when I send the output to a file, the output file is empty:

$ ./Up > ../Up_output.txt 2>&1
Memory fault(coredump)
$ cd ..
$ cat Up_output.txt

How do I capture the output so I can check the version and continue processing?
# 2  
Old 10-17-2007
surprising, why the redirection is not working here ?

I could see that you have used 2>&1 and both stdout and stderr to be redirected to the log file

# 3  
Old 10-18-2007
Yeah - really weird the redirection not working.
Perhaps a dodgy binary ??
Maybe it's me, but I'd not be too happy with a program that generates a coredump each time you run it.

Seems like it rely's on a database connection, or is there a flag/config you could alter to turn the reliance off ??
# 4  
Old 10-18-2007
This comes from another group, so I'll have to ask about that.
# 5  
Old 10-18-2007
The core file has program version info as well.
file /path/to/core

will verify you are looking at the correct core file.

And. No way should an app 'be expected' to dump core in production. If someone has deliberately written code that forces itself to core dump for debug reasons, okay. But that's development. Never production.
# 6  
Old 10-18-2007
This is development. I'm in QA.

Thanks. I'll try looking at that file.
# 7  
Old 10-19-2007
And. No way should an app 'be expected' to dump core in production.
Why is that so Jim ?

Did you mean an app running in production to be cent percent perfect all the time ? I accept that bugs that dump core in production are not a welcoming feature.

But I believe neither of the code that is written could be ever said 100% bug free, so core dumps in production are more like a way of life and they are bound to happen.

I didn't mean to say anything negatively and only point I would like to stress is " it happens " ( I know its a lame excuse and hate that myself very much )
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Coredump HP-UX 11.23 and 11.31

Hi, I'm looking for the help on how to implement coredump using the tools that comes with HP-UX 11.23 and HP-UX 11.31. To also avoid the the dump files fill-up the root disk when dump occurs. I'm new to this and would need step by step please. Thanks in advance! (3 Replies)
Discussion started by: lamoul
3 Replies

2. Shell Programming and Scripting

bc throwing coredump

Hi Gurus, I tried bc 1000 % 10 on tcsh and ksh and its throwing a core dump on a sun solaris machine. uname -a SunOS azote 5.9 Generic_118558-39 sun4u sparc SUNW,Ultra-4 Please let me know if you find anything. Thanks, Kinny (8 Replies)
Discussion started by: kinny
8 Replies

3. AIX

coredump: xsnaadmin

Hello! I do have an IBM pSeries 7043 server running AIX Well, I do have trouble to run xsnaadmin tool remotely, I mean, the xsnaadmin tool can't run on exported X display. What I'm doing is aixserver>export DISPLAY=xxx.xxx.xxx.xxx:0.0 aixserver>xsnaadmin Segmentation... (0 Replies)
Discussion started by: jssanche
0 Replies

4. HP-UX

Need help on Bus error(coredump)

Hi all, I am quite weak in C but I need to get some work done. Hope someone can help me out. I keep getting this error when i try to run my C application in my HP-UX 10.20 machine. Some code snippet: Month(DBTime) =====This is a function which will return variable "CutOffTime" to be use... (5 Replies)
Discussion started by: Vision©
5 Replies

5. Red Hat

how to read coredump on RHEL

Hi All, I just wondering how can we read core files (core.****). I have an appication, when it is trying to crash I got the coredump. since it is in binary format, I dont know how to read that. Thanks (1 Reply)
Discussion started by: s_linux
1 Replies

6. UNIX for Advanced & Expert Users

coredump after every reboot

Every time I reboot our solaris 9 (SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Sun-Fire-480R) box, I get the messages below: # dmesg | grep dump Mar 24 12:39:55 hostname savecore: initial dump header corrupt Mar 24 12:39:55 hostname genunix: dump on /dev/dsk/c1t0d0s1 size 700 MB Mar 24... (2 Replies)
Discussion started by: xnightcrawl
2 Replies

7. Solaris

metainit gives coredump

SunOS unknown 5.9 Generic_118558-10 sun4u sparc SUNW,Sun-Fire-880 I'm trying to set up mirroring and am running into a problem: As you can see, I set up the metadb, but am getting a coredump when running metainit. I saw this through google, but don't know the validity of it. Any ideas? #... (5 Replies)
Discussion started by: dangral
5 Replies

8. Programming

Strncpy - coredump

haiu all what makes strncpy to coredump (0 Replies)
Discussion started by: vijaysabari
0 Replies

9. Solaris

Set Up Coredump's

I am trying to set up coredumps on a server, I have enabled the coreadm, and have also set a path to whre the coredumps will go. I now need to set the ulimit , as this is set to 0. I made the change: ulimit -c 8192 but when I logged out and back in, it was set back to 0 again. I need to know... (1 Reply)
Discussion started by: mzyvn6
1 Replies

10. Programming


i create one executed file (based on c language). when 1 try to executed the file, the result show me the bus error (coredump). can you help me to solve this problem. thanks. (2 Replies)
Discussion started by: lala
2 Replies
Login or Register to Ask a Question