lkml.org 
[lkml]   [1998]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectBug in OSS/free in kernel 2.1.130
I'm sorry if this has been posted before, but I am pretty sure I discovered a
bug in the sound code of the 2.1.130 devel kernel. I am not sure if this
affects earlier kernels, I crashed my computer enough just trying to track
down what call causes it. In the 15-20 times my computer crashed, I only saw
one kernel panic screen (kernel dereferenced null pointer), the other times it
just locked completely or rebooted. I have an ESS1869 based sound card. This
program does not crash the computer when using commercial OSS (demo), only
OSS/free. Since the program is so short, I am including it in the message.

#include <stdio.h>
#include <netinet/in.h>
#include <sys/soundcard.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <errno.h>

void sound_play() {
int size = -1073742872;
unsigned char *buf;
int audio_fd;
if( (audio_fd = open("/dev/dsp", O_WRONLY, 0)) == -1) {
perror("/dev/dsp");
exit(1);
}
buf = NULL;
write(audio_fd, buf, size);
}
main( int argc, char **argv )
{
sound_play();
}

If you reply to this message, please CC me the reply.

sorry if i'm totally off,
Adam Kramer
ajkramera@usa.net

____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.126 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site