Skip to content

debuginfo tests fail against stock gdb 7.8.1 #18552

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

Closed
bkoropoff opened this issue Nov 2, 2014 · 1 comment
Closed

debuginfo tests fail against stock gdb 7.8.1 #18552

bkoropoff opened this issue Nov 2, 2014 · 1 comment

Comments

@bkoropoff
Copy link
Contributor

Since I determined #17808 is due to a patch to gdb applied by Fedora's packager, I built stock gdb 7.8.1 from source and put it in my path. I get two failures:

failures:

---- [debuginfo-gdb] debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs stdout ----
    NOTE: compiletest thinks it is using GDB version 7.8

    error: line not found in debugger output: $1 = RegularStruct = {the_first_field = 101, the_second_field = 102.5, the_third_field = false}

    status: exit code: 0
    command: gdb -quiet -batch -nx -command=x86_64-unknown-linux-gnu/test/debuginfo-gdb/gdb-pretty-struct-and-enums-pre-gdb-7-7.debugger.script
    stdout:
    ------------------------------------------
    GNU gdb (GDB) 7.8.1
    Copyright (C) 2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-unknown-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word".
    Breakpoint 1 at 0x9f2: file /home/bkoropoff/Source/rust/src/test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs, line 67.
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".

    Breakpoint 1, gdb-pretty-struct-and-enums-pre-gdb-7-7::main () at /home/bkoropoff/Source/rust/src/test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs:67
    67      zzz(); // #break
    $1 = {the_first_field = 101, the_second_field = 102.5, the_third_field = false}
    $2 = {<No data fields>}
    $3 = CStyleEnumVar1
    $4 = CStyleEnumVar2
    $5 = CStyleEnumVar3
    A debugging session is active.

        Inferior 1 [process 23408] will be killed.

    Quit anyway? (y or n) [answered Y; input not from terminal]

    ------------------------------------------
    stderr:
    ------------------------------------------

    ------------------------------------------

    task '[debuginfo-gdb] debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs' panicked at 'explicit panic', /home/bkoropoff/Source/rust/src/compiletest/runtest.rs:1485


---- [debuginfo-gdb] debuginfo/gdb-pretty-struct-and-enums.rs stdout ----
    NOTE: compiletest thinks it is using GDB version 7.8

    error: line not found in debugger output: $1 = RegularStruct = {the_first_field = 101, the_second_field = 102.5, the_third_field = false, the_fourth_field = "I'm so pretty, oh so pretty..."}

    status: exit code: 0
    command: gdb -quiet -batch -nx -command=x86_64-unknown-linux-gnu/test/debuginfo-gdb/gdb-pretty-struct-and-enums.debugger.script
    stdout:
    ------------------------------------------
    GNU gdb (GDB) 7.8.1
    Copyright (C) 2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-unknown-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word".
    Breakpoint 1 at 0xbf1: file /home/bkoropoff/Source/rust/src/test/debuginfo/gdb-pretty-struct-and-enums.rs, line 164.
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".

    Breakpoint 1, gdb-pretty-struct-and-enums::main () at /home/bkoropoff/Source/rust/src/test/debuginfo/gdb-pretty-struct-and-enums.rs:164
    164     zzz(); // #break
    $1 = {the_first_field = 101, the_second_field = 102.5, the_third_field = false, the_fourth_field = {data_ptr = 0x555555554d60 <str1153> "I'm so pretty, oh so pretty...blub", length = 30}}
    $2 = {true, 103, {data_ptr = 0x555555554d7e <str1154> "blub", length = 4}}
    $3 = {-104.5, 105}
    $4 = {<No data fields>}
    $5 = CStyleEnumVar1
    $6 = CStyleEnumVar2
    $7 = CStyleEnumVar3
    $8 = {{RUST$ENUM$DISR = MixedEnumCStyleVar}, {RUST$ENUM$DISR = MixedEnumCStyleVar, 32767, 31592, 128}, {RUST$ENUM$DISR = MixedEnumCStyleVar, field1 = 6.9533487637067068e-310, field2 = -134250192}}
    $9 = {{RUST$ENUM$DISR = MixedEnumTupleVar}, {RUST$ENUM$DISR = MixedEnumTupleVar, 106, 107, false}, {RUST$ENUM$DISR = MixedEnumTupleVar, field1 = 6.9533483476988382e-310, field2 = -1}}
    $10 = {{RUST$ENUM$DISR = MixedEnumStructVar}, {RUST$ENUM$DISR = MixedEnumStructVar, 32767, 0, false}, {RUST$ENUM$DISR = MixedEnumStructVar, field1 = 108.5, field2 = 109}}
    $11 = {{RUST$ENUM$DISR = Some}, {RUST$ENUM$DISR = Some, 110}}
    $12 = {{RUST$ENUM$DISR = None}, {RUST$ENUM$DISR = None, 4094446033}}
    $13 = {{RUST$ENUM$DISR = NestedVariant1, {regular_struct = {the_first_field = 111, the_second_field = 112.5, the_third_field = true, the_fourth_field = {data_ptr = 0x555555554d90 <str1156> "NestedStructString1", length = 19}}, tuple_struct = {113.5, 114}, empty_struct = {<No data fields>}, c_style_enum = CStyleEnumVar2, mixed_enum = {{RUST$ENUM$DISR = MixedEnumTupleVar}, {RUST$ENUM$DISR = MixedEnumTupleVar, 115, 116, false}, {RUST$ENUM$DISR = MixedEnumTupleVar, field1 = 6.9533483476992829e-310, field2 = -10240}}}}, {RUST$ENUM$DISR = NestedVariant1, abc = {regular_struct = {the_first_field = 111, the_second_field = 112.5, the_third_field = true, the_fourth_field = {data_ptr = 0x555555554d90 <str1156> "NestedStructString1", length = 19}}, tuple_struct = {113.5, 114}, empty_struct = {<No data fields>}, c_style_enum = CStyleEnumVar2, mixed_enum = {{RUST$ENUM$DISR = MixedEnumTupleVar}, {RUST$ENUM$DISR = MixedEnumTupleVar, 115, 116, false}, {RUST$ENUM$DISR = MixedEnumTupleVar, field1 = 6.9533483476992829e-310, field2 = -10240}}}}}
    $14 = {{RUST$ENUM$DISR = NestedVariant2, {regular_struct = {the_first_field = 117, the_second_field = 118.5, the_third_field = false, the_fourth_field = {data_ptr = 0x555555554db0 <str1157> "NestedStructString10\001\033\003;@", length = 20}}, tuple_struct = {119.5, 120}, empty_struct = {<No data fields>}, c_style_enum = CStyleEnumVar3, mixed_enum = {{RUST$ENUM$DISR = MixedEnumStructVar}, {RUST$ENUM$DISR = MixedEnumStructVar, 0, 0, false}, {RUST$ENUM$DISR = MixedEnumStructVar, field1 = 121.5, field2 = -122}}}}, {RUST$ENUM$DISR = NestedVariant2, abc = {regular_struct = {the_first_field = 117, the_second_field = 118.5, the_third_field = false, the_fourth_field = {data_ptr = 0x555555554db0 <str1157> "NestedStructString10\001\033\003;@", length = 20}}, tuple_struct = {119.5, 120}, empty_struct = {<No data fields>}, c_style_enum = CStyleEnumVar3, mixed_enum = {{RUST$ENUM$DISR = MixedEnumStructVar}, {RUST$ENUM$DISR = MixedEnumStructVar, 0, 0, false}, {RUST$ENUM$DISR = MixedEnumStructVar, field1 = 121.5, field2 = -122}}}}}
    A debugging session is active.

        Inferior 1 [process 23432] will be killed.

    Quit anyway? (y or n) [answered Y; input not from terminal]

    ------------------------------------------
    stderr:
    ------------------------------------------

    ------------------------------------------

    task '[debuginfo-gdb] debuginfo/gdb-pretty-struct-and-enums.rs' panicked at 'explicit panic', /home/bkoropoff/Source/rust/src/compiletest/runtest.rs:1485



failures:
    [debuginfo-gdb] debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs
    [debuginfo-gdb] debuginfo/gdb-pretty-struct-and-enums.rs

cc @michaelwoerister

@bkoropoff
Copy link
Contributor Author

Nevermind, my fault. gdb didn't build with python support. It passes with it.

lnicola added a commit to lnicola/rust that referenced this issue Nov 28, 2024
internal: Fix missing `rust-src` message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant