public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/28013] New: abidiff assertion failure
@ 2021-06-25 23:20 gprocida at google dot com
  2021-06-26  5:46 ` [Bug default/28013] " gprocida at google dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gprocida at google dot com @ 2021-06-25 23:20 UTC (permalink / raw)
  To: libabigail

https://sourceware.org/bugzilla/show_bug.cgi?id=28013

            Bug ID: 28013
           Summary: abidiff assertion failure
           Product: libabigail
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: gprocida at google dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

This small case triggers an assertion failure. If assertions are disabled the
output looks sane.

abidiff: ../../src/abg-ir.cc:24767: size_t
abigail::ir::hash_as_canonical_type_or_constant(const abigail::ir::type_base*):
Assertion `__abg_cond__' failed.
Aborted

==> fn_variadic_c.0.abi <==
<abi-corpus version='2.0' path='fn_variadic_c.0.o'
architecture='elf-amd-x86_64'>
  <elf-function-symbols>
    <elf-symbol name='foo1' type='func-type' binding='global-binding'
visibility='default-visibility' is-defined='yes'/>
    <elf-symbol name='foo2' type='func-type' binding='global-binding'
visibility='default-visibility' is-defined='yes'/>
    <elf-symbol name='foo3' type='func-type' binding='global-binding'
visibility='default-visibility' is-defined='yes'/>
  </elf-function-symbols>
  <abi-instr address-size='64' path='fn_variadic_c.0.c' language='LANG_C99'>
    <type-decl name='int' size-in-bits='32' id='95e97e5e'/>
    <type-decl name='variadic parameter type' id='2c1145c5'/>
    <function-decl name='foo3' mangled-name='foo3' visibility='default'
binding='global' size-in-bits='64' elf-symbol-id='foo3'>
      <parameter type-id='95e97e5e' name='x'/>
      <parameter type-id='95e97e5e' name='y'/>
      <parameter is-variadic='yes'/>
      <return type-id='95e97e5e'/>
    </function-decl>
    <function-decl name='foo2' mangled-name='foo2' visibility='default'
binding='global' size-in-bits='64' elf-symbol-id='foo2'>
      <parameter type-id='95e97e5e' name='x'/>
      <parameter type-id='95e97e5e' name='y'/>
      <return type-id='95e97e5e'/>
    </function-decl>
    <function-decl name='foo1' mangled-name='foo1' visibility='default'
binding='global' size-in-bits='64' elf-symbol-id='foo1'>
      <parameter type-id='95e97e5e' name='x'/>
      <parameter type-id='95e97e5e' name='y'/>
      <return type-id='95e97e5e'/>
    </function-decl>
  </abi-instr>
</abi-corpus>

==> fn_variadic_c.1.abi <==
<abi-corpus version='2.0' path='fn_variadic_c.1.o'
architecture='elf-amd-x86_64'>
  <elf-function-symbols>
    <elf-symbol name='foo1' type='func-type' binding='global-binding'
visibility='default-visibility' is-defined='yes'/>
    <elf-symbol name='foo2' type='func-type' binding='global-binding'
visibility='default-visibility' is-defined='yes'/>
    <elf-symbol name='foo3' type='func-type' binding='global-binding'
visibility='default-visibility' is-defined='yes'/>
  </elf-function-symbols>
  <abi-instr address-size='64' path='fn_variadic_c.1.c' language='LANG_C99'>
    <type-decl name='int' size-in-bits='32' id='95e97e5e'/>
    <type-decl name='variadic parameter type' id='2c1145c5'/>
    <function-decl name='foo3' mangled-name='foo3' visibility='default'
binding='global' size-in-bits='64' elf-symbol-id='foo3'>
      <parameter type-id='95e97e5e' name='x'/>
      <parameter type-id='95e97e5e' name='y'/>
      <return type-id='95e97e5e'/>
    </function-decl>
    <function-decl name='foo2' mangled-name='foo2' visibility='default'
binding='global' size-in-bits='64' elf-symbol-id='foo2'>
      <parameter type-id='95e97e5e' name='x'/>
      <parameter is-variadic='yes'/>
      <return type-id='95e97e5e'/>
    </function-decl>
    <function-decl name='foo1' mangled-name='foo1' visibility='default'
binding='global' size-in-bits='64' elf-symbol-id='foo1'>
      <parameter type-id='95e97e5e' name='x'/>
      <parameter type-id='95e97e5e' name='y'/>
      <parameter is-variadic='yes'/>
      <return type-id='95e97e5e'/>
    </function-decl>
  </abi-instr>
</abi-corpus>

It's also interesting that the XML contains a variadic parameter type but this
isn't used in the parameter lists.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-07 11:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 23:20 [Bug default/28013] New: abidiff assertion failure gprocida at google dot com
2021-06-26  5:46 ` [Bug default/28013] " gprocida at google dot com
2021-07-14  8:52 ` gprocida at google dot com
2021-08-12 22:14 ` gprocida at google dot com
2022-01-14 16:10 ` gprocida at google dot com
2022-03-07  9:42 ` dodji at redhat dot com
2022-03-07 11:07 ` dodji at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).