Skip to content
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

segfault in graphene_matrix_interpolate() with clang and scalar SIMD4f #1

Closed
ebassi opened this issue May 9, 2014 · 1 comment
Closed
Labels

Comments

@ebassi
Copy link
Owner

ebassi commented May 9, 2014

when running the scalar implementations of the graphene_simd4f_t type, we get a segmentation fault inside graphene_matrix_interpolate() when calculating the linear interpolation of the two perspective vec4.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7df0ebb in graphene_matrix_interpolate (a=<optimized out>, b=<optimized out>, factor=<optimized out>, 
    res=0x7fffffffded8) at graphene-matrix.c:997
997   res->value.w = graphene_simd4f_interpolate (perspective_a.value,
(gdb) print res
$1 = (graphene_matrix_t *) 0x7fffffffded8
(gdb) print res->value
$2 = {x = {5.88428767e-39, 0, -nan(0x7fdf68), 4.59163468e-41}, y = {-2.38550409e+21, 6.72623263e-44, 0, 0}, z = {
    7.00649232e-44, 0, 8.83997365e-39, 0}, w = {5.88777971e-39, 0, 5.88867373e-39, 0}}
(gdb) print res->value.w
$3 = {5.88777971e-39, 0, 5.88867373e-39, 0}
(gdb) print perspective_a
$4 = {value = {0, 0, 0, 1}}
(gdb) print perspective_b
$5 = {value = {0, 0, 0, 1}}

the issue goes away when compiling graphene with -O0; any other optimization causes a segmentation fault.

@ebassi ebassi added the bug label Jun 3, 2014
@ebassi
Copy link
Owner Author

ebassi commented Jun 4, 2014

mmh, cannot reproduce it any more - at least, with -O3.

@ebassi ebassi closed this as completed Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant