[MacPorts] #59678: fftw-3 @3.3.8 (math): on macOS Catalina (only) segmentation fault for 2^N with N=12
MacPorts
noreply at macports.org
Thu Feb 20 00:26:25 UTC 2020
#59678: fftw-3 @3.3.8 (math): on macOS Catalina (only) segmentation fault for 2^N
with N=12
---------------------+--------------------
Reporter: sa35 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: fftw-3 |
---------------------+--------------------
Comment (by astroboylrx):
I've countered this issue, too. I don't know whose bug it is, either
fftw-3 or Catalina. But there are reports from other softwares with this
issue, e.g., ffmpeg [https://trac.ffmpeg.org/ticket/8073]
If you use LLDB to debug the program you attached (see below), you'll see
it's a general protection fault: `code=EXC_I386_GPFLT` (some explanations
here [https://stackoverflow.com/a/19652167/4009531]). And the error is
called {{{libdyld.dylib`stack_not_16_byte_aligned_error}}}. The 12th
comment [https://trac.ffmpeg.org/ticket/8073#comment:12] in the ffmpeg bug
tracker forum explained a little bit: "Stack checking is on by default on
all platforms to prevent memory corruptions. (25859140)". And this post
[https://artempyanykh.com/blog/posts/2019-01-16-assembling-fizz-buzz.html
#stack-align] also explains a little bit: "When memory is not aligned the
processor generates a general protection exception that translates to a
segmentation fault."
{{{
➜ ~/build $ lldb ./fftw3_test
(lldb) target create "./fftw3_test"
Current executable set to './fftw3_test' (x86_64).
(lldb) run
Process 80432 launched:
'/Users/rixin/Downloads/fftw3_bare/build/fftw3_test' (x86_64)
debug> N=4096, offset=0
Process 80432 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=EXC_I386_GPFLT)
frame #0: 0x00007fff655352be
libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
-> 0x7fff655352be <+0>: movdqa %xmm0, (%rsp)
0x7fff655352c3 <+5>: int3
0x7fff655352c4 <+6>: nop
0x7fff655352c5 <+7>: nop
Target 0: (fftw3_test) stopped.
}}}
Hopefully, my search can contribute more information to the discussions
here. Sadly, there is no listed maintainer for this port. I've tried to
Google this error but got no luck. Thanks a lot for mentioning that
compiling fftw from the source could work. I will try that.
--
Ticket URL: <https://trac.macports.org/ticket/59678#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list