Search Issue Tracker

Third Party Issue

Votes

0

Found in

2021.3.45f1

2022.3.52f1

6000.0.26f1

6000.1.0a3

Issue ID

UUM-86995

Regression

No

Crash when trying to force Shader to interpret 1/30 as a floating point operation

--

-

Reproduction steps:
1. Open the attached “BugRepro” project
2. Wait for shaders to compile

Expected result: Shader compiles successfully
Actual result: Machine blacks out and crashes

Reproducible with: 2021.3.45f1, 2022.3.52f1, 6000.0.26f1, 6000.1.0a3

Reproducible on: Ubuntu 24.04, Windows 10, Arch (user)
Not reproducible on: No other environment tested

First lines of the stack trace:
{{#4 0x00755e4e755110 in amdgpu_winsys_create}}
{{#5 0x00755e4e757bf6 in amdgpu_winsys_create}}
{{#6 0x00755e4defcb81 in __driDriverGetExtensions_d3d12}}
{{#7 0x00755e4df1d6fc in __driDriverGetExtensions_d3d12}}

{{#4 0x007bf9e17b0083 in amdgpu_winsys_create}}
{{#5 0x007bf9e17b3573 in amdgpu_winsys_create}}
{{#6 0x007bf9e0eab854 in vdp_imp_device_create_x11}}
{{#7 0x007bf9e0ecec9d in vdp_imp_device_create_x11}}
{{#8 0x007bfa131e539d in pthread_condattr_setpshared}}

  1. Resolution Note:

    1/30 is rightfully interpreted as 0. Both constants are integers, and integer division of 1 by 30 gives a zero.

    The shader uses this constant after converting to float as a divisor:
    int sampleCount = (0.01111/float(1/30))*32;
    The floating point result of this operation is NaN, which is then converted to int. I'm pretty sure the driver doesn't like using this as a loop counter.

    In order to fix this, `1.0/30.0` should be used instead.

Comments (1)

  1. ariadnemorales008

    Nov 09, 2024 00:03

    Expert Ethical Hacking and Crypto Recovery Services.
    Hey there! I understand the frustration of losing cryptocurrency. Lose it to individuals you have given your time, trust, and personal information to. It's a tough situation; I have lost hundreds of thousands of USD, and I fear what these impostors would do with my details. It was months of fear and trauma for me before coming in contact with CyberGenie HackPro. Are you currently experiencing this? Are your details, images, and videos in the wrong hands, are you being blackmailed by scammers after stealing from you? Please don't worry; legitimate gray hat hackers and crypto asset recovery companies can help you, but finding the right one is a big deal. One option that is highly recommended is CyberGenie HackPro. They are a team of professional private investigators and also have a team of experts who specialize in recovering lost crypto and have a recorded success rate over the years. They'll guide you through the process and help you recover your funds. Their success rate is impressive, and they have helped numerous individuals and businesses retrieve their funds via various means lost to scammers running from BEC Fraud and pig butchering fraud. I had to hire CyberGenie HackPro after being tricked by a team of crypto miners who later hijacked my crypto asset account, after my plea to them to assist me, they didn't fail me, and I am thrilled by the outcome. Every penny and time invested while working with CyberGenie HackPro was worth it. I recovered my lost crypto asset funds, and all my details and documents sent to this fake platform were erased from the scammer's system. Remember, it's essential to choose a legitimate company with a proven track record and positive reviews, CyberGenie HackPro is the DEAL. If you want full internet protection, find CyberGenie HackPro via:
    -CyberGenie (@) Cyberservices (.) Com-
    -Telegram-CyberGenieHackPro-
    -W/A +1.2.5.2.2.7.1.8.9.0.0
    Stay Safe out there...

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.