Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-22-2009, 03:58 PM   #1
LQ Newbie
Registered: Apr 2009
Posts: 6

Rep: Reputation: 0
Question pthread segmentation fault 64-bit only

duplicated, removed.

Last edited by rushmanw; 04-22-2009 at 04:34 PM.
Old 04-22-2009, 04:35 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
One of the differences between Linux and other *nix is that Linux processes *are* Linux threads:

But that's academic.

The reason you're crashing has little/nothing to do with threads, and everything to do with the fact that you've allocated 250,000 element arrays as local variables (off the stack).

As I recommended in my other post: I believe that's unwise. I would strongly urge you to allocate large objects from the heap, not the stack.



pthreads, segmentation fault

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Debian Lenny: tcsh segmentation fault. when .history contains 8-bit char (?) kaz2100 Debian 1 01-17-2010 10:14 PM
pthread segmentation fault 64-bit only rushmanw Programming 12 04-23-2009 02:02 PM
segmentation fault..... sumitshining Programming 9 11-10-2008 02:48 PM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
segmentation fault pippet Programming 4 01-24-2005 01:02 AM

All times are GMT -5. The time now is 04:56 PM.

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