Bug 111387 - calling glVertex() in infinite loop crashes the system
Summary: calling glVertex() in infinite loop crashes the system
Status: NEW
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-12 22:24 UTC by almos
Modified: 2019-08-13 05:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description almos 2019-08-12 22:24:57 UTC
On my desktop system with radeonsi and radeon.ko the dmesg starts to fill with vm errors, then after a few seconds a gpu fault is detected, the screen turns off, and it cannot recover from that.

On an intel haswell laptop the screen locks up immediately, and the system becomes totally unresponsive.

I don't think this is the correct reaction to a simple programming mistake.
Comment 1 Tapani Pälli 2019-08-13 05:43:26 UTC
System wide resource limitations for users should be implemented with cgroups or such, IMO it cannot be responsibility of a single library. You will likely encounter similar situation using some other library, as example: "while(1) fork();". You should setup limitations for memory usage per user or per process.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.