[LEDE-DEV] [PATCH 2/2] toolchain: gcc: drop MIPS patch

Arjen de Korte arjen+lede at de-korte.org
Thu Aug 24 11:13:55 PDT 2017


Citeren Arjen de Korte <arjen+lede at de-korte.org>:

> Citeren Arjen de Korte <arjen+lede at de-korte.org>:
>
>> Citeren Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk>:
>>
>>> On 23/08/17 18:25, Arjen de Korte wrote:
>>>
>>>> While removing the MIPS patch fixes dropbear when using gcc 7.1.0  
>>>> and '-Os', uhttpd goes tits up with a segfault in liblua. With  
>>>> '-O2' it's fine for both, so I'll probably stick with that for now.
>>>
>>> What about with gcc 7.2.0?
>>
>> Good question. I'll try that later today.
>
> No joy, uhttpd still fails to start with exactly the same  
> errormessage as with gcc 7.1.0:
>
> Thu Aug 24 19:44:23 2017 kern.info kernel: [   49.227713]
> Thu Aug 24 19:44:23 2017 kern.info kernel: [   49.227713]  
> do_page_fault(): sending SIGSEGV to uhttpd for invalid read access  
> from 778c50d8
> Thu Aug 24 19:44:23 2017 kern.info kernel: [   49.227734] epc =  
> 778cc277 in liblua.so.5.1.5[778c6000+2e000]
> Thu Aug 24 19:44:23 2017 kern.info kernel: [   49.230672] ra  =  
> 778cc271 in liblua.so.5.1.5[778c6000+2e000]
> Thu Aug 24 19:44:23 2017 kern.info kernel: [   49.233703]
> Thu Aug 24 19:44:23 2017 daemon.info procd: Instance  
> uhttpd::instance1 s in a crash loop 6 crashes, 0 seconds since last  
> crash

And like with gcc 7.1.0, all is well when compiled with '-O2' (OK)  
instead of '-Os' (not OK).




More information about the Lede-dev mailing list