Bug 29331 - bibtex2html and alt-ergo assert when doing fedabipkgdiff on ppc64le arch
Summary: bibtex2html and alt-ergo assert when doing fedabipkgdiff on ppc64le arch
Status: NEW
Alias: None
Product: libabigail
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Dodji Seketeli
URL:
Keywords:
Depends on:
Blocks: 27019 29610
  Show dependency treegraph
 
Reported: 2022-07-07 18:05 UTC by Ben Woodard
Modified: 2023-04-11 14:46 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Woodard 2022-07-07 18:05:47 UTC
$ fedabipkgdiff --self-compare -a --from fc36 bibtex2html
<snip>
Comparing the ABI of binaries between bibtex2html-1.99-10.fc36.ppc64le.rpm and bibtex2html-1.99-10.fc36.ppc64le.rpm:

abipkgdiff: ../../../libabigail/src/abg-reader.cc:3399: abigail::ir::string_elf_symbols_map_sptr abigail::xml_reader::build_elf_symbol_db(read_context&, xmlNodePtr, bool): Assertion `__abg_cond__' failed.

Comparing the ABI of binaries between bibtex2html-1.99-10.fc36.s390x.rpm and bibtex2html-1.99-10.fc36.s390x.rpm:

abipkgdiff: ../../../libabigail/src/abg-reader.cc:3399: abigail::ir::string_elf_symbols_map_sptr abigail::xml_reader::build_elf_symbol_db(read_context&, xmlNodePtr, bool): Assertion `__abg_cond__' failed.

Comparing the ABI of binaries between bibtex2html-1.99-10.fc36.x86_64.rpm and bibtex2html-1.99-10.fc36.x86_64.rpm:

==== SELF CHECK SUCCEEDED for 'bibtex2html' ====
==== SELF CHECK SUCCEEDED for 'bib2bib' ====

------------------
alt-ergo also has a problem with s390x

$ fedabipkgdiff --self-compare -a --from fc36 alt-ergo
<snip>
Comparing the ABI of binaries between alt-ergo-2.3.3-1.fc36.ppc64le.rpm and alt-ergo-2.3.3-1.fc36.ppc64le.rpm:

abipkgdiff: ../../../libabigail/src/abg-reader.cc:3399: abigail::ir::string_elf_symbols_map_sptr abigail::xml_reader::build_elf_symbol_db(read_context&, xmlNodePtr, bool): Assertion `__abg_cond__' failed.

<snip>
Comparing the ABI of binaries between alt-ergo-2.3.3-1.fc36.s390x.rpm and alt-ergo-2.3.3-1.fc36.s390x.rpm:

abipkgdiff: ../../../libabigail/src/abg-reader.cc:3399: abigail::ir::string_elf_symbols_map_sptr abigail::xml_reader::build_elf_symbol_db(read_context&, xmlNodePtr, bool): Assertion `__abg_cond__' failed.
Comment 1 Ben Woodard 2022-07-26 13:52:09 UTC
continues to reproduce with trunk as of df28c220976f41620b0bd7b22000815e11f66b75
Comment 2 Ben Woodard 2022-12-16 19:28:15 UTC
This continues to reproduce with the latest trunk 1f51b9e8 but the line number has changed

abipkgdiff: ../../../libabigail/src/abg-reader.cc:3249: abigail::ir::string_elf_symbols_map_sptr abigail::abixml::build_elf_symbol_db(reader&, xmlNodePtr, bool): Assertion `__abg_cond__' failed.

abipkgdiff --self-check  --d1 /home/ben/.cache/fedabipkgdiff/downloads/alt-ergo-gui-debuginfo-2.3.3-3.fc37.ppc64le.rpm /home/ben/.cache/fedabipkgdiff/downloads/alt-ergo-gui-2.3.3-3.fc37.ppc64le.rpm
abipkgdiff: ../../../libabigail/src/abg-reader.cc:3249: abigail::ir::string_elf_symbols_map_sptr abigail::abixml::build_elf_symbol_db(reader&, xmlNodePtr, bool): Assertion `__abg_cond__' failed.
Aborted (core dumped)

Thread 4 "abipkgdiff" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff6b6e6c0 (LWP 1003778)]
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
Downloading 0.00 MB source file /usr/src/debug/glibc-2.36-8.fc37.x86_64/nptl/pthread_kill.c
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;                                                          
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff74afee3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007ffff745faa6 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff74497fc in __GI_abort () at abort.c:79
#4  0x00007ffff744971b in __assert_fail_base (fmt=0x7ffff75be9e0 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7ffff7e971a3 "__abg_cond__", file=0x7ffff7ea7c20 "../../../libabigail/src/abg-reader.cc", line=3249, function=<optimized out>) at assert.c:92
#5  0x00007ffff7458656 in __GI___assert_fail (assertion=0x7ffff7e971a3 "__abg_cond__", file=0x7ffff7ea7c20 "../../../libabigail/src/abg-reader.cc", line=3249, function=0x7ffff7ea8200 "abigail::ir::string_elf_symbols_map_sptr abigail::abixml::build_elf_symbol_db(reader&, xmlNodePtr, bool)") at assert.c:101
#6  0x00007ffff7dfa434 in abigail::abixml::build_elf_symbol_db (rdr=..., node=<optimized out>, function_syms=<optimized out>) at ../../../libabigail/src/abg-reader.cc:3249
#7  0x00007ffff7dfaba5 in abigail::abixml::read_symbol_db_from_input (var_symdb=Python Exception <class 'gdb.error'>: value has been optimized out
<synthetic pointer>, fn_symdb=Python Exception <class 'gdb.error'>: value has been optimized out
<synthetic pointer>, rdr=...) at ../../../libabigail/src/abg-reader.cc:1841
#8  abigail::abixml::reader::read_corpus (this=0x7fffe926bed0, status=@0x7ffff6b6da80: abigail::fe_iface::STATUS_UNKNOWN) at ../../../libabigail/src/abg-reader.cc:1213
#9  0x0000000000414c1f in compare_to_self (detailed_error_status=<synthetic pointer>, ctxt=<error reading variable: access outside bounds of object referenced via synthetic pointer>, diff=<error reading variable: access outside bounds of object referenced via synthetic pointer>, env=..., opts=..., debug_dir=..., elf=...) at ../../../libabigail/tools/abipkgdiff.cc:1718
#10 self_compare_task::perform (this=0x43a740) at ../../../libabigail/tools/abipkgdiff.cc:2164
#11 0x00007ffff7e5eded in abigail::workers::worker::wait_to_execute_a_task (p=0x439f50) at ../../../libabigail/src/abg-workers.cc:400
#12 0x00007ffff74ae14d in start_thread (arg=<optimized out>) at pthread_create.c:442
#13 0x00007ffff752fa00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Comment 3 Ben Woodard 2023-03-23 23:02:58 UTC
continues to reproduce with the current trunk as of:

commit a8a4ca8862959e9fede1b4878469681b8fadeb74 (HEAD -> master, origin/master,
origin/HEAD)
Author: Dodji Seketeli <dodji@redhat.com>
Date:   Wed Mar 22 15:42:43 2023 +0100

    abipkgdiff: Fix a typo

            * tools/abipkgdiff.cc (compare_to_self): Fix a typo.

    Signed-off-by: Dodji Seketeli <dodji@redhat.com>