Bug 113106 - mpg321 crashes alsa
Summary: mpg321 crashes alsa
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Beta 3
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Takashi Iwai
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-25 18:13 UTC by Andreas Kleen
Modified: 2005-08-26 11:20 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch to fix zero-div in pcm compat layer (964 bytes, patch)
2005-08-25 18:36 UTC, Takashi Iwai
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kleen 2005-08-25 18:13:18 UTC
Got this while trying to play an mp3 with the 9.3 mpg321 on the  
HEAD kernel from yesterday. Even before that realplayer was silent 
when it should have played something. 
 
divide error: 0000 [1]  
CPU 0  
Modules linked in: snd_pcm_oss snd_mixer_oss deflate zlib_deflate twofish 
serpent aes_x86_64 blowfish sha256 sha1 crypto_null xfrm_user ipcomp esp4 ah4 
af_key pppoe pppox cpufreq_userspace powernow_k8 freq_table thermal processor 
fan af_packet button battery nfsd exportfs ac ppp_generic slhc edd joydev sg 
st sr_mod snd_via82xx gameport snd_ac97_codec snd_ac97_bus snd_pcm snd_timer 
ipv6 snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore 
ipt_TCPMSS 8139too mii tulip ipt_MASQUERADE iptable_nat ipt_state 
ip_conntrack_ftp ip_conntrack_irc ip_conntrack ipt_LOG ipt_REJECT 
iptable_filter ip_tables video1394 ohci1394 raw1394 ieee1394 capability ext3 
jbd parport_pc lp parport dm_mod reiserfs ide_cd cdrom ide_disk via82cxxx 
ide_core sata_via libata sd_mod scsi_mod 
Pid: 15600, comm: mpg321 Tainted: G   M   
2.6.13-rc6-git13-20050822220010-default 
RIP: 0010:[<ffffffff8826c3ad>] 
<ffffffff8826c3ad>{:snd_pcm:snd_pcm_ioctl_compat+1501} 
RSP: 0000:ffff8100451a5e18  EFLAGS: 00010046 
RAX: 0000000000000000 RBX: ffff81002627c000 RCX: 0000000000000000 
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8100749e1828 
RBP: 00000000ffffa5c0 R08: ffff8100451a4000 R09: 0000000000000000 
R10: 0000000000000000 R11: 0000000000000000 R12: ffff810020336000 
R13: 0000000000000000 R14: ffff8100749e1828 R15: 00000000ffffa604 
FS:  00002aaaaaeecdc0(0000) GS:ffffffff80512800(0063) knlGS:000000005570d6c0 
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033 
CR2: 000000005566d3ff CR3: 00000000135e4000 CR4: 00000000000006e0 
Process mpg321 (pid: 15600, threadinfo ffff8100451a4000, task 
ffff81006a30b5b0) 
Stack: ffff81001c25c948 00000000ffffa608 0000000000000001 0000000000000000  
       0000000000000000 0000000000000001 ffffffff80497f80 ffff810047066468  
       ffff810070a558c0 0000000000000292  
Call Trace:<ffffffff8016c5ae>{__do_mmap_pgoff+1870} 
<ffffffff801a3851>{compat_sys_ioctl+257} 
       <ffffffff80123023>{sys32_mmap2+195} <ffffffff80122061>{ia32_sysret+0} 
        
 
Code: 48 f7 f1 48 89 d7 fb 48 8d 4d 04 44 89 da e8 50 81 fb f7 85  
RIP <ffffffff8826c3ad>{:snd_pcm:snd_pcm_ioctl_compat+1501} RSP 
<ffff8100451a5e18>
Comment 1 Andreas Kleen 2005-08-25 18:14:40 UTC
P.S.: It was a 32bit mpg321 on x86-64 as you can see - so it looks like  
the compat layer is broken. 
 
Comment 2 Takashi Iwai 2005-08-25 18:35:27 UTC
Does the patch below fix the problem?
Comment 3 Takashi Iwai 2005-08-25 18:36:31 UTC
Created attachment 47655 [details]
Patch to fix zero-div in pcm compat layer
Comment 4 Takashi Iwai 2005-08-26 10:20:28 UTC
I tested on my test machine and worked.
Comment 5 Andreas Kleen 2005-08-26 11:20:32 UTC
Yes it works for me too again.