ascherer / sgb

Stanford GraphBase
27 stars 7 forks source link

CRASH: multiply 100 100 31416 #4

Closed ascherer closed 5 years ago

ascherer commented 5 years ago

The local version dies.

ascherer commented 5 years ago

It seems to boil down to --without debuginfo. Optimization kills multiply; all other programs run normally and produce the expected results.

ascherer commented 5 years ago

This occurs even on master, if you replace -g with -O in Makefile.

ascherer commented 5 years ago

Fixed and reported upstream.

ascherer commented 5 years ago

While gcc/g++ on Linux requires -Optimization to reveal the fatal memory error, Apple LLVM version 9.0.0 (clang-900.0.39.2) on macOS 10.12.6 produces a flawed multiply executable right out of the box. The following recipe with the original SGB tarball

$> tar xzvf sgb.tar.gz
$> make tests multiply
$> ./multiply 100 100 31416

reports Abort trap: 6.

Despite a detailed bug report, DEK hasn't come around to fixing this mistake upstream.

ascherer commented 1 year ago

Fixed in Stanford GraphBase 2021-01-30.