[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH 1/1] Fix crash caused by the Optimize for Performance config option


  • To: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Wed, 19 Feb 2020 22:42:25 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a+a0GYCHh7cEjVVNpyKGVMOVkAoyaFpfK6bhO/tnA0w=; b=TrOSM/FsaRIlGdOpr+o05R5wUkJYomeQSr0ZweTPAoqqMs6n9qCRj5mM78BBYLlRWYKxOREPaq1Fy/Cv//7jvqiM4SscxphBNUKrrxpEIqMbp5gc+VLCAFQWwRIkdWb1EpRBtChZOkN9yjh4UCaEOiRPxLJkrXxKDZfJUT6CIyEF+PFppCKf9v0x8LsfpXZfmK2TRk9JDwSCSt/7RYB+ARJNYnxaZxb6/IM/+a9908chm1ZEAMgNrPQwCK0AXi2mtQlpeSb/LJlTn4cdRbx6mC1DFRJ8AyZhwm2DzK/ZvW8++cZ2XRxsO8kwK3TDv/sVa3iLOmya4A4LRTZ3o8B+Vg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UUWPmPPqTkCsnROA6kOm3BTVMT7kq9K3D8zG2IseQ0KpO52co/DM8k2QTyNg3TQBxZvXz89KE+lLiXSQwFpRSn52Rl/L6H2F69SAuGThp8qyejD+G/rcP+fAS1atuHu+C96V6GiOjEKLCYyiGFGJqM4N3VScJ44LTUGwAP8FazCamlMoO1Qto2+BnndfKPYn8JgbdiZWY+Mfep9BOywLeW5Ioyn7ntTaBg7NzOUDt4oHPtungCL22QCNOxq/u7+F++PxTduU3JbxcCZ2k7fDLuyE+GCvEdOZKf6R2ZXXOzSAnZidUcDi62wtgB44PjyF0+RBQoPolxM63tXfJYchlA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>
  • Delivery-date: Wed, 19 Feb 2020 22:42:37 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHV5v+06LNTqa/olUKewVyxngeIfKgiwf+AgABbtgA=
  • Thread-topic: [UNIKRAFT PATCH 1/1] Fix crash caused by the Optimize for Performance config option

Hey Simon,

That sounds good, I'll a patch for each library.

Cheers,

Vlad

On 19.02.2020 19:14, Simon Kuenzer wrote:
> Hey,
>
> thanks a lot for figuring this problem out. However, can you send this 
> as a patch to the affected repositories (ruby, micropython)? I think 
> we should not set this everywhere if not needed.
>
> You can add the flags globally from within the Makefule.uk of each 
> library by doing (for example libruby):
>
> CFLAGS-$(CONFIG_LIBRUBY)   += -fno-gcse -fno-gnu-unique \
>                   -fno-move-loop-invariants
> CXXFLAGS-$(CONFIG_LIBRUBY) += -fno-gcse -fno-gnu-unique \
>                   -fno-move-loop-invariants
> GOFLAGS-$(CONFIG_LIBRUBY)  += -fno-gcse -fno-gnu-unique \
>                   -fno-move-loop-invariants
>
> Thanks,
>
> Simon
>
> On 19.02.20 09:36, Vlad-Andrei BĂDOIU (78692) wrote:
>> We disable the gcse, gnu-unique, and move-loop-invariants
>> flags enabled by O2. This solves the crash on several external
>> libraries(e.g. ruby, micropython).
>>
>> Signed-off-by: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
>> ---
>>   Makefile.uk | 6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/Makefile.uk b/Makefile.uk
>> index 67c372e5..359973f3 100644
>> --- a/Makefile.uk
>> +++ b/Makefile.uk
>> @@ -31,9 +31,9 @@ LDFLAGS     += -nostdinc -nostdlib -Wl,--omagic 
>> -Wl,--build-id=none
>>   CFLAGS-$(CONFIG_OPTIMIZE_NONE)            += -O0 
>> -fno-optimize-sibling-calls -fno-tree-vectorize
>>   CXXFLAGS-$(CONFIG_OPTIMIZE_NONE)          += -O0 
>> -fno-optimize-sibling-calls -fno-tree-vectorize
>>   GOCFLAGS-$(CONFIG_OPTIMIZE_NONE)          += -O0 
>> -fno-optimize-sibling-calls -fno-tree-vectorize
>> -CFLAGS-$(CONFIG_OPTIMIZE_PERF)            += -O2
>> -CXXFLAGS-$(CONFIG_OPTIMIZE_PERF)          += -O2
>> -GOCFLAGS-$(CONFIG_OPTIMIZE_PERF)          += -O2
>> +CFLAGS-$(CONFIG_OPTIMIZE_PERF)            += -O2 -fno-gcse 
>> -fno-gnu-unique -fno-move-loop-invariants
>> +CXXFLAGS-$(CONFIG_OPTIMIZE_PERF)          += -O2 -fno-gcse 
>> -fno-gnu-unique -fno-move-loop-invariants
>> +GOCFLAGS-$(CONFIG_OPTIMIZE_PERF)          += -O2 -fno-gcse 
>> -fno-gnu-unique -fno-move-loop-invariants
>>   CFLAGS-$(CONFIG_OPTIMIZE_SIZE)            += -Os
>>   CXXFLAGS-$(CONFIG_OPTIMIZE_SIZE)          += -Os
>>   GOCFLAGS-$(CONFIG_OPTIMIZE_SIZE)          += -Os
>>
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.