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 > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
bus error (coredump) charu UNIX for Dummies Questions & Answers 4 12-12-2007 06:05 AM
coredump after every reboot xnightcrawl UNIX for Advanced & Expert Users 2 03-24-2006 06:41 PM
Bus error(coredump Student37 UNIX for Dummies Questions & Answers 3 07-01-2005 03:53 PM
Strncpy - coredump vijaysabari High Level Programming 0 06-30-2004 10:55 AM
coredump lala High Level Programming 2 03-12-2002 09:26 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-16-2007
brdholman brdholman is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 26
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 (permalink)  
Old 10-17-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,944
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 (permalink)  
Old 10-18-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 499
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.

[speculating]
Seems like it rely's on a database connection, or is there a flag/config you could alter to turn the reliance off ??
[/speculating]
  #4 (permalink)  
Old 10-18-2007
brdholman brdholman is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 26
This comes from another group, so I'll have to ask about that.
  #5 (permalink)  
Old 10-18-2007
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
The core file has program version info as well.
Code:
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 (permalink)  
Old 10-18-2007
brdholman brdholman is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 26
This is development. I'm in QA.

Thanks. I'll try looking at that file.
  #7 (permalink)  
Old 10-19-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,944
Quote:
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 )
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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