dpkg seg-fault with fai-nfsroot when used in a Xen DomU

Bug #159536 reported by Castang Jerome
10
Affects Status Importance Assigned to Milestone
fai (Ubuntu)
Won't Fix
Medium
Unassigned
xen-3.1 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: fai-nfsroot

Hi,

I am using Ubuntu Gutsy.
When running "fai-setup -v", I get this error:

//****************************************************************
Setting up fai-nfsroot (3.2.1-0ubuntu2~ppa2~gutsy1) ...
Segmentation fault
dpkg: error processing fai-nfsroot (--configure):
 subprocess post-installation script returned error exit status 139
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 fai-nfsroot
E: Sub-process /usr/bin/dpkg returned an error code (1)
Aborting
Use of uninitialized value in string eq at /usr/sbin/dpkg-divert line 224.
Use of uninitialized value in length at /usr/sbin/dpkg-divert line 224.
Use of uninitialized value in length at /usr/sbin/dpkg-divert line 224.
Use of uninitialized value in length at /usr/sbin/dpkg-divert line 224.
No diversion `any diversion of /sbin/discover-modprobe', none removed
//****************************************************************

Seems dpkg is getting bad with this package and stop on "Segmentation Fault".

Revision history for this message
Reinhard Tartler (siretart) wrote : Re: [Bug 159536] dpkg seg-fault with fai-nfsroot

> //****************************************************************
> Setting up fai-nfsroot (3.2.1-0ubuntu2~ppa2~gutsy1) ...
> Segmentation fault
> dpkg: error processing fai-nfsroot (--configure):
> subprocess post-installation script returned error exit status 139

I think this rather indicates problems on your system. Do you experience
other random segfaults?

  status incomplete

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

Changed in fai:
status: New → Incomplete
Revision history for this message
Castang Jerome (castang) wrote :

Reinhard Tartler a écrit :
>> //****************************************************************
>> Setting up fai-nfsroot (3.2.1-0ubuntu2~ppa2~gutsy1) ...
>> Segmentation fault
>> dpkg: error processing fai-nfsroot (--configure):
>> subprocess post-installation script returned error exit status 139
>>
>
> I think this rather indicates problems on your system. Do you experience
> other random segfaults?
>
> status incomplete
>
>
No, there is no other segfaults problems.
I am running 32bits version of ubtunu gutsy on a Intel Core 2 Duo
(64bits compatible).
Do you think I should try 64 bits version of ubuntu gutsy ?

Revision history for this message
Achim Bohnet (allee) wrote : Re: dpkg seg-fault with fai-nfsroot

Hi Jerome,
is this a fresh FAI install or did you upgrade from earlier versions?

Can you try to chroot to the fai NFS root directory
(the default is /srv/fai/nfsroot/live/filesystem.dir) and run

   apt-get install --reinstall install fai-nfsroot

If this does not give any hint what's going wrong, try in fai NFS chroot

   edit /var/lib/dpkg/info/fai-nfsroot.postinst # add 'set -xv' as the second line
   dpkg-reconfigure fai-nfsroot

Achim

Revision history for this message
Reinhard Tartler (siretart) wrote :

I just installed a clean minimal gutsy via netinst, and first created an nfsroot for feisty, then for gutsy. Both went without problems.

perhaps you can elaborate more about your system? how did you install it?

perhaps you can reproduce the error in a virtualbox or vmware image?

Revision history for this message
Alvin Cura (alvinc) wrote :

I just reproduced it.

--- BEGIN CUT-N-PASTE

root@mpk-fai32:/etc/fai# fai-setup -v
Using configuration files from /etc/fai
Creating FAI nfsroot in /srv/fai/nfsroot/live/filesystem.dir.
By default it needs more than 330 MBytes disk space.
This may take a long time.
Creating base system using debootstrap version 1.0.3build1
Calling debootstrap gutsy /srv/fai/nfsroot/live/filesystem.dir http://archive.ubuntu.com/ubuntu
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://archive.ubuntu.com/ubuntu...
[...]
Setting up fai-client (3.2.1-0ubuntu2~ppa2~gutsy1) ...
Setting up fai-nfsroot (3.2.1-0ubuntu2~ppa2~gutsy1) ...
Segmentation fault
dpkg: error processing fai-nfsroot (--configure):
 subprocess post-installation script returned error exit status 139
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 fai-nfsroot
E: Sub-process /usr/bin/dpkg returned an error code (1)
Aborting
Use of uninitialized value in string eq at /usr/sbin/dpkg-divert line 224.
Use of uninitialized value in length at /usr/sbin/dpkg-divert line 224.
Use of uninitialized value in length at /usr/sbin/dpkg-divert line 224.
Use of uninitialized value in length at /usr/sbin/dpkg-divert line 224.
No diversion `any diversion of /sbin/discover-modprobe', none removed

--- END CUT-N-PASTE

root@mpk-fai32:/etc/fai# cat /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
deb http://ppa.launchpad.net/fai/ubuntu gutsy main restricted universe multiverse
root@mpk-fai32:/etc/fai# dpkg-query -l | grep fai
ii fai-client 3.2.1-0ubuntu2~ppa2~gutsy1 Fully Automatic Installation client package
ii fai-doc 3.2.1-0ubuntu2~ppa2~gutsy1 Documentation for FAI
ii fai-quickstart 3.2.1-0ubuntu2~ppa2~gutsy1 Fully Automatic Installation quickstart pack
ii fai-server 3.2.1-0ubuntu2~ppa2~gutsy1 Fully Automatic Installation server package
root@mpk-fai32:/etc/fai# cat /etc/issue
Ubuntu 7.10 \n \l

It's a xendomu

Revision history for this message
Castang Jerome (castang) wrote : Re: [Bug 159536] Re: dpkg seg-fault with fai-nfsroot

Alvin Cura a écrit :
> I just reproduced it.
>
> --- BEGIN CUT-N-PASTE
>
> root@mpk-fai32:/etc/fai# fai-setup -v
> Using configuration files from /etc/fai
> Creating FAI nfsroot in /srv/fai/nfsroot/live/filesystem.dir.
> By default it needs more than 330 MBytes disk space.
> This may take a long time.
> Creating base system using debootstrap version 1.0.3build1
> Calling debootstrap gutsy /srv/fai/nfsroot/live/filesystem.dir http://archive.ubuntu.com/ubuntu
> I: Retrieving Release
> I: Retrieving Packages
> I: Validating Packages
> I: Resolving dependencies of required packages...
> I: Resolving dependencies of base packages...
> I: Checking component main on http://archive.ubuntu.com/ubuntu...
> [...]
> Setting up fai-client (3.2.1-0ubuntu2~ppa2~gutsy1) ...
> Setting up fai-nfsroot (3.2.1-0ubuntu2~ppa2~gutsy1) ...
> Segmentation fault
> dpkg: error processing fai-nfsroot (--configure):
> subprocess post-installation script returned error exit status 139
> Processing triggers for libc6 ...
> ldconfig deferred processing now taking place
> Errors were encountered while processing:
> fai-nfsroot
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> Aborting
> Use of uninitialized value in string eq at /usr/sbin/dpkg-divert line 224.
> Use of uninitialized value in length at /usr/sbin/dpkg-divert line 224.
> Use of uninitialized value in length at /usr/sbin/dpkg-divert line 224.
> Use of uninitialized value in length at /usr/sbin/dpkg-divert line 224.
> No diversion `any diversion of /sbin/discover-modprobe', none removed
>
> --- END CUT-N-PASTE
>
>
> root@mpk-fai32:/etc/fai# cat /etc/apt/sources.list
> deb http://us.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
> deb http://ppa.launchpad.net/fai/ubuntu gutsy main restricted universe multiverse
> root@mpk-fai32:/etc/fai# dpkg-query -l | grep fai
> ii fai-client 3.2.1-0ubuntu2~ppa2~gutsy1 Fully Automatic Installation client package
> ii fai-doc 3.2.1-0ubuntu2~ppa2~gutsy1 Documentation for FAI
> ii fai-quickstart 3.2.1-0ubuntu2~ppa2~gutsy1 Fully Automatic Installation quickstart pack
> ii fai-server 3.2.1-0ubuntu2~ppa2~gutsy1 Fully Automatic Installation server package
> root@mpk-fai32:/etc/fai# cat /etc/issue
> Ubuntu 7.10 \n \l
>
> It's a xendomu
>
>
Hi,

I am in the same situation.
I reproduce the same error on a xen domU.
Dom0 is a CentOS 5 (last updates).

Which OS do you use as Dom0 ?

--
Jerome Castang

Mail: <email address hidden>
Tel: +33(0)5 40 00 36 92

Revision history for this message
Alvin Cura (alvinc) wrote :

Gutsy (Ubuntu 7.10). Host is a Dell 2970.

On Nov 6, 2007 1:03 AM, Castang Jerome <email address hidden> wrote:
> Alvin Cura a écrit :
>

> I am in the same situation.
> I reproduce the same error on a xen domU.
> Dom0 is a CentOS 5 (last updates).
>
> Which OS do you use as Dom0 ?
>

Revision history for this message
Alvin Cura (alvinc) wrote : Re: dpkg seg-fault with fai-nfsroot
Download full text (4.1 KiB)

Further analysis seems to point at a xen-only problem.

I have installed Gutsy Server from the CD image on a VMware VM and installed the ppa FAI with no errors:

// ***** //

root@mpk-install3:~# fai-setup -v
Using configuration files from /etc/fai
Creating FAI nfsroot in /srv/fai/nfsroot/live/filesystem.dir.
By default it needs more than 330 MBytes disk space.
This may take a long time.
Creating base system using debootstrap version 1.0.3build1
Calling debootstrap gutsy /srv/fai/nfsroot/live/filesystem.dir http://archive.ub
untu.com/ubuntu
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://archive.ubuntu.com/ubuntu...
[...]
Setting up fai-client (3.2.1-0ubuntu2~ppa2~gutsy1) ...
Setting up fai-nfsroot (3.2.1-0ubuntu2~ppa2~gutsy1) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libssl0.9.8
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2825kB of archives.
After unpacking 0B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libssl0.9.8
Authentication warning overridden.
Get:1 http://security.ubuntu.com gutsy-security/main libssl0.9.8 0.9.8e-5ubuntu3
.1 [2825kB]
                            kB 1%]
29% [1 libssl0.9.8 838077/2825kB 24%]
54% [1 li
76% [1 libssl0.9.8 2157209/2825kB 68%] 174kB/s 5s
96% [1 libssl0.9.8 2734957/2825kB 96%] 174kB/s 1s
Fetched 2825kB in 10s (262kB/s)
Preconfiguring packages ...
(Reading database ... 10429 files and directories currently installed.)
Preparing to replace libssl0.9.8 0.9.8e-5ubuntu3 (using .../libssl0.9.8_0.9.8e-5
ubuntu3.1_i386.deb) ...
Unpacking replacement libssl0.9.8 ...
Setting up libssl0.9.8 (0.9.8e-5ubuntu3.1) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
install_packages: reading config files from directory /etc/fai
Adding additional packages to /srv/fai/nfsroot/live/filesystem.dir:
[...]
install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir dpkg -C
install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean
`/etc/fai/apt' -> `/srv/fai/nfsroot/live/filesystem.dir/etc/fai/apt'
`/etc/fai/apt/sources.list' -> `/srv/fai/nfsroot/live/filesystem.dir/etc/fai/apt/sources.list'
`/etc/fai/fai.conf' -> `/srv/fai/nfsroot/live/filesystem.dir/etc/fai/fai.conf'
`/etc/fai/make-fai-nfsroot.conf' -> `/srv/fai/nfsroot/live/filesystem.dir/etc/fai/make-fai-nfsroot.conf'
`/etc/fai/menu.lst' -> `/srv/fai/nfsroot/live/filesystem.dir/etc/fai/menu.lst'
`/etc/fai/NFSROOT' -> `/srv/fai/nfsroot/live/filesystem.dir/etc/fai/NFSROOT'
Shadow passwords are now on.
`/srv/fai/nfsroot/live/filesystem.dir/boot/vmlinuz-2.6.22-14-generic' -> `/srv/tftp/fai/vmlinuz-2.6.22-14-generic'
`/srv/fai/nfsro...

Read more...

Alvin Cura (alvinc)
Changed in fai:
assignee: nobody → fai
Revision history for this message
Alvin Cura (alvinc) wrote :

Jerome,

What are you running for xendom0? I am beginning to suspect running gutsy on a feisty xendom0 is part of the issue.

Thanks,
- alvinc

Revision history for this message
Castang Jerome (castang) wrote : Re: [Bug 159536] Re: dpkg seg-fault with fai-nfsroot

Alvin Cura a écrit :
> Jerome,
>
> What are you running for xendom0? I am beginning to suspect running
> gutsy on a feisty xendom0 is part of the issue.
>
> Thanks,
> - alvinc
>
>
I am running a CentOS 5.0 (with last updates).
Looking a this problems shows that there is one another.
Sometimes get this message:
"/dev/mem: Bad addresses"
(or something like that).

Maybe a problem directly linked to Xen.
Some mem addresses given by the hypervisor may be corrupted ?

--
Jerome Castang

Mail: <email address hidden>
Tel: +33(0)5 40 00 36 92

Revision history for this message
Alvin Cura (alvinc) wrote :

I'll look into it and let you know what I find.

On Nov 7, 2007 12:16 AM, Castang Jerome <email address hidden> wrote:
> Alvin Cura a écrit :
> > Jerome,
> >
> > What are you running for xendom0? I am beginning to suspect running
> > gutsy on a feisty xendom0 is part of the issue.
> >
> > Thanks,
> > - alvinc
> >
> >
> I am running a CentOS 5.0 (with last updates).
> Looking a this problems shows that there is one another.
> Sometimes get this message:
> "/dev/mem: Bad addresses"
> (or something like that).
>
> Maybe a problem directly linked to Xen.
> Some mem addresses given by the hypervisor may be corrupted ?
>
>
> --
> Jerome Castang
>
> Mail: <email address hidden>
> Tel: +33(0)5 40 00 36 92
>
> --
>
> dpkg seg-fault with fai-nfsroot
> https://bugs.launchpad.net/bugs/159536
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Reinhard Tartler (siretart) wrote : Re: dpkg seg-fault with fai-nfsroot

we had a local LUG event where I wanted to give a workshop about FAI, were we were using Xen as well. Now I remember that I experienced a segfault pretty similar to this one (if not the same).

TBH, I cannot imagine what the fai package could do wrong here and therefore would suspect Xen.

Revision history for this message
Alvin Cura (alvinc) wrote :

Interestingly, here is the result of "fai-setup -v" on a Feisty xendomu.

It tried to continue past the error, and aborted in a different place than Gutsy:

Setting up file (4.19-1ubuntu2) ...
Setting up cfengine2 (2.1.20-1) ...
Making a key pair for cfengine, please wait, this could take a minute...
Writing private key to /var/lib/cfengine2/ppkeys/localhost.priv
Writing public key to /var/lib/cfengine2/ppkeys/localhost.pub
Segmentation fault
dpkg: error processing cfengine2 (--configure):
 subprocess post-installation script returned error exit status 139
Setting up libapt-pkg-perl (0.1.20ubuntu4) ...
dpkg: dependency problems prevent configuration of fai-client:
 fai-client depends on cfengine2 | cfengine; however:
  Package cfengine2 is not configured yet.
  Package cfengine is not installed.
dpkg: error processing fai-client (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fai-nfsroot:
 fai-nfsroot depends on fai-client; however:
  Package fai-client is not configured yet.
dpkg: error processing fai-nfsroot (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cfengine2
 fai-client
 fai-nfsroot
E: Sub-process /usr/bin/dpkg returned an error code (1)
Aborting
No diversion `any diversion of /sbin/discover-modprobe', none removed

Revision history for this message
Reinhard Tartler (siretart) wrote :

I'm inclined to reject the bugtask for fai. It is true that fai is affected by this, however it seems that the hypervisor is buggy here, so there is not that much we can do about this from the fai side

Changed in fai:
assignee: fai → nobody
Revision history for this message
Henning Sprang (henning) wrote : Re: [Bug 159536] Re: dpkg seg-fault with fai-nfsroot when used in a Xen DomU

On Thu, Mar 27, 2008 at 10:42 AM, Reinhard Tartler <email address hidden> wrote:
> I'm inclined to reject the bugtask for fai. It is true that fai is
> affected by this, however it seems that the hypervisor is buggy here, so
> there is not that much we can do about this from the fai side

It could be that Ubuntu's domU support is somehow broken and we might
be able to fix this.
But it _coud_ also be that some things in the nfsroot creation of the
fai package patched for ubuntu does something wrong. (e.g. on Debian
dom0 and Debian domU I use it a lot and never saw this error occur)

I didn't try Ubuntu as a FAI (or Xen) server for a long time, but at a
first glance, I find the usage of libc6 strange - it should be
libc6-xen. We might be able to work around that!

Do we try to install the ubuntu-base package, which pulls in libc6?
Is that a known good practice to do on xen domU's?

Henning

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The version of Ubuntu your using is in End of Life status. More information may be found at: https://wiki.ubuntu.com/Releases As well, fai (ubuntu) is updated and issue you reported should be reproducible with the live environment of the Desktop CD development release - Maverick Meerkat. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find more about the development release at http://www.ubuntu.com/testing/. Please repost a detailed error report and update the bug status. Thanks again and we appreciate your help.

Changed in xen-3.1 (Ubuntu):
status: New → Incomplete
Revision history for this message
Stephan Rügamer (sruegamer) wrote :

I don't like to have this bug report left as incomplete and rott somewhere in the deep dark space of LP trashbin ;)

If someone could test this with latest fai on ubuntu maverick or ubuntu lucid, that would be a plus.

I*m, on the other hand, will raise this issue with upstream

Changed in fai (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Triaged
Changed in xen-3.1 (Ubuntu):
status: Incomplete → Opinion
Revision history for this message
Stephan Rügamer (sruegamer) wrote :

No Response from any of the involved parties..

Setting to incomplete

Regards,

\sh

Changed in fai (Ubuntu):
status: Triaged → Incomplete
Changed in xen-3.1 (Ubuntu):
status: Opinion → Incomplete
Changed in fai (Ubuntu):
status: Incomplete → Won't Fix
Changed in xen-3.1 (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.