Preparing for the next release: call for testing

Mike Frysinger vapier at gentoo.org
Mon Dec 14 21:46:49 UTC 2015


On 15 Dec 2015 00:24, Dmitry V. Levin wrote:
> On Mon, Dec 14, 2015 at 03:45:40PM -0500, Mike Frysinger wrote:
> [...]
> > the older version of gawk used seems to be unhappy with the script.
> > when i run the command manually:
> > $ gawk -v VAR_NAME=mpers_target_var -v ARCH_FLAG=m32 -f ./mpers.awk mpers-m32/kernel_dirent.d2
> > #include <inttypes.h>
> > typedef
> > Killed
> [...]
> > this is gawk-4.0.1, so i suspect you should be able to reproduce by installing
> > that version locally.  i'm attaching the mpers-m32/kernel_dirent.d2 in case it
> > helps.
> 
> It's not the version of gawk but contents of mpers-m32/kernel_dirent.d2
> that makes the script go into infinite recursion.  Looks like .d2 is wrong.
> Could you attach mpers-m32/kernel_dirent.d1 file, please?

done.  we probably should add a sanity check to the gawk script so
it asserts rather than OOMs.
-mike
-------------- next part --------------
Contents of the .debug_info section:

  Compilation Unit @ offset 0x0:
   Length:        0xf0 (32-bit)
   Version:       4
   Abbrev Offset: 0x0
   Pointer Size:  4
 <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
    <c>   DW_AT_producer    : (indirect string, offset: 0xcd): GNU C 4.9.2 -m32 -mtune=generic -march=x86-64 -gdwarf-4 -fstack-protector-strong
    <10>   DW_AT_language    : 1	(ANSI C)
    <11>   DW_AT_name        : (indirect string, offset: 0x58): mpers-m32/kernel_dirent.c
    <15>   DW_AT_comp_dir    : (indirect string, offset: 0x11e): /root/strace
    <19>   DW_AT_stmt_list   : 0x0
 <1><1d>: Abbrev Number: 2 (DW_TAG_base_type)
    <1e>   DW_AT_byte_size   : 1
    <1f>   DW_AT_encoding    : 6	(signed char)
    <20>   DW_AT_name        : (indirect string, offset: 0x14c): signed char
 <1><24>: Abbrev Number: 2 (DW_TAG_base_type)
    <25>   DW_AT_byte_size   : 2
    <26>   DW_AT_encoding    : 5	(signed)
    <27>   DW_AT_name        : (indirect string, offset: 0x158): short int
 <1><2b>: Abbrev Number: 3 (DW_TAG_base_type)
    <2c>   DW_AT_byte_size   : 4
    <2d>   DW_AT_encoding    : 5	(signed)
    <2e>   DW_AT_name        : int
 <1><32>: Abbrev Number: 2 (DW_TAG_base_type)
    <33>   DW_AT_byte_size   : 8
    <34>   DW_AT_encoding    : 5	(signed)
    <35>   DW_AT_name        : (indirect string, offset: 0x0): long long int
 <1><39>: Abbrev Number: 2 (DW_TAG_base_type)
    <3a>   DW_AT_byte_size   : 1
    <3b>   DW_AT_encoding    : 8	(unsigned char)
    <3c>   DW_AT_name        : (indirect string, offset: 0x1b): unsigned char
 <1><40>: Abbrev Number: 2 (DW_TAG_base_type)
    <41>   DW_AT_byte_size   : 2
    <42>   DW_AT_encoding    : 7	(unsigned)
    <43>   DW_AT_name        : (indirect string, offset: 0x139): short unsigned int
 <1><47>: Abbrev Number: 2 (DW_TAG_base_type)
    <48>   DW_AT_byte_size   : 4
    <49>   DW_AT_encoding    : 7	(unsigned)
    <4a>   DW_AT_name        : (indirect string, offset: 0xe): unsigned int
 <1><4e>: Abbrev Number: 2 (DW_TAG_base_type)
    <4f>   DW_AT_byte_size   : 8
    <50>   DW_AT_encoding    : 7	(unsigned)
    <51>   DW_AT_name        : (indirect string, offset: 0x84): long long unsigned int
 <1><55>: Abbrev Number: 2 (DW_TAG_base_type)
    <56>   DW_AT_byte_size   : 4
    <57>   DW_AT_encoding    : 5	(signed)
    <58>   DW_AT_name        : (indirect string, offset: 0xbe): long int
 <1><5c>: Abbrev Number: 2 (DW_TAG_base_type)
    <5d>   DW_AT_byte_size   : 4
    <5e>   DW_AT_encoding    : 7	(unsigned)
    <5f>   DW_AT_name        : (indirect string, offset: 0x72): long unsigned int
 <1><63>: Abbrev Number: 2 (DW_TAG_base_type)
    <64>   DW_AT_byte_size   : 4
    <65>   DW_AT_encoding    : 7	(unsigned)
    <66>   DW_AT_name        : (indirect string, offset: 0x162): sizetype
 <1><6a>: Abbrev Number: 2 (DW_TAG_base_type)
    <6b>   DW_AT_byte_size   : 1
    <6c>   DW_AT_encoding    : 6	(signed char)
    <6d>   DW_AT_name        : (indirect string, offset: 0xb9): char
 <1><71>: Abbrev Number: 4 (DW_TAG_array_type)
    <72>   DW_AT_type        : <0x6a>
    <76>   DW_AT_sibling     : <0x81>
 <2><7a>: Abbrev Number: 5 (DW_TAG_subrange_type)
    <7b>   DW_AT_type        : <0x63>
    <7f>   DW_AT_upper_bound : 0
 <2><80>: Abbrev Number: 0
 <1><81>: Abbrev Number: 2 (DW_TAG_base_type)
    <82>   DW_AT_byte_size   : 1
    <83>   DW_AT_encoding    : 2	(boolean)
    <84>   DW_AT_name        : (indirect string, offset: 0xb3): _Bool
 <1><88>: Abbrev Number: 6 (DW_TAG_typedef)
    <89>   DW_AT_name        : (indirect string, offset: 0xa2): __kernel_ulong_t
    <8d>   DW_AT_decl_file   : 1
    <8e>   DW_AT_decl_line   : 15
    <8f>   DW_AT_type        : <0x5c>
 <1><93>: Abbrev Number: 6 (DW_TAG_typedef)
    <94>   DW_AT_name        : (indirect string, offset: 0x38): kernel_ulong_t
    <98>   DW_AT_decl_file   : 2
    <99>   DW_AT_decl_line   : 10
    <9a>   DW_AT_type        : <0x88>
 <1><9e>: Abbrev Number: 7 (DW_TAG_structure_type)
    <9f>   DW_AT_byte_size   : 12
    <a0>   DW_AT_decl_file   : 2
    <a1>   DW_AT_decl_line   : 24
    <a2>   DW_AT_sibling     : <0xd7>
 <2><a6>: Abbrev Number: 8 (DW_TAG_member)
    <a7>   DW_AT_name        : (indirect string, offset: 0x32): d_ino
    <ab>   DW_AT_decl_file   : 2
    <ac>   DW_AT_decl_line   : 25
    <ad>   DW_AT_type        : <0x93>
    <b1>   DW_AT_data_member_location: 0
 <2><b2>: Abbrev Number: 8 (DW_TAG_member)
    <b3>   DW_AT_name        : (indirect string, offset: 0xc7): d_off
    <b7>   DW_AT_decl_file   : 2
    <b8>   DW_AT_decl_line   : 26
    <b9>   DW_AT_type        : <0x93>
    <bd>   DW_AT_data_member_location: 4
 <2><be>: Abbrev Number: 8 (DW_TAG_member)
    <bf>   DW_AT_name        : (indirect string, offset: 0x29): d_reclen
    <c3>   DW_AT_decl_file   : 2
    <c4>   DW_AT_decl_line   : 27
    <c5>   DW_AT_type        : <0x40>
    <c9>   DW_AT_data_member_location: 8
 <2><ca>: Abbrev Number: 8 (DW_TAG_member)
    <cb>   DW_AT_name        : (indirect string, offset: 0x9b): d_name
    <cf>   DW_AT_decl_file   : 2
    <d0>   DW_AT_decl_line   : 28
    <d1>   DW_AT_type        : <0x71>
    <d5>   DW_AT_data_member_location: 10
 <2><d6>: Abbrev Number: 0
 <1><d7>: Abbrev Number: 6 (DW_TAG_typedef)
    <d8>   DW_AT_name        : (indirect string, offset: 0x12b): kernel_dirent
    <dc>   DW_AT_decl_file   : 2
    <dd>   DW_AT_decl_line   : 29
    <de>   DW_AT_type        : <0x9e>
 <1><e2>: Abbrev Number: 9 (DW_TAG_variable)
    <e3>   DW_AT_name        : (indirect string, offset: 0x47): mpers_target_var
    <e7>   DW_AT_decl_file   : 3
    <e8>   DW_AT_decl_line   : 37
    <e9>   DW_AT_type        : <0xd7>
    <ed>   DW_AT_external    : 1
    <ed>   DW_AT_location    : 5 byte block: 3 4 0 0 0 	(DW_OP_addr: 4)
 <1><f3>: Abbrev Number: 0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20151214/65629716/attachment.bin>


More information about the Strace-devel mailing list