Mailinglist Archive: opensuse (933 mails)

< Previous Next >
Re: [opensuse] /sbin/yast2: line 421: 17466 Segmentation fault $ybindir/y2base $module after updates?
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Tue, 8 Jun 2010 22:02:24 +0200 (CEST)
  • Message-id: <alpine.LSU.2.00.1006082152520.5477@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Monday, 2010-06-07 at 02:07 -0500, David C. Rankin wrote:

On 06/06/2010 05:54 PM, Carlos E. R. wrote:
Did you reboot?


Err, um... No? Reboot?

Damn -- it worked! Feels familiar for some reason.... Ah, it must just be lack
of sleep :p

Thanks Carlos.

Welcome!

As to the reason, you/we might have known if you had run that script I posted.

The thing is, in Linux, when you erase a file that is in use (opened) the filesystem doesn't actually deletes the file. The directory entry disapears, but not the inode and the data. The program that has that file opened still uses the old (deleted!) version.

The moment the deleted file is closed, it does in fact get erased, the inode is cleared. A new run of the prgram gets the new file now.

Thus, when you do rpm updates, the daemons that were not restarted, the programs not restarted, keep using the old versions of the libraries - whereas you may have other programs running the new version --> conflicts, bugs, weirdos, etc.

So, the script (or the line "lsof -n | grep -E 'RPMDELETE|;|path inode='") detects those files, and you can manually restart those programs. Or, "simply" reboot ;-)

The situation is easier on 11.2 and later, because running "zypper ps" does that kind of detection, except that it detects all deleted files, not only those updated by rpm. Unfortunately, the script does no longer work, there is no detectable string I know about.

(The script is not mine. I simply modified the one that was posted on the security list time ago).

- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkwOodYACgkQtTMYHG2NR9V28QCdG5ijB17KSDf2h9I5kJYcnqWl
AWAAn3neABcyzoWnL+fs5NwD9RbHXADR
=SCRl
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups