LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-31-2006, 08:22 PM   #1
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Rep: Reputation: 30
Alsa backtrace?


Every time I play an audio file using the current version of Alsa, I get a weird static sound at the end of the file. I also get this output in the terminal:

Code:
Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35e20)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35e40)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35e60)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35e80)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35ea0)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35ec0)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35ee0)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35f00)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35f20)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35f40)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35f60)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35f80)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35fa0)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35fc0)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10                                                                                     
35fe0)

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Backtrace:

Message from syslogd@lappy at Wed Feb  1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
I am running Slackware 10.2 with kernel 2.6.15.1.
 
Old 01-31-2006, 09:06 PM   #2
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
IIRC, there's a patch for Alsa with 2.6.15 floating about somewhere on the Alsa mailing lists (bad_page_state is a 2.6.15 problem, it also affects other things such as ATi's proprietary video drivers).

Apply this patch to Alsa and then rebuild.

Code:
--- alsa-driver-1.0.10/alsa-kernel/core/memalloc.c      2005-10-31 13:11:53.000000000 +0000
+++ /usr/src/linux-2.6.15/sound/core/memalloc.c 2006-01-03 03:21:10.000000000 +0000
@@ -197,6 +197,7 @@

        snd_assert(size > 0, return NULL);
        snd_assert(gfp_flags != 0, return NULL);
+       gfp_flags |= __GFP_COMP;        /* compound page lets parts be mapped */
        pg = get_order(size);
        if ((res = (void *) __get_free_pages(gfp_flags, pg)) != NULL) {
                mark_pages(virt_to_page(res), pg);
@@ -241,6 +242,7 @@
        snd_assert(dma != NULL, return NULL);
        pg = get_order(size);
        gfp_flags = GFP_KERNEL
+               | __GFP_COMP    /* compound page lets parts be mapped */
                | __GFP_NORETRY /* don't trigger OOM-killer */
                | __GFP_NOWARN; /* no stack trace print - this call is non-critical */
        res = dma_alloc_coherent(dev, PAGE_SIZE << pg, dma, gfp_flags);
 
Old 01-31-2006, 09:12 PM   #3
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Original Poster
Rep: Reputation: 30
This will be my first time to apply a patch to anything. How do I do it? Just open up that file and change the lines, or is there a special command?
 
Old 01-31-2006, 10:02 PM   #4
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally Posted by hosler
This will be my first time to apply a patch to anything. How do I do it? Just open up that file and change the lines, or is there a special command?
Extract the alsa driver tarball. Copy the above into a text file and name it whatever you want, like alsa.patch or something. Next make sure that the patch file is in the same root directory as the driver directory and type in the following from a terminal:

patch -p0 < alsa.patch

If you are in a directory where you have rw permissions (like your home directory) you won't need to be root to do this. After you apply the patch just cd over to the alsa driver directory and do the ./configure (with whatever "switches" you need) and make. After you run make, su to root and then do make install.

HTH,
MMYoung
 
Old 02-01-2006, 06:48 PM   #5
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Original Poster
Rep: Reputation: 30
How can I delete alsa, alsa libs, and all that alsa stuff? I want to do a fresh install of alsa when I do this.
 
Old 02-01-2006, 07:39 PM   #6
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally Posted by hosler
How can I delete alsa, alsa libs, and all that alsa stuff? I want to do a fresh install of alsa when I do this.
Just look for the packages you have installed:

dir /var/log/packages/alsa*

Then as root:

removepkg name-of-package

Just don't remove the alsa-driver-whatever_2.4.xx package. That's the drivers for the stock kernel. All you will need to remove will be the alsa-lib, alsa-utils and alsa-oss packages.

Also, my understanding of the 2.6.15 kernel and Slackware is you might have to replace some standard Slackware packages. IIRC, hotplug has been depreciated in favor of udev and it requires udev >= 071 (I think). You might want to check out THIS web site before you go any further. Personally I'm waiting before I upgrade till other folks sort through some of the initial problems before I switch to the 2.6.15 kernel branch.

HTH,
MMYoung
 
Old 02-01-2006, 07:52 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I'm running the 2.6.15, udev 64. alsa is running fine, everything is OK. 99% of the 'issues' with 2.6.15 are directly related to a sloppy compile.
 
Old 02-01-2006, 08:32 PM   #8
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Original Poster
Rep: Reputation: 30
Code:
root@lappy:/usr/src# patch -p0 < alsa.patch
patching file alsa-driver-1.0.10/alsa-kernel/core/memalloc.c
patch: **** malformed patch at line 10: */
 
Old 02-06-2006, 09:11 PM   #9
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Original Poster
Rep: Reputation: 30
Could anyone hook me up with the alsa patch for the 2.6.15.2 kernel? I googled all day and tried many patches, but non of them worked. All these kernel errors are getting really annoying.
 
Old 02-07-2006, 12:23 AM   #10
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Have you tried the latest 11rc3 release from ALSA. I noticed on the Changes page a few entries about the 2.6.15 kernel.

Later,
MMYoung
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a good backtrace in C/C++? Thinking Programming 1 12-06-2005 07:16 AM
kde crash backtrace help MRDucks Mandriva 1 11-14-2005 01:10 PM
"backtrace appears to be useless" ungua SUSE / openSUSE 2 11-13-2005 12:07 PM
Backtrace / stack dump for all Linux platforms GreyBeard Programming 7 07-21-2005 12:04 PM
How to interpret backtrace (gdb) jnusa Programming 1 12-06-2004 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration