-
Notifications
You must be signed in to change notification settings - Fork 90
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
Issue with GCC 8 #62
Comments
With -O0:
So at https://github.com/vectorgraphics/asymptote/blob/master/fileio.cc#L149 , s is std::string "", pos is (size_t)-1 and now gcc8 checks the access of s[(size_t)-1] and it causes abort. |
johncbowman
added a commit
that referenced
this issue
Mar 28, 2018
Thank you for tracking this bug down. It is fixed in commit 6ce2d6f. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not clear to me if this is a compiler issue or an asymptote issue, but when I try to build asymptote 2.41 for Fedora 28 (using gcc 8.0.1), the build succeeds, but asy dumps core during make all:
../asy -dir ../base -config "" -render=0 -h 2>&1 | grep -iv Asymptote > options
../asy -dir ../base -config "" -render=0 -f pdf -noprc Hobbycontrol.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc binarytreetest.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc quartercircle.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc leastsquares.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc logo.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc join3.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc helix.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc loggrid.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc beziercurve.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc log2graph.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc monthaxis.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc exp.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc loggraph.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc cube.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc errorbars.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc generalaxis.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc tile.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc shadedtiling.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc lineargraph.asy
../asy -dir ../base -config "" -render=0 -f pdf -noprc secondaryaxis.asy
make: *** [Makefile:42: secondaryaxis.pdf] Aborted (core dumped)
gdb backtrace looks like this:
The text was updated successfully, but these errors were encountered: