andestech / Andes-Development-Kit

Other
17 stars 3 forks source link

Segmentation Fault with 'cc1' in riscv32-elf Toolchain on WSL2 #3

Open cjkzwe opened 5 months ago

cjkzwe commented 5 months ago

System Information

The exact error message is as follows:

$ dmesg
...
[  316.287313] cc1[298] vsyscall attempted with vsyscall=none ip:ffffffffff600000 cs:33 sp:7ffefc41cce8 ax:ffffffffff600000 si:0 di:7ffefc41cd10
[  316.299637] cc1[298] vsyscall read attempt denied -- look up the vsyscall kernel parameter if you need a workaround ip:12512f7 cs:33 sp:7ffefc41c110 ax:ffffffffff600000 si:7ffefc41c0a0 di:1253950
[  316.300878] cc1[298]: segfault at ffffffffff600000 ip 00000000012512f7 sp 00007ffefc41c110 error 5 in cc1[400000+1334000]
[  316.301619] Code: 44 00 00 40 80 ff 08 75 82 80 78 01 00 0f 85 78 ff ff ff 0f b6 78 02 48 83 c0 02 e9 ca fc ff ff 0f 1f 00 49 8b 85 98 00 00 00 <80> 38 48 0f 85 38 fe ff ff 48 ba c7 c0 0f 00 00 00 0f 05 48 39 50
[  316.302670] potentially unexpected fatal signal 11.
[  316.302968] CPU: 6 PID: 298 Comm: cc1 Not tainted 5.15.146.1-microsoft-standard-WSL2 #1
[  316.303414] RIP: 0033:0x12512f7
[  316.303609] Code: 44 00 00 40 80 ff 08 75 82 80 78 01 00 0f 85 78 ff ff ff 0f b6 78 02 48 83 c0 02 e9 ca fc ff ff 0f 1f 00 49 8b 85 98 00 00 00 <80> 38 48 0f 85 38 fe ff ff 48 ba c7 c0 0f 00 00 00 0f 05 48 39 50
[  316.304580] RSP: 002b:00007ffefc41c110 EFLAGS: 00010246
[  316.304889] RAX: ffffffffff600000 RBX: 0000000000000000 RCX: 0000000000000000
[  316.305312] RDX: ffffffffffffffff RSI: 00007ffefc41c0a0 RDI: 0000000001253950
[  316.305727] RBP: 00007ffefc41c420 R08: 0000000000000000 R09: 00000000017352c0
[  316.306168] R10: 0000000000000000 R11: 00000000017dda10 R12: 00007ffefc41c270
[  316.306567] R13: 00007ffefc41c180 R14: 0000000000000000 R15: 000000000104e740
[  316.306911] FS:  0000000001abd980 GS:  0000000000000000
sakumisu commented 2 months ago

I have the same problem, and also i use other linux toolchain like arm, t-head, nucle, nothing problem.

pansila commented 1 month ago

Same problem.

System Information