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 > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using GDB to analyse different CORE dumps nsdeeps UNIX for Advanced & Expert Users 2 04-16-2008 12:10 AM
SCO 5.07 Panic / Core Dumps ccarcher SCO 5 01-19-2007 05:12 AM
strcmp core dumps annie High Level Programming 6 02-26-2006 10:23 AM
Generating core dumps handak9 SUN Solaris 4 09-08-2004 04:07 AM
reading core dumps suntan UNIX for Advanced & Expert Users 2 04-23-2003 09:29 PM

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

Join Date: Aug 2008
Posts: 7
AIX core dumps

My program is not dumping core when hitting a segmentation violation inside a thread.
However, it dumps core when the segv occurs within main.

Any ideas on how to diagnose this?
AIX 5.3
  #2 (permalink)  
Old 08-08-2008
shamrock shamrock is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2007
Location: USA
Posts: 750
Step through a debugger with your code.
  #3 (permalink)  
Old 08-08-2008
bean66 bean66 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 7
Quote:
Originally Posted by shamrock View Post
Step through a debugger with your code.

I introduced the segv intentionally via the following

char *x;
x=0
*x = 5;

But no core file is generated, when this is in one of the threads, but in main I get a core file.

So my question is why isn't a core generated for the threads segmentation violation?

Hope that clarifies the question.
thanks for any input.
Ken
  #4 (permalink)  
Old 08-08-2008
shamrock shamrock is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2007
Location: USA
Posts: 750
Can you post the threads version of the entire code.
  #5 (permalink)  
Old 08-08-2008
bean66 bean66 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 7
Quote:
Originally Posted by shamrock View Post
Can you post the threads version of the entire code.
Unfortunately no.

There is nothing special going on though.
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:05 AM.


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