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

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

[Octave-bug-tracker] [bug #49532] parallel package: segmentation fault o


From: Olaf Till
Subject: [Octave-bug-tracker] [bug #49532] parallel package: segmentation fault on matrix multiplication on macOS
Date: Thu, 17 Nov 2016 18:07:05 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #10, bug #49532 (project octave):

It should be added that, since the segfault is in one of the two child
processes, you should attach to a child process with gdb -p PID. For this, you
can insert a 'pause (long_time)' as the first command into your function
'par_test'. Or better, as the second command, and the first command should
print out the pid of the process (getpid, as mentioned in the last post), but
set page_screen_output to false before doing this.

For clarity: run pararrayfun with your changed par_test, and from another
terminal, attach with gdb to the printed out pid, before par_test finishes its
'pause()'. Then give the command 'run' from gdb and hope to see the caught
segfault. Then 'bt'.

But in debugging parallel processes it can happen that the segfault doesn't
occur under debugging conditions. I'd believe you have good chances if the
segfault occurs even if you set nproc to 1 in pararrayfun. Then you should try
the debugging with nproc==1.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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