Author Topic: Help investigate QB64 crashing under specific conditions for one certain user  (Read 7133 times)

0 Members and 1 Guest are viewing this topic.

FellippeHeitor

  • Guest
A user on GitHub opened an issue in the repository stating that QB64 crashes in Windows 7 SP1 x64 on Intel i7-3610QM cpu, under these exact conditions/steps:

Quote
Downloaded qb64 1.2 (as already stated)
2a. Started qb64 from command prompt as administrator
or
2b. Started qb64 directly with double-clicking on the executable

Ran this code (as already stated):
Code: QB64: [Select]
  1. 10 ON ERROR GOTO 60
  2. 20 PRINT 2/3
  3. 30 PRINT 3/5
  4. 40 PRINT 4/0
  5. 50 END
  6. 60 IF ERR=11 THEN PRINT "Division by zero in line"ERL:RESUME 50
DEP is completely disabled, also no antivirus/antimalware software installed
Above steps were performed also and on a Win XP SP2 x64/Win 10 Pro x64 virtual machines with the same result

Full discussion going on here: https://github.com/Galleondragon/qb64/issues/64

DEP stands for Data Execution Prevention, as per this: https://answers.microsoft.com/en-us/windows/forum/windows_other-windows_programs/problem-event-name-bex-error-message/cf5baf73-0877-4070-abfb-a2c3a17a9e10

Can you guys please confirm this happens too or has happened before under the same conditions? I can't reproduce it on any of my machines.
« Last Edit: September 05, 2018, 11:26:01 pm by FellippeHeitor »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
I've tested both 32-bit and 64-bit versions of QB64, and I can't reproduce the issue, but I'm running Win 10 instead of Win 7, so I dunno if that's part of the problem or not.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Well, he said he'd tested it on Windows 10, x64, with the crashing happening too. Are you on a 64bit system?

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Well, he said he'd tested it on Windows 10, x64, with the crashing happening too. Are you on a 64bit system?

Aye.  Win 10, 64-bit, and no issues for me.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Oddly enough, I can't even generate an error with the program.  I'm not getting a "Division by 0" error; QB64 is reporting 4 / 0 as being 1.#INF for me...

Further testing going on...
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
It is by design not to get some division by zero errors. I remember Luke adding something related to SIGFPE in order to avoid such crashes.

I'm putting my money on a faulty graphics adapter or something of that kind, since we have seen it happen recently for another guy who realized it was that on his machine.

I'm now waiting for him to confirm that it also happens with the stable build to rule out anything that has been added recently to the development build.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
10 ON ERROR GOTO 60
20 PRINT 2 / 3
30 PRINT 3 / 5
40 PRINT 4 / 0
45 ERROR 11
46 PRINT "bob"
50 END
60 PRINT ERR, ERL, _ERRORLINE: IF ERR = 11 THEN PRINT "Division by zero in line"; ERL: RESUME NEXT


Here's another bit of oddity:  I cant even FORCE QB64 to toss an Error 11.  Trying results in Windows popping up the "Critical Error Divison by 0" message box, and closing it insta-crashes the program.  ON ERROR isnt catching Divison by 0, even when I try and force it to, though other error codes work just fine for us.

I have no clue how the guy is getting system errors, since it seems like the program is basically just a few PRINT commands, with the other stuff doing nothing in this case.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
OK Windows 10 64 same as Steve.

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
doesn't crash for me on Win 7 SP1, 64bit, with an Intel I3 dual core with hyperthreading.
with the x32 build of QB64.

does pop an error if I flip the '/' to a '\' in line 40 but doesn't crash.
Granted after becoming radioactive I only have a half-life!

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
I run Win 7 64-bit and it works fine for me. I get what Steve gets on his Win 10.

Using computers today is a genuine pain in the ASCII. Too many different setups and things that for some damn reason or another tend to interfere with other things. I just got through installing a program that was supposed to work with Win 7, but I'm smart enough to realize the driver it states is missing is a Windows 10 specific driver, with 7 having an earlier version. Although I could install it on my Win-10, I hate Win 10 because it always gets MS updates. Anyway, I'm sure we all have our similar stories of crosses to bear, and I'm afraid the OP in this thread will have to work around this problem.

Pete

If I could save time in a bottle, then where in the hell would I keep my liquor?
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Code runs fine on my system. I have almost the same specs:

Win7 SP1 Pro x64 - Intel Core i7 3770 @ 3.40GHz
In order to understand recursion, one must first understand recursion.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Besides, It's stupid code NOBODY should be using anyway!!!

Sorry, watching a YouTube video on self-hypnosis and apparently channeling Clippy.

Pete :D
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Now there's a name I have not heard in a while. What the heck is he up to these days?
In order to understand recursion, one must first understand recursion.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
He made a post at the Tapatalk (former N54 ) forum a couple of weeks ago but ever since Trump got elected he's been kind of quite. Me, on the other hand, I've been throwing parties, handing out cigars, and turning cartwheels.

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
In order to understand recursion, one must first understand recursion.