Skip to content
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

"corrupted size vs. prev_size" when using dnf provides #1733

Open
RocketRide9 opened this issue Sep 26, 2024 · 7 comments
Open

"corrupted size vs. prev_size" when using dnf provides #1733

RocketRide9 opened this issue Sep 26, 2024 · 7 comments
Labels
bug Originally reported in Jira or Bugzilla

Comments

@RocketRide9
Copy link

 ~ dnf --version          
dnf5 version 5.2.6.2
dnf5 plugin API version 2.0
libdnf5 version 5.2.6.2
libdnf5 plugin API version 2.0

Loaded dnf5 plugins:
  name: builddep
  version: 1.0.0
  API version: 2.0

  name: changelog
  version: 1.0.0
  API version: 2.0

  name: config-manager
  version: 0.1.0
  API version: 2.0

  name: copr
  version: 0.1.0
  API version: 2.0

  name: needs_restarting
  version: 1.0.0
  API version: 2.0

  name: repoclosure
  version: 1.0.0
  API version: 2.0
 ~ dnf provides libasan   
Updating and loading repositories:
corrupted size vs. prev_size
[1]    6457 IOT instruction (core dumped)  dnf provides libasan

ready to provide more info if needed

@m-blaha
Copy link
Member

m-blaha commented Sep 27, 2024

Hm, this indicates some memory issue. Are you able to provide the core dump?

@RocketRide9
Copy link
Author

RocketRide9 commented Sep 27, 2024

GnomeAbrt says that it's https://retrace.fedoraproject.org/faf/reports/1030226/.
from coredumpctl:

(gdb) bt 
#0  0x00007f883b080724 in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007f883b027d0e in raise () from /lib64/libc.so.6
#2  0x00007f883b00f942 in abort () from /lib64/libc.so.6
#3  0x00007f883b0107a7 in __libc_message_impl.cold () from /lib64/libc.so.6
#4  0x00007f883b08a8a5 in malloc_printerr () from /lib64/libc.so.6
#5  0x00007f883b08b346 in unlink_chunk.isra () from /lib64/libc.so.6
#6  0x00007f883b08b4d3 in malloc_consolidate () from /lib64/libc.so.6
#7  0x00007f883b08dca0 in _int_malloc () from /lib64/libc.so.6
#8  0x00007f883b08ef34 in malloc () from /lib64/libc.so.6
#9  0x00007f883abafaf0 in solv_realloc () from /lib64/libsolv.so.1
#10 0x00007f883abb0967 in repodata_insert_keyid () from /lib64/libsolv.so.1
#11 0x00007f883abb331a in repodata_set_void () from /lib64/libsolv.so.1
#12 0x00007f883b736c86 in libdnf5::repo::RepoSack::Impl::fix_group_missing_xml() () from /lib64/libdnf5.so.2
#13 0x00007f883b7d0119 in libdnf5::repo::RepoSack::Impl::update_and_load_repos(libdnf5::repo::RepoQuery&, bool) [clone .constprop.0] ()
   from /lib64/libdnf5.so.2
#14 0x00007f883b733c24 in libdnf5::repo::RepoSack::load_repos() () from /lib64/libdnf5.so.2
#15 0x0000555be3aff86b in dnf5::Context::Impl::load_repos(bool) ()
#16 0x0000555be3a750ac in main ()

@ppisar
Copy link
Contributor

ppisar commented Sep 27, 2024

Probably related Fedora 41 bug report https://bugzilla.redhat.com/show_bug.cgi?id=2314576.

@ppisar ppisar added the bug Originally reported in Jira or Bugzilla label Sep 27, 2024
@m-blaha
Copy link
Member

m-blaha commented Sep 27, 2024

Thank you, I'll take a look.

@m-blaha
Copy link
Member

m-blaha commented Sep 30, 2024

@RocketRide9 Can you consistently reproduce the issue, or did it only occur once?

@RocketRide9
Copy link
Author

I can't reproduce it right now. It was consistently occurring for some time after I upgraded to F41, until maybe an automatic upgrade by GNOME Software. Sorry I don't remember if it was an upgrade. Upgrades by GNOME Software aren't shown in dnf history list and pkcon get-transactions doesn't work now. I also left some messages in this bug report: https://bugzilla.redhat.com/show_bug.cgi?id=2314576 .

@m-blaha
Copy link
Member

m-blaha commented Oct 1, 2024

Thank you.
I've discovered some memory issues in the part of the code where this problem occurred. While we don't have a reproducer yet, I can't be completely certain, but it's likely that these issues were the root cause of this bug as well.

See #1743 and related https://bugzilla.redhat.com/show_bug.cgi?id=2315789

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Originally reported in Jira or Bugzilla
Projects
Status: Backlog
Development

No branches or pull requests

3 participants