also segfaults without lto enabled, and even when built without optimization (-O0).
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7f8e092 in ?? () from /lib/x86_64-linux-gnu/libquadmath.so.0
(gdb) bt
#0 0x00007ffff7f8e092 in ?? () from /lib/x86_64-linux-gnu/libquadmath.so.0
#1 0x00007ffff7f9104a in ?? () from /lib/x86_64-linux-gnu/libquadmath.so.0
#2 0x00007ffff7c7f77a in __printf_function_invoke (buf=buf@entry=0x7fffffffbf70,
callback=0x7ffff7f91000, args_value=<optimized out>, ndata_args=<optimized out>,
info=info@entry=0x7fffffffb1e8) at ./printf_buffer_as_file.h:52
#3 0x00007ffff7c827de in printf_positional (buf=buf@entry=0x7fffffffbf70,
format=format@entry=0x555555920bf0 "%3d. energy: %#*.*Qg scale: %#Qg\n",
readonly_format=readonly_format@entry=0, ap=ap@entry=0x7fffffffbfc0,
ap_savep=ap_savep@entry=0x7fffffffbb18, nspecs_done=1, nspecs_done@entry=0,
lead_str_end=<optimized out>, work_buffer=<optimized out>, save_errno=<optimized out>,
grouping=<optimized out>, thousands_sep=<optimized out>, mode_flags=<optimized out>)
at ./stdio-common/vfprintf-internal.c:1345
#4 0x00007ffff7c84235 in __printf_buffer (buf=buf@entry=0x7fffffffbf70,
format=0x555555920bf0 "%3d. energy: %#*.*Qg scale: %#Qg\n", ap=0x7fffffffbfc0,
mode_flags=0) at ./stdio-common/vfprintf-internal.c:1041
#5 0x00007ffff7ca39d7 in __vsprintf_internal (string=<optimized out>,
maxlen=maxlen@entry=18446744073709551615, format=<optimized out>,
args=args@entry=0x7fffffffbfc0, mode_flags=mode_flags@entry=0) at ./libio/iovsprintf.c:62
#6 0x00007ffff7c814b7 in __sprintf (s=<optimized out>, format=<optimized out>)
at ./stdio-common/sprintf.c:30
#7 0x00005555556fc006 in iterate () at ../../../src/iterate.c:277
#8 0x0000555555718fc0 in letter_command (c=103) at ../../../src/command.c:465
#9 0x00005555556645d6 in eval (ex_original=0x7fffffffe050, params=0x0, self_id=0,
parent_frame=0x0) at ../../../src/evaltree.c:396
#10 0x0000555555593142 in command (text=0x7fffffffe140 "g 5; v; r ; g 10; v;", mode=1)
at ../../../src/query.c:247
#11 0x00005555557179aa in old_menu (text=0x7fffffffe140 "g 5; v; r ; g 10; v;")
at ../../../src/command.c:125
#12 0x00005555556b4494 in exec_commands (basefd=0x0,
promptstring=0x555555919ed5 "Enter command: ") at ../../../src/tmain.c:839
#13 0x00005555556b4389 in main (argc=1, argv=0x7fffffffe400) at ../../../src/tmain.c:678
also segfaults without lto enabled, and even when built without optimization (-O0).
Program received signal SIGSEGV, Segmentation fault. 64-linux- gnu/libquadmath .so.0 64-linux- gnu/libquadmath .so.0 64-linux- gnu/libquadmath .so.0 function_ invoke (buf=buf@ entry=0x7ffffff fbf70, 0x7ffff7f91000, args_value= <optimized out>, ndata_args= <optimized out>, info@entry= 0x7fffffffb1e8) at ./printf_ buffer_ as_file. h:52 entry=0x7ffffff fbf70, format@ entry=0x5555559 20bf0 "%3d. energy: %#*.*Qg scale: %#Qg\n", format= readonly_ format@ entry=0, ap=ap@entry= 0x7fffffffbfc0, savep=ap_ savep@entry= 0x7fffffffbb18, nspecs_done=1, nspecs_ done@entry= 0, str_end= <optimized out>, work_buffer= <optimized out>, save_errno= <optimized out>, <optimized out>, thousands_ sep=<optimized out>, mode_flags= <optimized out>) common/ vfprintf- internal. c:1345 entry=0x7ffffff fbf70, 0x555555920bf0 "%3d. energy: %#*.*Qg scale: %#Qg\n", ap=0x7fffffffbfc0, common/ vfprintf- internal. c:1041 maxlen@ entry=184467440 73709551615, format=<optimized out>, args@entry= 0x7fffffffbfc0, mode_flags= mode_flags@ entry=0) at ./libio/ iovsprintf. c:62 common/ sprintf. c:30 ./src/iterate. c:277 ./src/command. c:465 0x7fffffffe050, params=0x0, self_id=0, frame=0x0) at ../../. ./src/evaltree. c:396 fe140 "g 5; v; r ; g 10; v;", mode=1) ./src/query. c:247 fe140 "g 5; v; r ; g 10; v;") ./src/command. c:125 g=0x555555919ed 5 "Enter command: ") at ../../. ./src/tmain. c:839 e400) at ../../. ./src/tmain. c:678
0x00007ffff7f8e092 in ?? () from /lib/x86_
(gdb) bt
#0 0x00007ffff7f8e092 in ?? () from /lib/x86_
#1 0x00007ffff7f9104a in ?? () from /lib/x86_
#2 0x00007ffff7c7f77a in __printf_
callback=
info=
#3 0x00007ffff7c827de in printf_positional (buf=buf@
format=
readonly_
ap_
lead_
grouping=
at ./stdio-
#4 0x00007ffff7c84235 in __printf_buffer (buf=buf@
format=
mode_flags=0) at ./stdio-
#5 0x00007ffff7ca39d7 in __vsprintf_internal (string=<optimized out>,
maxlen=
args=
#6 0x00007ffff7c814b7 in __sprintf (s=<optimized out>, format=<optimized out>)
at ./stdio-
#7 0x00005555556fc006 in iterate () at ../../.
#8 0x0000555555718fc0 in letter_command (c=103) at ../../.
#9 0x00005555556645d6 in eval (ex_original=
parent_
#10 0x0000555555593142 in command (text=0x7ffffff
at ../../.
#11 0x00005555557179aa in old_menu (text=0x7ffffff
at ../../.
#12 0x00005555556b4494 in exec_commands (basefd=0x0,
promptstrin
#13 0x00005555556b4389 in main (argc=1, argv=0x7fffffff