The UNIX and Linux Forums  

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
Linux's future not as dour as IDC predicts, critics say - Search Enterprise Linux iBot UNIX and Linux RSS News 0 10-31-2007 04:00 PM
Does Active Directory top Linux authentication options? - Search Enterprise Linux iBot UNIX and Linux RSS News 0 10-29-2007 06:20 AM
Sun Sparc defectors tap Transitive for Linux migrations - Search Enterprise Linux iBot UNIX and Linux RSS News 0 08-16-2007 07:10 PM
Hovespian cites four vehicles to broaden Linux adoption - Search Enterprise Linux iBot UNIX and Linux RSS News 0 08-08-2007 08:30 PM
gnu history library signal segfault a1g0rithm High Level Programming 2 03-18-2006 06:23 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-17-2008
aslambilal aslambilal is offline
Registered User
  
 

Join Date: Oct 2008
Location: State College, PA
Posts: 1
[Linux] How Do I Run Until Segfault

Hello, sorry if this has been posted before but i was wondering if there is a way to run a program until a segmentation fault is found.

Currently i'm using a simple shell script which runs my program 100 times, sleeps 1 second because srand(time(0)) is dependent on seconds. Is there a possible way i can run this in GDB until a segfault or write a script that looks for a segfault signal?


Code:
for ( i = 0; i<=100; i++ )
  do
    program >> testloop.out
    sleep 1
  done

Thank You,
Bilal Aslam
 

Bookmarks

Tags
segfault

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 01:00 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