![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
[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 |
| Display Modes | Rate This Thread |
|
|