Decompress segfaults on Solaris Sparc #48

Closed
opened 2026-01-29 20:29:57 +00:00 by claunia · 4 comments
Owner

Originally created by @jeroen on GitHub (Oct 4, 2015).

Possibly related to https://github.com/google/brotli/issues/203

> brotli_decompress(y)

 *** caught bus error ***
address ffbfc093, cause 'invalid alignment'

Traceback:
 1: .Call(R_brotli_decompress, buf)
 2: brotli_decompress(y)
Originally created by @jeroen on GitHub (Oct 4, 2015). Possibly related to https://github.com/google/brotli/issues/203 ``` > brotli_decompress(y) *** caught bus error *** address ffbfc093, cause 'invalid alignment' Traceback: 1: .Call(R_brotli_decompress, buf) 2: brotli_decompress(y) ```
Author
Owner

@eustas commented on GitHub (Oct 4, 2015):

Try to compile with -DBROTLI_BUILD_PORTABLE option.

@eustas commented on GitHub (Oct 4, 2015): Try to compile with -DBROTLI_BUILD_PORTABLE option.
Author
Owner

@jeroen commented on GitHub (Oct 4, 2015):

This indeed seems to help. Does this flag have any side effects? Why is it not the default?

@jeroen commented on GitHub (Oct 4, 2015): This indeed seems to help. Does this flag have any side effects? Why is it not the default?
Author
Owner

@eustas commented on GitHub (Oct 4, 2015):

We haven't taken Sparc CPUs into account.
I'll prepare patch that disables unaligned reads on Sparc CPUs.

@eustas commented on GitHub (Oct 4, 2015): We haven't taken Sparc CPUs into account. I'll prepare patch that disables unaligned reads on Sparc CPUs.
Author
Owner

@eustas commented on GitHub (Oct 6, 2015):

Now SPARC and ARMv6 build in "portable" mode by default.

We're going to replace black-listing with white-listing, so unrecognized architectures would be built in "portable" mode.

Thank you for pointing the problem out.

@eustas commented on GitHub (Oct 6, 2015): Now SPARC and ARMv6 build in "portable" mode by default. We're going to replace black-listing with white-listing, so unrecognized architectures would be built in "portable" mode. Thank you for pointing the problem out.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#48