Bug 103656

Summary: get_cpuid inline asm violates red zone
Product: PulseAudio Reporter: EoD <EoD>
Component: coreAssignee: pulseaudio-bugs
Status: RESOLVED FIXED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: Other   
OS: All   
URL: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82926
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 99066    

Description EoD 2017-11-09 23:13:02 UTC
The original issue with get_cpuid() came while trying to debug bug 99066 and has been forwarded to GCC (see URL above).

Apparently the current implementation of get_cpuid() is violating the red zone (see GCC bugreport) and hence does segfault on x32.

There are several suggestions on the GCC bug report to work around/fix the issue.
Comment 1 Tanu Kaskinen 2017-11-21 13:23:26 UTC
Great! Thanks a lot for filing the GCC bug. Using the __cpuid macro seems like the best solution. I'll make a patch.
Comment 2 Tanu Kaskinen 2017-11-22 15:15:02 UTC
Patch submitted:
https://patchwork.freedesktop.org/patch/189761/
Comment 3 Tanu Kaskinen 2017-12-06 23:13:35 UTC
The patch is now in master.

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.