You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FreeBSD 11.1-RELEASE-p10 amd64 (x86-64), cc is Clang 4.0.0. Running on Intel Core i5-2520M @ 2.50GHz. BLIS commit 4b72a46. No changes made to any code.
Steps:
./configure --enable-blas --enable-cblas --enable-shared CC=cc auto
gmake
gmake test
Error:
Running test_libblis.x with output redirected to 'output.testsuite'
bash: line 2: 17434 Segmentation fault (core dumped) ./test_libblis.x -g ./testsuite/input.general -o ./testsuite/input.operations > output.testsuite
gmake: *** [Makefile:730: testsuite-run] Error 139
Once you have the VM set up, log in as root and do:
pkg update # this will bootstrap pkg, the package manager
pkg install git gmake bash # bash is required due to /usr/bin/env bash calls in blis
As a user, do:
git clone https://github.com/flame/blis.git
cd blis
./configure --enable-blas --enable-cblas --enable-shared auto
gmake
gmake test
This will likely segfault, and you can inspect the coredump with
@ararslan We found some integer-related bugs in various microkernels, one of them being sandybridge. Ideally, this segfault would be related to those bugs. I'll let you know when it's fixed.
@ararslan how big is long int on FreeBSD amd64? I only think a plain ./configure would cause problems before 2e31dd7 if inc_t == long int was smaller than 64 bits.
@devinamatthews Did you see 12dfa95, which was committed just before 2e31dd7? The details of the commit log will hopefully explain the answer to your question.
TL;DR: Basically, I messed up the order of #include for some of the headers, which inadvertently forced 32-bit integers on systems that should actually have 64-bit integers (but only when the user did not specify an integer size via configure).
Activity
devinamatthews commentedon May 11, 2018
@fgvanzee if you want to spin an OpenBSD VM feel free to debug or I can take a look next week.
ararslan commentedon May 11, 2018
Just to clarify, this issue is about FreeBSD, whereas #201 and #202 are about OpenBSD. I've been trying BLIS out on both. 🙂
fgvanzee commentedon May 14, 2018
@devinamatthews I don't know how to do that (yet). :) Knock yourself out.
ararslan commentedon May 16, 2018
Here's one way to do it:
fgvanzee commentedon May 16, 2018
@ararslan We found some integer-related bugs in various microkernels, one of them being sandybridge. Ideally, this segfault would be related to those bugs. I'll let you know when it's fixed.
fgvanzee commentedon May 16, 2018
@ararslan Would you mind trying the latest commit, 2e31dd7? We may have fixed your issue after stumbling upon it in a different context.
ararslan commentedon May 16, 2018
That seems to have done the trick! All tests pass on FreeBSD now with no segfaults. Thanks!
fgvanzee commentedon May 16, 2018
More good news! :)
devinamatthews commentedon May 16, 2018
@ararslan how big is
long inton FreeBSD amd64? I only think a plain./configurewould cause problems before 2e31dd7 ifinc_t == long intwas smaller than 64 bits.ararslan commentedon May 16, 2018
sizeof(long int)says 8 on my system, so I guess 64 bits.devinamatthews commentedon May 16, 2018
@fgvanzee I can't see why this would fix any problems on x86_64 BSD or Linux, as
inc_tis already 64-bit. Ideas?fgvanzee commentedon May 16, 2018
@devinamatthews Did you see 12dfa95, which was committed just before 2e31dd7? The details of the commit log will hopefully explain the answer to your question.
TL;DR: Basically, I messed up the order of
#includefor some of the headers, which inadvertently forced 32-bit integers on systems that should actually have 64-bit integers (but only when the user did not specify an integer size viaconfigure).ararslan commentedon May 16, 2018
Yes, it seems more likely that 12dfa95 was indeed the one that fixed it, but I can bisect if it's important.
devinamatthews commentedon May 16, 2018
Ah, that explains it. Good changes to the ukrs for possible Windows support though.