Bug 1906010 - /usr/bin/udevadm: undefined symbol: _set_put_strdup During Update systemd-udev-246.7-2.fc33.x86_64
Summary: /usr/bin/udevadm: undefined symbol: _set_put_strdup During Update systemd-ude...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-09 14:20 UTC by Garry T. Williams
Modified: 2022-05-25 14:18 UTC (History)
13 users (show)

Fixed In Version: systemd-251.1-2.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-25 14:18:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Requested log (64.31 KB, text/plain)
2021-02-02 19:03 UTC, Garry T. Williams
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2071069 1 None None None 2022-05-25 12:42:34 UTC

Description Garry T. Williams 2020-12-09 14:20:15 UTC
Description of problem:
During update of systemd-udev-246.7-2.fc33.x86_64, dnf emitted the following messages:

/usr/bin/udevadm: symbol lookup error: /usr/bin/udevadm: undefined symbol: _set_put_strdup, version SD_SHARED
/usr/bin/udevadm: symbol lookup error: /usr/bin/udevadm: undefined symbol: _set_put_strdup, version SD_SHARED


Version-Release number of selected component (if applicable):
246.7-2.fc33.x86_64

How reproducible: unknown


Steps to Reproduce:
1. dnf upgrade
2.
3.

Actual results: Error messages


Expected results: Quiet


Additional info:

Comment 1 Zbigniew Jędrzejewski-Szmek 2020-12-16 14:39:36 UTC
Hmm, looks like systemd-libs was upgraded before systemd-udev. Maybe we need to add a Require(pre) dependency?

Comment 2 Zbigniew Jędrzejewski-Szmek 2021-02-02 14:31:50 UTC
Please attach the full log from the transaction: call 'dnf history list' to find the right transaction, and then 'dnf history info NNN | tee logfile' and attach 'logfile' here.

Comment 3 Garry T. Williams 2021-02-02 19:03:25 UTC
Created attachment 1754491 [details]
Requested log

Comment 4 Zbigniew Jędrzejewski-Szmek 2021-03-05 18:16:44 UTC
Hmm, this is very strange. It seems that after the installation, systemd-udev and systemd have mismatched
versions. But in the log, systemd-udev-246.7-2.fc33.x86_64 and systemd-246.7-2.fc33.x86_64 are installed.

https://github.com/systemd/systemd/issues/18822 was similar. But there the installation crashed, so I assumed
that the corruption was caused by that.

When I create a local installation with systemd-246.7-2.fc33.x86_64, udevadm runs without issue.
Hmm. Does the issue still occur if you call udevadm from the command line?

Comment 5 Zbigniew Jędrzejewski-Szmek 2021-03-05 18:38:13 UTC
When I install systemd-246.6-3.fc33.x86_64, and then upgrade, udevadm also seems to work as expected:
  Running scriptlet: systemd-udev-246.7-2.fc33.x86_64                                                                           5/10 
  Upgrading        : systemd-udev-246.7-2.fc33.x86_64                                                                           5/10 
  Running scriptlet: systemd-udev-246.7-2.fc33.x86_64                                                                           5/10 
  Running scriptlet: systemd-udev-246.6-3.fc33.x86_64                                                                           6/10 
  Cleanup          : systemd-udev-246.6-3.fc33.x86_64                                                                           6/10 
  Running scriptlet: systemd-udev-246.6-3.fc33.x86_64                                                                           6/10 
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

  Running scriptlet: systemd-246.6-3.fc33.x86_64                                                                                7/10 

I really don't understand why you can get linkage errors.

Comment 6 Anita Zhang 2021-10-21 22:03:00 UTC
I was looking into a similar error on some hosts when trying to run udevadm:
```
Error running /sbin/udevadm info --export-db: /sbin/udevadm: symbol lookup error: /sbin/udevadm: undefined symbol: fchmod_and_chown, version SD_SHARED
```

For us, based on the timing of the command, it seems to be due to running udevadm in the middle of the RPM transaction. This showed up when running udevadm between the `systemctl daemon-reexec` call and `systemctl restart systemd-udevd` calls in the scriptlets. Not sure if there's a way around this except to not not run udevadm during the systemd RPM transaction.

Comment 7 Zbigniew Jędrzejewski-Szmek 2021-10-23 11:16:05 UTC
There is a solution that we could do. I have been thinking whether it's worth it based on the
single report, but since this seems to occur more often, then it seems reasonable to do.

Basically, libsystemd-shared-nnn.so would be packaged as libsystemd-shared-%{release}-%{version}.so,
which would make it possible to execute any binary in scriptlets during package upgrades.
It would also have the advantage that the upgrade would be slightly more resilient to
a failure midway through the transaction, e.g. in case of a hard reboot.

I'll try to look into this when I have some time, but if somebody would contribute a patch
that'd be great too ;)

Comment 8 Ben Cotton 2021-11-04 13:38:56 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Ben Cotton 2021-11-04 14:08:31 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Ben Cotton 2021-11-04 15:05:31 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 11 Zbigniew Jędrzejewski-Szmek 2021-12-14 17:35:17 UTC
https://github.com/systemd/systemd/pull/21774

Comment 12 Fedora Update System 2022-03-29 21:03:35 UTC
FEDORA-2022-3d496adfa0 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3d496adfa0

Comment 13 Fedora Update System 2022-03-29 21:07:29 UTC
FEDORA-2022-3d496adfa0 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2022-04-04 10:11:54 UTC
FEDORA-2022-547b0bc17c has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-547b0bc17c

Comment 15 Fedora Update System 2022-04-04 10:15:07 UTC
FEDORA-2022-547b0bc17c has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2022-04-12 20:39:10 UTC
FEDORA-2022-6b91a6b9db has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-6b91a6b9db

Comment 17 Fedora Update System 2022-04-12 20:40:31 UTC
FEDORA-2022-6b91a6b9db has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Zbigniew Jędrzejewski-Szmek 2022-05-25 12:44:46 UTC
This was reverted because of selinux issues. They should be fixed now, so let's try again.

Comment 19 Zbigniew Jędrzejewski-Szmek 2022-05-25 14:18:09 UTC
Let's mark this as fixed. I hope it doesn't blow up this time.


Note You need to log in before you can comment on or make changes to this bug.