dahdi kernel module built for wrong kernel version

Bug #790558 reported by Tom Bamford
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
dahdi-linux (Ubuntu)
Fix Released
High
Stefan Bader
Precise
Fix Released
Medium
Stefan Bader
Trusty
Fix Released
Medium
Stefan Bader
Utopic
Fix Released
Medium
Stefan Bader

Bug Description

Binary package hint: dahdi-linux

After the recent kernel update from 2.6.32-31-server to 2.6.32-32-server the dahdi kernel module fails to load. The module is inserted by the dahdi init script, which produces this output when run:

Unloading DAHDI hardware modules: done
Loading DAHDI hardware modules:
FATAL: Error inserting dahdi (/lib/modules/2.6.32-32-server/updates/dkms/dahdi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
   wcb4xxp: error xpp_usb: error dahdi: error dahdi_transcode: error

Please note that all the dahdi modules _were_ built successfully by DKMS on installation of the linux-image-2.6.32-32-server package, they just refuse to be inserted into the running kernel. I have attached a dmesg excerpt showing entries at the point I tried to load it.

# lsb-release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04

# apt-cache policy dahdi-linux
dahdi-linux:
  Installed: 1:2.2.1+dfsg-1ubuntu2
  Candidate: 1:2.2.1+dfsg-1ubuntu2

# apt-cache policy dahdi-dkms
dahdi-dkms:
  Installed: 1:2.2.1+dfsg-1ubuntu2
  Candidate: 1:2.2.1+dfsg-1ubuntu2

Revision history for this message
Tom Bamford (tombamford) wrote :
description: updated
Revision history for this message
Jan Groenewald (jan-aims) wrote :

This persists on kernel linux-image-2.6.32-33-server

0 root@whale:~#uname -a
Linux whale 2.6.32-33-server #70-Ubuntu SMP Thu Jul 7 22:28:30 UTC 2011 x86_64 GNU/Linux
0 root@whale:~#/etc/init.d/dahdi start
Loading DAHDI hardware modules:
FATAL: Error inserting dahdi (/lib/modules/2.6.32-33-server/updates/dkms/dahdi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
   wcb4xxp: error dahdi: error dahdi_dummy: error dahdi_transcode: error

Error: missing /dev/dahdi!
1 root@whale:~#

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thanks for the report, please attach /var/lib/dkms/dahdi/<dahdi-version>/build/make.log so we can analyze the problem.

Changed in dahdi-linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jan Groenewald (jan-aims) wrote : Re: [Bug 790558] Re: dahdi kernel module fails to load in 2.6.32-32-server

On Thu, Jul 21, 2011 at 03:49:43PM -0000, Andreas Moog wrote:
> Thanks for the report, please attach /var/lib/dkms/dahdi/<dahdi-
> version>/build/make.log so we can analyze the problem.
>
> ** Changed in: dahdi-linux (Ubuntu)
> Status: New => Incomplete

Attached for the latest kernel.

It was in /var/lib/dkms/dahdi/2.2.1+dfsg-1ubuntu2/2.6.32-33-server/x86_64/log

Also, it seems no different from the last successful build, except for versions:

0 root@whale:/var/lib/dkms/dahdi/2.2.1+dfsg-1ubuntu2#diff 2.6.32-31-server/x86_64/log/make.log 2.6.32-33-server/x86_64/log/make.log
1,2c1,2
< DKMS make.log for dahdi-2.2.1+dfsg-1ubuntu2 for kernel 2.6.32-31-server (x86_64)
< Fri May 20 11:57:20 SAST 2011
---
> DKMS make.log for dahdi-2.2.1+dfsg-1ubuntu2 for kernel 2.6.32-33-server (x86_64)
> Fri Jul 15 06:29:49 SAST 2011
1 root@whale:/var/lib/dkms/dahdi/2.2.1+dfsg-1ubuntu2#

Revision history for this message
Andreas Moog (ampelbein) wrote : Re: dahdi kernel module fails to load in 2.6.32-32-server

Hmm, can you please check that you have the kernel headers for the current running kernel installed? That looks like a mismatch between installed and running headers.

Revision history for this message
Jan Groenewald (jan-aims) wrote : Re: [Bug 790558] Re: dahdi kernel module fails to load in 2.6.32-32-server

Hi

On Thu, Jul 21, 2011 at 04:57:36PM -0000, Andreas Moog wrote:
> Hmm, can you please check that you have the kernel headers for the
> current running kernel installed? That looks like a mismatch between
> installed and running headers.

1 root@whale:/var/lib/dkms/dahdi/2.2.1+dfsg-1ubuntu2#dpkg -l|grep headers
ii linux-headers-2.6.32-31 2.6.32-31.61 Header files related to Linux kernel version
ii linux-headers-2.6.32-31-server 2.6.32-31.61 Linux kernel headers for version 2.6.32 on x
ii linux-headers-2.6.32-32 2.6.32-32.62 Header files related to Linux kernel version
ii linux-headers-2.6.32-32-server 2.6.32-32.62 Linux kernel headers for version 2.6.32 on x
ii linux-headers-2.6.32-33 2.6.32-33.70 Header files related to Linux kernel version
ii linux-headers-2.6.32-33-server 2.6.32-33.70 Linux kernel headers for version 2.6.32 on x
ii linux-headers-server 2.6.32.33.39 Linux kernel headers on Server Equipment.
0 root@whale:/var/lib/dkms/dahdi/2.2.1+dfsg-1ubuntu2#uname -a
Linux whale 2.6.32-33-server #70-Ubuntu SMP Thu Jul 7 22:28:30 UTC 2011 x86_64 GNU/Linux
0 root@whale:/var/lib/dkms/dahdi/2.2.1+dfsg-1ubuntu2#

Yes, it seems I do.

Revision history for this message
Andreas Moog (ampelbein) wrote : Re: dahdi kernel module fails to load in 2.6.32-32-server

Oh, I see now:

(from the make.log):

DKMS make.log for dahdi-2.2.1+dfsg-1ubuntu2 for kernel 2.6.32-33-server (x86_64)
[So dkms thinks it builds for 2.6.32-33-server]
make -C /lib/modules/2.6.32-31-server/build SUBDIRS=/var/lib/dkms/dahdi/2.2.1+dfsg-1ubuntu2/build/drivers/dahdi
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-31-server'

but it actually builds with the 2.6.32-31-server headers - resulting in the symbol mismatch.

If you remove all headers except for the currently running kernel you should get a working kernel module.

Changed in dahdi-linux (Ubuntu):
importance: Undecided → High
status: Incomplete → Triaged
summary: - dahdi kernel module fails to load in 2.6.32-32-server
+ dahdi kernel module built for wrong kernel version
Revision history for this message
Jan Groenewald (jan-aims) wrote : Re: [Bug 790558] Re: dahdi kernel module fails to load in 2.6.32-32-server
  • log Edit (8.9 KiB, text/plain; charset=iso-8859-1)

Hi

On Thu, Jul 21, 2011 at 05:22:53PM -0000, Andreas Moog wrote:
> Oh, I see now:
>
> (from the make.log):
>
> DKMS make.log for dahdi-2.2.1+dfsg-1ubuntu2 for kernel 2.6.32-33-server (x86_64)
> [So dkms thinks it builds for 2.6.32-33-server]
> make -C /lib/modules/2.6.32-31-server/build SUBDIRS=/var/lib/dkms/dahdi/2.2.1+dfsg-1ubuntu2/build/drivers/dahdi
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-31-server'
>
> but it actually builds with the 2.6.32-31-server headers - resulting in
> the symbol mismatch.
>
> If you remove all headers except for the currently running kernel you
> should get a working kernel module.
>
> ** Changed in: dahdi-linux (Ubuntu)
> Importance: Undecided => High
>
> ** Changed in: dahdi-linux (Ubuntu)
> Status: Incomplete => Triaged
>
> ** Summary changed:
>
> - dahdi kernel module fails to load in 2.6.32-32-server
> + dahdi kernel module built for wrong kernel version

Earlier headers removed:
1 root@whale:/var/lib/dkms/dahdi/2.2.1+dfsg-1ubuntu2/2.6.32-33-server/x86_64/log#aptitude reinstall dahdi-dkms &>/tmp/log
log attached (see error for echo.ko)
The dmesg symbol errors seem to be gone though.
The system is in production so I cannot test the PCI card now.

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thanks again, that error can safely be ignored, the card should work now.

Revision history for this message
Anthony LoRe (someitalian123) wrote :

I have the same problem with dkms for my wifi driver that I compiled from a tarball. It works when I install it but it stops working when I upgrade the kerenl. The logs show that it was built successfully but it used the wrong headers. I haven't tried removing my headers because I don't want to have to remove my headers every time the update-manager upgrades my kernel. The whole point of using dkms was to automate the processes. If I have to remove my headers everytime that doesn't automate the process.

Revision history for this message
Stefan Bader (smb) wrote :

SRU Justification:

Impact: The dkms.conf file shipped uses the KERNVER variable to pass in the kernel version to be build (and only to the first call to make, while the kernel version should be passed in for every make invocation) but the driver makefile uses KVERS for that. So build for a new kernel will always go wrong.

Fix: Change the dkms.conf to pass KVERS for every make call.

Testcase: Can be verified by running dkms manually to re-build the dahdi modules for a previous kernel version. Then checking the log file for the version number of the currently running kernel.

Revision history for this message
Stefan Bader (smb) wrote :

Currently fixed in the latest merge for Vivid. Need to pick the change to dkms.conf for previous releases.

Changed in dahdi-linux (Ubuntu):
status: Triaged → Fix Released
Stefan Bader (smb)
Changed in dahdi-linux (Ubuntu Precise):
importance: Undecided → High
status: New → Triaged
importance: High → Medium
Changed in dahdi-linux (Ubuntu Trusty):
importance: Undecided → Medium
status: New → Triaged
Changed in dahdi-linux (Ubuntu Utopic):
assignee: nobody → Stefan Bader (smb)
importance: Undecided → Medium
status: New → In Progress
Andy Whitcroft (apw)
Changed in dahdi-linux (Ubuntu Precise):
status: Triaged → In Progress
Changed in dahdi-linux (Ubuntu Trusty):
status: Triaged → In Progress
Changed in dahdi-linux (Ubuntu Precise):
assignee: nobody → Stefan Bader (smb)
Changed in dahdi-linux (Ubuntu Trusty):
assignee: nobody → Stefan Bader (smb)
Changed in dahdi-linux (Ubuntu):
assignee: nobody → Stefan Bader (smb)
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Tom, or anyone else affected,

Accepted dahdi-linux into utopic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/dahdi-linux/1:2.5.0.1+dfsg-1ubuntu4~14.10.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in dahdi-linux (Ubuntu Utopic):
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Tom, or anyone else affected,

Accepted dahdi-linux into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/dahdi-linux/1:2.5.0.1+dfsg-1ubuntu4~14.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in dahdi-linux (Ubuntu Trusty):
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Tom, or anyone else affected,

Accepted dahdi-linux into precise-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/dahdi-linux/1:2.5.0.1+dfsg-1ubuntu2.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in dahdi-linux (Ubuntu Precise):
status: In Progress → Fix Committed
Mathew Hodson (mhodson)
tags: added: verification-needed
Revision history for this message
Andy Whitcroft (apw) wrote :

Installed this version of dahdi onto a fresh Utopic (14.04) install, confirmed that it built correctly for the initial kernel and for the latest kernel, confirmed in each case the built version modprobed correctly.

tags: added: verification-done-utopic
Revision history for this message
Andy Whitcroft (apw) wrote :

(doh that should read 14.10 obviously)

Revision history for this message
Andy Whitcroft (apw) wrote :

Installed this version of dahdi onto a fresh Utopic (14.04) install, confirmed that it built correctly for the initial kernel and for the latest kernel, confirmed in each case the built version modprobed correctly.

tags: added: verification-done-trusty
Revision history for this message
Andy Whitcroft (apw) wrote :

(doh that should read Trusty obviously)

Revision history for this message
Andy Whitcroft (apw) wrote :

Installed this version of dahdi onto a fresh Precise (12.04) install, confirmed that it built correctly for the initial kernel and for the latest kernel, confirmed in each case the built version modprobed correctly.

tags: added: verification-done-preciser
tags: added: verification-done-precise
removed: verification-done-preciser
Revision history for this message
Andy Whitcroft (apw) wrote :

For clarity I have now installed these versions on Precise, Trusty, and Utopic, in each case the package built correctly for the current version and another non-current version. The package also modprobe'd correctly against each of those kernels without rebuilding further.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dahdi-linux - 1:2.5.0.1+dfsg-1ubuntu2.2

---------------
dahdi-linux (1:2.5.0.1+dfsg-1ubuntu2.2) precise; urgency=low

  * debian/dkms.conf.in: Expose the target kernel version in a variable that
    is actually heeded by the make file. And also pass it in on every
    invokation of make (LP: #790558).
  * debian/patches/kernel-v3-11-compat.patch: Refreshed patch because it
    broke building on 3.2 kernel which was missed because of the bug that
    caused the build to be always for the running kernel (LP: #1336253).

dahdi-linux (1:2.5.0.1+dfsg-1ubuntu2.1) precise; urgency=low

  * Cherry-picking compat patches to support kernel versions up to 3.13
    (LP: #1336253)
 -- Stefan Bader <email address hidden> Tue, 09 Dec 2014 18:47:52 +0100

Changed in dahdi-linux (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for dahdi-linux has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dahdi-linux - 1:2.5.0.1+dfsg-1ubuntu4~14.04.2

---------------
dahdi-linux (1:2.5.0.1+dfsg-1ubuntu4~14.04.2) trusty; urgency=low

  * debian/dkms.conf.in: Expose the target kernel version in a variable that
    is actually heeded by the make file. And also pass it in on every
    invokation of make (LP: #790558).
  * debian/patches/kernel-v3-11-compat.patch: Carried forward reworked
    version from Precise which unbreaks compiling on kernel <3.10
    (LP: #1336253).

dahdi-linux (1:2.5.0.1+dfsg-1ubuntu4~14.04.1) trusty; urgency=low

  * Cherry-picking compat patches to support kernel versions up to 3.16
    (LP: #1336253)
 -- Stefan Bader <email address hidden> Tue, 09 Dec 2014 18:45:24 +0100

Changed in dahdi-linux (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dahdi-linux - 1:2.5.0.1+dfsg-1ubuntu4~14.10.2

---------------
dahdi-linux (1:2.5.0.1+dfsg-1ubuntu4~14.10.2) utopic; urgency=low

  * debian/dkms.conf.in: Expose the target kernel version in a variable that
    is actually heeded by the make file. And also pass it in on every
    invokation of make (LP: #790558).
  * debian/patches/kernel-v3-11-compat.patch: Carried forward reworked
    version from Precise which unbreaks compiling on kernel <3.10
    (LP: #1336253).

dahdi-linux (1:2.5.0.1+dfsg-1ubuntu4~14.10.1) utopic; urgency=low

  * Cherry-picking compat patches to support kernel versions up to 3.16
    (LP: #1336253)
 -- Stefan Bader <email address hidden> Tue, 09 Dec 2014 18:31:31 +0100

Changed in dahdi-linux (Ubuntu Utopic):
status: Fix Committed → Fix Released
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.