public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* running OpenMP-enabled programs: segmentation fault
@ 2009-02-15 10:34 Eugéne Suter
  2009-02-16  4:32 ` Tim Prince
  0 siblings, 1 reply; 3+ messages in thread
From: Eugéne Suter @ 2009-02-15 10:34 UTC (permalink / raw)
  To: gcc-help

Hello,

I am adding OpenMP directives to a serial library I have been working
on. However, I cant get any driver program linked to the library
(dynamic linking) to execute.
The program simply segfaults as soon as it starts executing anything
in the openmp parallel code block.
After "googling" for a while, the problem seems like it might be a
lack of stack space, and there was one site that specifically gave an
example of this problem:

https://computing.llnl.gov/tutorials/openMP/exercise.html

The file "omp_bug4" will segfault when run. However, the "fix" they
provide does not work, I still get the segmentation fault (in my
project and in the example they provide).
I have tried adjusting my shell's stack limit with "ulimit -s
unlimited" and other environment variables (KMP_STACKSIZE,
GOMP_STACKSIZE, etc...) and all to no avail.

My system specs are:

Intel Core 2 Duo
1 GB ram
Slackware 12.2 (GCC 4.2.4)

I also compiled my own custom kernel,  but using Slackware's as a
template and only making minor ajustments. Is there perhaps some
specific kernel configuration that could solve this problem?

Any help is very much appreciated.

Cheers

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-16 11:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-15 10:34 running OpenMP-enabled programs: segmentation fault Eugéne Suter
2009-02-16  4:32 ` Tim Prince
2009-02-16 11:12   ` Eugéne Suter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).