segmentation fault in main() when -fstack-check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have some concerns about Linux (2.4 based kernel)
and stack usage, in particular with multithreaded
programs.  Per the gcc documentation, the compile
option -fstack-check should be used with multithreaded
programs so that the OS can reliably tell when an
arbitrary thread's stack space is being extended. 
However, it seems that whenever I specify the
-fstack-check option, the compiled program will not
run.  It instead seg faults when main() is called. 
Should this compiler option be used on my platform?

Platform: Suse 9.0 (x86 2.4.21 kernel), gcc 3.3.1,
multithreading using the pthread library.



      ____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux