LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-19-2009, 12:58 AM   #1
Linux_Kid_
LQ Newbie
 
Registered: May 2009
Posts: 20

Rep: Reputation: 0
What happen if my thread in process crash??


Hi All ,

I am using linux fedora.
I have a process with at least 15 threads in it ..I tried n saw that if any of my thread crashes then i will get a process dump ..

Is there any possibilty that i only get a thread dump instead of my whole process dump ?? i.e my all thread keep working if my only 1 thread crash ....

Last edited by Linux_Kid_; 08-20-2009 at 07:56 AM.
 
Old 08-19-2009, 07:11 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I don't believe so, but if anyone knows better, I'm all ears
 
Old 08-19-2009, 08:06 PM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
This is because the threads are part of the same process space, so it doesn't normally make sense to keep going if a thread has caused a fault signal (especially if it was a segment violation).

If you really need the other threads to keep going, your best bet might be to use pthread_sigmask to catch the signal that caused the fault and put the thread to sleep (and probably log the failure).
 
Old 08-20-2009, 07:53 AM   #4
Linux_Kid_
LQ Newbie
 
Registered: May 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks alot ....
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Process size and Thread count for a particular running process haseit Linux - Newbie 2 01-22-2009 11:09 PM
LXer: Firefox privacy button a crash waiting to happen LXer Syndicated Linux News 0 06-16-2008 12:30 PM
LXer: Vendor Escalation, Process Politicalization, and What Needs to Happen Next LXer Syndicated Linux News 0 04-05-2008 04:20 PM
When does process swap happen in a system call? oldfogie Programming 3 05-03-2005 07:35 PM
Process and thread PIDs msriram_linux Programming 4 11-27-2004 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration