Gold 0.1 test fail PR17704a_test

bokret.magon@9ox.net bokret.magon@9ox.net
Mon Feb 1 14:43:47 GMT 2021


I enabled 'CONFIG_IA32_EMULATION' & 'CONFIG_X86_X32'. It worked all the tests passed.
Thanks for your help.

On January 31, 2021 11:18:02 PM UTC, Maget <bokret.magon@9ox.net> wrote:
>Thanks.
>I'm installing the distro 'linux from scratch'.
>The command 'uname -a' prints out 'Linux 5.4.80-gentoo-r1 #2 SMP Fri
>Dec 11 18:20:40 2020 x86_64 GNU/Linux'
>
>If I enabled 'CONFIG_IA32_EMULATION' and/or 'CONFIG_X86_X32' in the
>kernel would that have helped? I read that 'int 0x80' invokes the 32bit
>ABI.
>
>
>On January 31, 2021 1:56:01 AM UTC, "Cary Coutant - ccoutant@gmail.com"
>wrote:
>>This particular test is an all-assembly-code test case with its own
>>_start function, and it uses "int 0x80" to call the exit system call
>>rather than linking against libc. On my box, the instruction at
>>0x4000d6 is one of those "int 0x80" instructions. If you're not
>>running a common version of Linux, that could be the problem. In that
>>case, I'd recommend that you simply ignore the failure or comment the
>>test out.
>>
>>I'll make a note of this, and rewrite this test to be independent of
>>the host ABI.
>>
>>Please do let me know what OS you're building and running on.
>>
>>-cary
>>
>>On Fri, Jan 29, 2021 at 1:58 PM <bokret.magon@9ox.net> wrote:
>>>
>>> I'm trying to compile & install binutils, but one of the tests for
>>gold 0.1[FAIL: pr17704a_test] is failing when I run:
>>> 'make -k check'.
>>> The error says it's due to a segmentation fault:
>>> ../../../gold/../test-driver: line 107: 23586 Segmentation fault
>"$@"
>>> $log_file 2>&1
>>>
>>> Dmesg also has these messages:
>>> [123674.862177] traps: pr17704a_test[19386] general protection fault
>>ip:4000d6 sp:7ffdcbe92980 error:402 in pr17704a_test[400000+1000]
>>> [126985.003102] traps: pr17704a_test[28044] general protection fault
>>ip:4000d6 sp:7fffc6c9c160 error:402 in pr17704a_test[400000+1000]
>>> [155689.371646] traps: pr17704a_test[20324] general protection fault
>>ip:4000d6 sp:7ffde7870720 error:402 in pr17704a_test[400000+1000]
>>> [156412.607574] traps: pr17704a_test[10902] general protection fault
>>ip:4000d6 sp:7ffc71744200 error:402 in pr17704a_test[400000+1000]
>>> [158161.333179] traps: pr17704a_test[23586] general protection fault
>>ip:40012e sp:7ffe8a2cb530 error:402 in pr17704a_test[400000+1000]
>>>
>>>
>>> How do I troubleshoot this?



More information about the Binutils mailing list