Skip to contentSkip to conversation

ALSA driver 1.10.0 and Linux 2.4.32 - a few problems

DISCUSSION Chris Rankin 3 participants 8 messages Nov 21, 2005 – Nov 28, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I tried building the ALSA 1.0.10 driver against 2.4.32 over the weekend. Unfortunately the build broke, saying that it couldn't find the <linux/bitmask.h> header. I'm guessing that this header file is specific to Linux 2.6.

Also, I noticed that the 1.0.10 version of alsa-lib is prone to seg-fault if the "audio" group is not defined in /etc/group. (I was using the ALSA sound driver in Wine 0.9.1 at the time, via winecfg.)

Cheers,
Chris

___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#1 lore raw

At Mon, 21 Nov 2005 13:01:44 +0000 (GMT),

Quoted 6 lines · Chris Rankin

Hi,

I tried building the ALSA 1.0.10 driver against 2.4.32 over the weekend. Unfortunately the build broke, saying that it couldn't find the <linux/bitmask.h> header. I'm guessing that this header file is specific to Linux 2.6.

Do you mean CVS version?

Quoted 3 lines

Also, I noticed that the 1.0.10 version of alsa-lib is prone to seg-fault if the "audio" group is not defined in /etc/group. (I was using the ALSA sound driver in Wine 0.9.1 at the time, via winecfg.)

Backtrace please.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#2 lore raw
Quoted 4 lines · --- Takashi Iwai
Quoted 2 lines

saying that it couldn't find the <linux/bitmask.h> header. I'm guessing that this header file is specific to Linux 2.6.

Do you mean CVS version?

Yes.

Quoted 6 lines
Quoted 4 lines

Also, I noticed that the 1.0.10 version of alsa-lib is prone to seg-fault if the "audio" group is
not defined in /etc/group. (I was using the ALSA sound driver in Wine 0.9.1 at the time, via winecfg.)

Backtrace please.

$ winecfg
ALSA lib pcm_dmix.c:1101:(_snd_pcm_dmix_open) The field ipc_gid must be a valid group (create
group audio)
wine: Unhandled page fault on read access to 0x00000008 at address 0x7e529c1f (thread 0009),
starting debugger...

The wine code doesn't know anything about "dmix", so I'm assuming that this _snd_pcm_dmix_open() function is called internally within the library, and the caller isn't handling the error code.

Cheers,
Chris

___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#3 lore raw

At Mon, 21 Nov 2005 19:10:31 +0000 (GMT),

Quoted 8 lines · Chris Rankin
Quoted 4 lines · --- Takashi Iwai
Quoted 2 lines

saying that it couldn't find the <linux/bitmask.h> header. I'm guessing that this header file is specific to Linux 2.6.

Do you mean CVS version?

Yes.

Then it was already fixed (thanks to Clemens).

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines

Also, I noticed that the 1.0.10 version of alsa-lib is prone to seg-fault if the "audio" group is
not defined in /etc/group. (I was using the ALSA sound driver in Wine 0.9.1 at the time, via winecfg.)

Backtrace please.

Quoted 8 lines
$ winecfg
ALSA lib pcm_dmix.c:1101:(_snd_pcm_dmix_open) The field ipc_gid must be a valid group (create
group audio)
wine: Unhandled page fault on read access to 0x00000008 at address 0x7e529c1f (thread 0009),
starting debugger...

The wine code doesn't know anything about "dmix", so I'm assuming that this _snd_pcm_dmix_open() function is called internally within the library, and the caller isn't handling the error code.

... or wine doesn't handle the error case correctly.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#4 lore raw

Re: ALSA driver 1.0.10 and Linux 2.4.32 - a few problems

Hi,

I'm still having trouble compiling ALSA CVS against Linux 2.4.32. This time, it's complaining that it doesn't understand __GFP_COMP in alsa-kernel/core/memalloc.c.

Cheers,
Chris

___________________________________________________________
How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#5 lore raw

Re: ALSA driver 1.0.10 and Linux 2.4.32 - a few problems

At Sat, 26 Nov 2005 17:44:11 +0000 (GMT),

Quoted 5 lines · Chris Rankin

Hi,

I'm still having trouble compiling ALSA CVS against Linux 2.4.32. This time, it's complaining that it doesn't understand __GFP_COMP in alsa-kernel/core/memalloc.c.

Fixed now.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#6 lore raw
In reply to Chris Rankin
Quoted 8 lines · Chris Rankin
$ winecfg
ALSA lib pcm_dmix.c:1101:(_snd_pcm_dmix_open) The field ipc_gid must be a valid group (create
group audio)
wine: Unhandled page fault on read access to 0x00000008 at address 0x7e529c1f (thread 0009),
starting debugger...

The wine code doesn't know anything about "dmix", so I'm assuming that this _snd_pcm_dmix_open() function is called internally within the library, and the caller isn't handling the error code.

This is not a backtrace. Run winecfg under gdb and when it segfaults do "thread apply all bt".

Lee

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

#7 lore raw
Quoted 2 lines · --- Lee Revell

This is not a backtrace. Run winecfg under gdb and when it segfaults do "thread apply all bt".

No it isn't. But wine is more complicated than the average application. winecfg is actually a shell script that invokes a shared object winecfg.exe.so via the wine executable:

$ gdb wine
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library
"/lib/libthread_db.so.1".

(gdb) run winecfg.exe
Starting program: /usr/local/bin/wine winecfg.exe [Thread debugging using libthread_db enabled] [New Thread -1209985792 (LWP 12422)]
[New Thread -1209988176 (LWP 12425)]
[Thread -1209988176 (LWP 12425) exited]
Cannot find user-level thread for LWP 12422: generic error (gdb)

Cheers,
Chris

___________________________________________________________
Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click