librocksdb4.1 Invalid Instruction due to wrong compile flag

Bug #1748914 reported by Niklas Schnelle
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rocksdb (Debian)
Fix Released
Unknown
rocksdb (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

According to the upstream GitHub rocksdb uses "-march=native" by default[0] so for portable binaries one has to use "PORTABLE=1 make …".

For the librocksdb4.1 package in Ubuntu 16.04 this seems to not have been done. Consequently trying to use this package on an older Xeon E5649 (even though that claims SSE4.2) results in an immediate crash with "invalid opcode" in dmesg.

When I compile from source on this same machine using

"apt-get source librocksdb-dev" and "dpkg-buildpackage -us -uc" results in a working build.

[0] https://github.com/facebook/rocksdb/blob/master/INSTALL.md

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rocksdb (Ubuntu):
status: New → Confirmed
Changed in rocksdb (Debian):
status: Unknown → Fix Released
Revision history for this message
Benjamin Drung (bdrung) wrote :

The linked Debian bug has been fixed in rocksdb 4.5.1-1 and therefore also in Ubuntu 20.04 (bionic). Ubuntu 16.04 is EOL now.

Changed in rocksdb (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.