Comment 1 for bug 2052929

Revision history for this message
Matthias Klose (doko) wrote :

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