LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 12-24-2015, 01:13 PM   #1
PatrickMay16
Member
 
Registered: Apr 2005
Location: London, England.
Distribution: Debian oldstable
Posts: 56

Rep: Reputation: 53
Would you run this script to see if can crash your system?


Hello everyone,

I recently wrote a script which is basically just a string of 'aplay' commands with different frequency parameters.
The interesting thing is that when I run this script on my IBM laptop, it crashes with kernel panics. The laptop is normally reliable so I wonder if I've discovered a kernel/sound driver bug.

If you don't mind, would you help me by running the script and telling me if it crashes your system or not? Here it is:
http://dusthillguy.ddns.net/folder/f...archiv.tar.bz2

Just extract it into a folder and run "output.txt.sh".
 
Old 12-24-2015, 01:37 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,637

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by PatrickMay16 View Post
Hello everyone,

I recently wrote a script which is basically just a string of 'aplay' commands with different frequency parameters.
The interesting thing is that when I run this script on my IBM laptop, it crashes with kernel panics. The laptop is normally reliable so I wonder if I've discovered a kernel/sound driver bug.

If you don't mind, would you help me by running the script and telling me if it crashes your system or not? Here it is:
http://dusthillguy.ddns.net/folder/f...archiv.tar.bz2

Just extract it into a folder and run "output.txt.sh".
would be even more helpful if you gave DETAILS about your system. Saying an "IBM Laptop" tells us nothing, and you don't say what version/distro of Linux you're using, with what kernel. Can't even SPECULATE as to why your system crashes.
 
Old 12-24-2015, 01:40 PM   #3
PatrickMay16
Member
 
Registered: Apr 2005
Location: London, England.
Distribution: Debian oldstable
Posts: 56

Original Poster
Rep: Reputation: 53
But I'm not asking for help with my laptop, I'm asking people to run the script and report if it works on their system.
 
Old 12-24-2015, 01:45 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by PatrickMay16 View Post
But I'm not asking for help with my laptop, I'm asking people to run the script and report if it works on their system.
Oh, so you're asking people to run a potentially dangerous script for your benefit?
I may fire up a VM or two to test the script as I like that sort of thing but, well...
 
Old 12-24-2015, 01:48 PM   #5
PatrickMay16
Member
 
Registered: Apr 2005
Location: London, England.
Distribution: Debian oldstable
Posts: 56

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by 273 View Post
Oh, so you're asking people to run a potentially dangerous script for your benefit?
I may fire up a VM or two to test the script as I like that sort of thing but, well...
Yes. But don't worry, the script doesn't contain any malicious code. As you can see in the "output.txt.sh" file, it doesn't really do anything other than call 'aplay' and 'sleep'.
 
Old 12-24-2015, 02:27 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
malicious vs. crash

Quote:
Originally Posted by PatrickMay16 View Post
Yes. But don't worry, the script doesn't contain any malicious code.
The subject of this post says otherwise: "...crash your system?".
Sup with dat?

Last edited by Habitual; 12-24-2015 at 02:28 PM.
 
Old 12-24-2015, 02:48 PM   #7
PatrickMay16
Member
 
Registered: Apr 2005
Location: London, England.
Distribution: Debian oldstable
Posts: 56

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by Habitual View Post
The subject of this post says otherwise: "...crash your system?".
Sup with dat?
Oh, well, I meant that the worst that could happen is that your system would crash, but it's unlikely.
 
Old 12-24-2015, 02:51 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i'm not surprised it crashes your machine.
you're starting more than 1000 aplay processes there.
not sure if this is a good way of making music - why don't you try some tracker program instead?
 
Old 12-24-2015, 03:07 PM   #9
PatrickMay16
Member
 
Registered: Apr 2005
Location: London, England.
Distribution: Debian oldstable
Posts: 56

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by ondoho View Post
i'm not surprised it crashes your machine.
you're starting more than 1000 aplay processes there.
not sure if this is a good way of making music - why don't you try some tracker program instead?
I don't think it should cause any system to crash - Linux is supposed to be solid and reliable, right? There may be more than 1000 aplay commands in the script, but while the script is running there's only a maximum of about 10 active at one time.

Yeah, it's not really a practical way of making music. I usually use modplug tracker, I just wrote this script as an experiment.
 
Old 12-24-2015, 03:17 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,637

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by PatrickMay16 View Post
But I'm not asking for help with my laptop, I'm asking people to run the script and report if it works on their system.
Your original post says you think you found a kernel/sound bug....yet you don't think that actually telling us anything about your kernel or hardware is relevant to that? There are MANY scripts that are poorly written that will crash a system...yet have nothing to do with kernel bugs. The way you find these things out, is to provide information, to see if the problem follows a kernel/module...that's 'debugging'.
 
Old 12-24-2015, 03:22 PM   #11
PatrickMay16
Member
 
Registered: Apr 2005
Location: London, England.
Distribution: Debian oldstable
Posts: 56

Original Poster
Rep: Reputation: 53
TB0ne: Do you want me to post those details? Yes/no?
 
Old 12-24-2015, 03:32 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,637

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by PatrickMay16 View Post
TB0ne: Do you want me to post those details? Yes/no?
That depends on what you're actually after.

If you want someone to help you confirm the possible presence of a kernel/sound bug, because you want to help contribute to fixing that bug, then absolutely. If I have a matching system, I'd certainly help you, and run that script to provide debugging info to assist.

If you aren't after that, and just want to see if it's your script...then there's not much point, since all the evidence you posted indicates that it IS your script, and there probably isn't a kernel/sound bug.

Which are you after?
 
Old 12-24-2015, 03:43 PM   #13
PatrickMay16
Member
 
Registered: Apr 2005
Location: London, England.
Distribution: Debian oldstable
Posts: 56

Original Poster
Rep: Reputation: 53
I'll just be completely straight with everyone now, I just wanted to get people to run the script and hear the short tunes I wrote for it.
It really does crash my laptop, and I do suspect it's a sound driver bug, but it's not really the reason I posted it.

You probably don't have a matching system, I doubt anyone here does. It's an IBM thinkpad T22, pretty old and obsolete. The sound driver is snd-cs46xx.
The reason I think it could be a sound driver bug is because
* I tried it on several different systems, none of them crash except this laptop
* I've stress tested the laptop in different ways and it's completely reliable, except for when I run this script
* it seems like a specific thing that crashes it - running a few aplay commands at one time, each playing a sound at a different sample rate
* it should probably not be this easy to get linux to crash with kernel panics

have a great christmas.
 
Old 12-24-2015, 03:47 PM   #14
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,118
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Quote:
You probably don't have a matching system, I doubt anyone here does. It's an IBM thinkpad T22, pretty old and obsolete. The sound driver is snd-cs46xx.
Give me some time. I have a T23 with AntiX 15 on it, or my Panasonic Cf-48 with AntiX 15 on it.
Both are test beds. It won't be right away because Christmas takes priority this week
 
Old 12-24-2015, 04:00 PM   #15
PatrickMay16
Member
 
Registered: Apr 2005
Location: London, England.
Distribution: Debian oldstable
Posts: 56

Original Poster
Rep: Reputation: 53
Thanks rokytnji, it'll be interesting to know if it has the same result with your laptops.
 
  


Reply



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
Upstart script not being run on system startup... ddenton Linux - General 1 11-23-2011 08:59 AM
/home dir. wont mount after system crash. I have to run fsck to mount it again. why? druonysus Linux - Desktop 9 08-19-2010 05:27 AM
Getting an /etc/init.d script to run at system shutdown forrie Linux - Server 6 05-05-2010 01:19 PM
Should checkarray script run on a RAID 1 system? Midahed Linux - Software 2 09-11-2008 08:39 AM
How to run a script at system startup? correro Linux - Newbie 4 01-20-2006 09:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:23 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