LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-22-2009, 03:58 PM   #1
rushmanw
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
paulsm4
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:

http://www.linuxjournal.com/article/3814

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.

IMHO .. PSM
 
  


Reply

Tags
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/Novell 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 09:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration