bluescreen
bluescreen
Type 2^34359738368 into a calculator on a 32-bit computer.
Last edited by Mikemk on Fri May 03, 2013 7:17 am, edited 1 time in total.
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
If you're new, check this out.
Re: instant bluescreen
Are you talking about Microsoft Windows's calc? I'm not on MS Windows currently; in my current system it just given an error message.
Re: instant bluescreen
On a fully patched Windows XP box:
Cheers,
Adam
Cheers,
Adam
Re: instant bluescreen
Hi,
I suspect an out of memory problem - e.g. someone forgetting to test if "malloc()" returned NULL (or possibly someone using C++, where "new" exists to ensure software crashes unexpectedly).
Cheers,
Brendan
I tried it on Kcalc (running on 64-bit Gentoo); and it caused the calculator to crash (segmentation fault in "__gmpn_copyi()").m12 wrote:Type 2^34359738368 into a calculator on a 32-bit computer.
I suspect an out of memory problem - e.g. someone forgetting to test if "malloc()" returned NULL (or possibly someone using C++, where "new" exists to ensure software crashes unexpectedly).
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: instant bluescreen
Ubuntu 12.04. Not sure the name of the program I used
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
If you're new, check this out.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: instant bluescreen
So you started the thread by explaining how to make the OS crash without mentioning the OS or the program that did it...
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: instant bluescreen
Good point. I was wondering what the number would be if my entire ram was filled with 0xff. I didn't realize that it would take my entire ram to calculate it.Love4Boobies wrote:So you started the thread by explaining how to make the OS crash without mentioning the OS or the program that did it...
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
If you're new, check this out.
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: instant bluescreen
It's 2^(RAM bits) - 1
- darkinsanity
- Member
- Posts: 45
- Joined: Wed Sep 17, 2008 3:59 am
- Location: Germany
Re: instant bluescreen
I used Kcalc on netrunner 12.12, it hung for a couple of seconds, took 1.680680 gigabytes of RAM and then said "6.48067178374e+2082970051".Brendan wrote:I tried it on Kcalc (running on 64-bit Gentoo); and it caused the calculator to crash (segmentation fault in "__gmpn_copyi()").
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: instant bluescreen
Doesn't look right. 34359738368 ln 2 / ln 10 is a bit less than 10343311892, so one should expect something between 1e+10343311891 and 1e+10343311892. To be more precise:darkinsanity wrote:6.48067178374e+2082970051
2^34359738368 = 10^(34359738368 Log[2]/Log[10] - 10343311891) * 1e+10343311891,
which is approximately 8.6013834471e+10343311891. Indeed, Mathematica agrees:
Code: Select all
In[1]:= Timing[2.0^34359738368.0]
Out[1]= {0., 8.6014*10^10343311891}
- darkinsanity
- Member
- Posts: 45
- Joined: Wed Sep 17, 2008 3:59 am
- Location: Germany
Re: instant bluescreen
Then Kcalc either wanted to troll me, or I mistyped something.XenOS wrote:Doesn't look right.
Re: instant bluescreen
Tried it in KCalc just now, got 1. What?
Re: instant bluescreen
I used gcalctool.
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
If you're new, check this out.
Re: instant bluescreen
Based on you description (should take all the RAM), the bluescreen cannot possibly be instant because it takes some time to fill all the ram, and then a system would probbaly swap for a while.m12 wrote:I used gcalctool.
And then the calculator process will be terminated by oom killer; still no bsod.
Learn to read.
Re: bluescreen
OK, fine. I'll take the word instant out.dozniak wrote:Based on you description (should take all the RAM), the bluescreen cannot possibly be instant because it takes some time to fill all the ram, and then a system would probbaly swap for a while..m12 wrote:I used gcalctool.
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
If you're new, check this out.