Project

General

Profile

Bug #1943

RUsage incorrectly used in configure and memory library

Added by Joseph Hutter 2 months ago. Updated 2 months ago.

Status:
Merged
Priority:
Low
Assignee:
Category:
-
Target version:
Start date:
07/10/2018
Due date:
% Done:

0%


Description

in src/scripts/configure.ac, getrusage is used incorrectly. The image attached shows the configure, and it's the same problem in src/conv-core/memory.c. To use RUSAGE_THREAD, you need to define _GNU_SOURCE instead of __USE_GNU, and you need to do it before you include any sys files. RUSAGE_THREAD is supported since Linux 2.2. Should be a quick fix. See the manual page here: http://man7.org/linux/man-pages/man2/getrusage.2.html

Screen Shot 2018-07-09 at 11.25.01 PM.png View (17.8 KB) Joseph Hutter, 07/10/2018 02:35 PM

History

#1 Updated by Evan Ramos 2 months ago

  • Status changed from New to Implemented

#2 Updated by Evan Ramos 2 months ago

  • Tags deleted (memorylib)

#3 Updated by Sam White 2 months ago

  • Target version set to 6.9.0
  • Status changed from Implemented to Merged

Also available in: Atom PDF