Skip to content

make check fails with -Ofast #1

Description

@orbea

compiler: gcc (GCC) 11.2.0 + clang version 13.0.0

Trio is broken with -Ofast.

CFLAGS=-Ofast ./configure
Reading symbols from ./regression...
(gdb) r
Starting program: /tmp/trio/regression 
Verifying strings
Verifying dynamic strings
Verifying special quantities
Verification failed in regression.c:1646.
  Expected "-1"
  Got      "0"
Verification failed in regression.c:1650.
  Expected "1"
  Got      "0"
Verification failed in regression.c:1652.
  Expected "1"
  Got      "0"
Verifying formatting
Verification failed in regression.c:424.
  Expected "0"
  Got      "0e-2147483648"
Verification failed in regression.c:426.
  Expected "-0"
  Got      "-0e-2147483648"
Verification failed in regression.c:477.
  Expected "0.000"
  Got      "0.000e-2147483648"

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7fa7b0e in TrioWriteDouble () from .libs/libtrio.so.2
(gdb) bt
#0  0x00007ffff7fa7b0e in TrioWriteDouble () from .libs/libtrio.so.2
#1  0x00007ffff7fa7f23 in TrioFormatProcess () from .libs/libtrio.so.2
#2  0x00007ffff7fa926f in trio_vsnprintf () from .libs/libtrio.so.2
#3  0x0000000000406eb8 in Verify ()
#4  0x000000000040411f in main ()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions