New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyTorch MacOS x86 fail: section __TEXT/__const address out of range for architecture x86_64 when building NNPACK #119
Comments
I'm trying to build PeachPy but I am getting:
|
It's working now ... ;-)
clang
Is this correct?
Trying to build PyTorch next. |
Thanks @dbl001 for taking a look. Make sure the command line is same as what is passed to clang when building PyTorch. You can get that in verbose mode. |
I wonder if this was already fixed by f8ef1a3 |
@Maratyszcza do you mind merging latest master into |
@malfet Create a pull request, and I'll merge |
My PyTorch build failed again. What's -g4?
|
@dbl001 have you updated the submodules? I've landed the change like an hour ago, that should have fixed that |
Is it still pinned to the old version in PyTorch? |
I'm not sure I understand the question |
… On May 26, 2022, at 9:27 AM, Nikita Shulga ***@***.***> wrote:
Is it still pinned to the old version in PyTorch? E.g. #76094
I'm not sure I understand the question
—
Reply to this email directly, view it on GitHub <#119 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAXWFWZBDVLL2XOOAI7D3UTVL6Q53ANCNFSM5WZXMMYA>.
You are receiving this because you were mentioned.
|
I think this has been addressed. |
The PyTorch MacOS build with NNPack is failing with: section __TEXT/__const address out of range for architecture x86_64
When upgrading the Xcode to latest 13.3.1, we see this behavior.
The difference between Xcode 13.2.1 and 13.3 is that there are more boundary checks to prevent OOB reads.
The conv1x1.yp.o object file has malformed load commands:
$ size -mlx conv1x1.py.o
Segment __TEXT: 0x36f (vmaddr 0x0 fileoff 288)
Section (__TEXT, __text): 0x2ef (addr 0x0 offset 288)
Section (__TEXT, __const): 0x80 (addr 0x300 offset 1088)
total 0x36f
total 0x36f
__const section starts at 0x300, and ends at 0x380, which exceeds the __TEXT segment size (0x36f).
There is manually generated object file using the third_party/NNPACK/src/x86_64-fma/blas/conv1x1.py script. Can we regenerate the object file with the latest Xcode to make sure this bug is fixed and there is no OOB access.
The text was updated successfully, but these errors were encountered: