Messages in this thread | | | Date | 29 Nov 98 22:28:52 EST | From | Adam Kramer <> | Subject | Bug 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] | |