Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
seagullOffline
Post subject: dist-upgrade after install from 2013-1 ends in segfault  PostPosted: 05.06.2014, 17:34



Joined: 2010-09-11
Posts: 38

Status: Offline
      Code:

apt-get dist-upgrade ...

 xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident
  xserver-xorg-video-vesa xserver-xorg-video-vmware xterm xutils yakuake
  zenity zenity-common zip zlib1g
968 aktualisiert, 298 neu installiert, 23 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 741 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 430 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Speicherzugriffsfehler

dmesg ends in:
      Code:
[ 1374.807506] apt-get[4232]: segfault at 7fff23a0bfd0 ip 00007f66970f00a5 sp 00007fff23a0bfd0 error 6 in libc-2.19.so[7f6697076000+19f000]
[ 2163.922994] apt-get[4311]: segfault at 7fffcffc9ff8 ip 00007f3b13cfc774 sp 00007fffcffc9ff0 error 6 in libapt-pkg.so.4.12.0[7f3b13c6b000+14c000]


      Code:
Host/Kernel/OS  "sid4" running Linux 3.14-5.slh.4-aptosid-amd64 x86_64 UEFI [ aptosid 2013-01 Ἑσπερίδες - kde-full - (201305050307) ]
CPU Info        4x Intel Core i5-4440 @ clocked at [ 854.437 MHz ]
Videocard       Intel Haswell Integrated Graphics Controller     [  ]
Processes 173 | Uptime 44min | Memory 888.8/3832.1MB | HDD Size 128GB (45%used) | Client Shell | Infobash v3.46
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: dist-upgrade after install from 2013-1 ends in segfault  PostPosted: 05.06.2014, 18:30



Joined: 2010-08-25
Posts: 724

Status: Offline
That is #748355, which has much farther reaching implications.

A workaround for that would be:
      Code:
apt-get update
apt-get install sysvinit
apt-get install --purge systemd-sysv libpam-systemd
apt-get dist-upgrade
 
 View user's profile Send private message  
Reply with quote Back to top
seagullOffline
Post subject: RE: dist-upgrade after install from 2013-1 ends in segfault  PostPosted: 06.06.2014, 00:01



Joined: 2010-09-11
Posts: 38

Status: Offline
Now the boot procs are broken.
I give up for this time, anyway: Thanks for reading and help!
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject: Re: RE: dist-upgrade after install from 2013-1 ends in segfa  PostPosted: 06.06.2014, 11:48



Joined: 2010-09-12
Posts: 312

Status: Offline
      slh wrote:
That is #748355, which has much farther reaching implications.

A workaround for that would be:
      Code:
apt-get update
apt-get install sysvinit
apt-get install --purge systemd-sysv libpam-systemd
apt-get dist-upgrade


Does this mean we should hold on dist-upgrade's?
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Re: RE: dist-upgrade after install from 2013-1 ends in s  PostPosted: 06.06.2014, 17:20



Joined: 2010-08-25
Posts: 724

Status: Offline
No, not at all.

Please follow the referenced bug log for the details, but the problem here is common to all of Debian and wheezy --> jessie or unstable dist-upgrades. It applies to basically every dist-upgrade spanning from around xmas to may, when systemd-sysv effectively became essential without the default being toggled formally; if you ever upgraded between xmas and may, you won't ever notice that problem (but it applies to upgrading fresh installs, of course).

While apt segfaulting is the visible part of it (right now, that will be rectified by the next apt version - however it still won't work seemlessly with a fixed apt, as dpkg will then righfully bail out instead), the actual problem underneath is buggy packaging (dependency crafting) of the sysvinit --> systemd transition. Therefore you first need to bump your installation to a "safe" intermediate version of sysvinit (>= 2.88dsf-44), which makes the "sysvinit" package an empty shell (transitional package) moving its actual contens into a new "sysvinit-core" package, before you can actually continue the dist-upgrade. As this seriously affects Debian's own wheezy --> jessie+ upgrade path, it will have to be fixed (and a fix + formally toggling the default to systemd-sysv is long overdue already).

So all in all, dist-upgrading is working and if you follow the steps depicted above, it's supposed to work out fine (I successfully tested that a few times over the last two weeks), with no harm done if you miss it at first (but you won't be able to escape this trap without explicitly installing the newer, intermediate sysvinit version first). For several reasons, especially with the future upgrade path in mind, afterwards switching to systemd-sysv has become effectively mandatory (at least for any kind of desktop'ish systems) by now. There is no problem with systemd here, which is supposed to be a mostly invisible migration, it's just a broken dependency set preventing a smooth migration for now.
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject: RE: Re: RE: dist-upgrade after install from 2013-1 ends in s  PostPosted: 06.06.2014, 19:21



Joined: 2010-09-12
Posts: 312

Status: Offline
Thanks (again) for the informative response, slh.
 
 View user's profile Send private message  
Reply with quote Back to top
seagullOffline
Post subject: Re: RE: dist-upgrade after install from 2013-1 ends in segfa  PostPosted: 09.06.2014, 20:17



Joined: 2010-09-11
Posts: 38

Status: Offline
      slh wrote:
That is #748355, which has much farther reaching implications.

A workaround for that would be:
      Code:
apt-get update
apt-get install sysvinit
apt-get install --purge systemd-sysv libpam-systemd
apt-get dist-upgrade



In a 2nd (virgin) try i followed the workaround and succeeded. Are there any post-workaround advices ?
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Re: RE: dist-upgrade after install from 2013-1 ends in s  PostPosted: 10.06.2014, 20:02



Joined: 2010-08-25
Posts: 724

Status: Offline
No, it's just this hurdle - everything else should be as normal.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio