-
Notifications
You must be signed in to change notification settings - Fork 817
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
rpmdb ‑‑initdb Database problem on Fedora because of a problem in libdb. Can’t install or remove any packages. #2852
Comments
@ytrezq are you using the WSL-Distribution-Switcher? |
@DarthSpock I tried with and without. Though I handed up in handling things manually since Fedora 28 isn’t an available version. But I’m not having this problem if I import the rootfs on a regular Linux partition. |
I would follow this issue for Fedora. I was only curious to know if Fedora magically showed up in the Store randomly without warning. Now I know that's not the case. I recommend sticking with Ubuntu and OpenSuse for now. @therealkenc may be able to help you with this issue. |
@DarthSpock I reported it to Fedora bugzilla and they closed the issue explaining it was a Microsoft problem because it works fine with a native Linux kernel. It seems to be definitely a system call implementation problem. I need to use latest packages only available on Fedora like ɴaᴄl toolchains. |
Yes it's a MS problem but MS isn't likely to troubleshoot unimplemented syscalls for a distro that isn't officially supported yet. For all we know those syscalls will be available when Fedora is officially available from the Store (doubtful but hopeful at same time). As I said, follow the issue I linked above to track Fedora's availability. Until then, you're in a as-is status. If you can't wait for availability in the Store, run it in a Docker container or a VM (though apparently there are issues in this department on Insider's as well). |
@DarthSpock but if you download |
I don't have Fedora installed and that won't change until it's available in the Store. I also don't have native Fedora as an available OS either, just CentOS and RHEL and I'm not able to download that file from work. Also, i'm not member of WSL, just another user like you, while I might be able to repro some things using Ubuntu, this isn't something I can repro. |
That's a link to a tiny
|
@therealkenc except that’s it’s not a png file but a libdb5.3 database for rpm. The problem is GitHub (unlike sourceforge) is only able to serve attachments on issues if they are images mime types. |
Then your absent repro steps are also missing a
It just seeks off into space here:
This is with |
@therealkenc : but aren’t the database files I uploaded a reproducer ? |
Yep your database file is corrupt. All of the WSL system calls execute flawlessly and confirm it is corrupt. Steps to create the corrupt database file is the repro. Actual reproduction steps here aren't going to be straightforward because you are not on a supported platform. Posting a set of repro steps from clean Ubuntu that reproduces a corrupt database file because of a WSL syscall misbehaviour would be possible in theory. But unless you are feeling highly motivated, you are better off waiting for #2584 to flip. Then the first repro step will be 1. Install Fedora from the Store. |
@therealkenc : On Linux,
doesn’t hang the program. The system call which hangs libdb (making it only replying to sigkill) is the same that create such corrupt database. |
On Ubuntu:
I assume those are the steps you are talking about. I have to assume this, of course, because you still have not posted your repro steps. This behaves the same on Real Linux™ and WSL for me. |
@therealkenc : Ok, please retry db_dump with libdb5.3.28 and Windows® build 17074.1002. Nothing is printed in that case on the screen. |
Nothing is printed in that case on the screen doing what??? Those three steps I posted? My three repro steps were performed with Speculating, please try running the three steps again. Cut and paste this time. But the time-sink value on this one is depreciating rapidly. |
@therealkenc : I forgot something important : the stall only occurs if |
@therealkenc : did you retry to run the repro as root ? |
What repro. Feb 4 I gave the following repro steps.
So, yes. |
There was never a repro here so I am putting this issue out of its misery and duping #902. |
@therealkenc : Sorry, I forgot to reply. Here’s the complete database to be used with the rpm command : /var/lib/rpm.tar.xz. Please re‑open : this seems to has nothing to do with duplicate ! |
I freshly installed Fedora 28 on build 17063.1000, and I can’t install any packages.
rpmdb ‑‑rebuilddb
exit itself but fails to perform any actions despite having removed all__db.00X
files in /var/lib/rpm.rpm ‑‑initdb
segfault when launched as root, but it seems the syscall crashing it also hang ɢᴅʙ. So I don’t know what’s the system call triggering the problem. Before segfaulting, it creates/var/lib/rpm/__db.001
, which makes runningrpm ‑‑initdb
hang in a manner it is immune to all syscall, and launching ɢᴅʙ on it’s ᴘɪᴅ makes ɢᴅʙ halting in the same way.Though it really seems to have to be with libdb5.3.28, because running
chdir /var/lib/rpm;db_dump /var/lib/__db.001
as root trigger the same problem (I know it’s contents are invalid but it should at least respond to SIGTERM). You can download__db.001
.Here’s the ltrace :
I can’t provide the strace because
strace
fails like ɢᴅʙ before printing post process start up system calls.The text was updated successfully, but these errors were encountered: