octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #45023] Segmentation fault using OpenMP in ext


From: Daniel Beale
Subject: [Octave-bug-tracker] [bug #45023] Segmentation fault using OpenMP in external oct files
Date: Tue, 05 May 2015 12:57:41 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0

URL:
  <http://savannah.gnu.org/bugs/?45023>

                 Summary: Segmentation fault using OpenMP in external oct
files
                 Project: GNU Octave
            Submitted by: dabeale
            Submitted on: Tue 05 May 2015 12:57:40 GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: Mac OS

    _______________________________________________________

Details:

Using OpenMP in an external oct file can cause a segmentation fault.

Compile the following code using the -fopenmp flag using clang-omp compiler,


#include <octave/oct.h>

DEFUN_DLD(TestFunc, args, , 
          "")
{ 
  #pragma omp parallel for
  for(uint32_t k=0;k<3;k++)
  {
    //anything can go here
  }
  return octave_value(0);
}


The following octave code will reproduce the error:


  TestFunc;
  clear all;
  [a b]=system('echo test');





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45023>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]