[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Busybox 'sh' segmentation fault
From:       Venkatakrishnan Sutharsan <venkatakrishnan.iitm () gmail ! com>
Date:       2021-07-16 12:17:20
Message-ID: CAH_ZLJq1RSkPZd7qN4SOfvAMLMFoqW1yK9w1KVDJNEYBQfeDYw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I currently have a RISCV based processor for which I am compiling linux
with buildroot and busybox. I am using BusyBox v1.31.1 and using RISCV 64
toolchain for compilation. Once the bootloader starters the kernel I see
boot logs and all till buildroot login. Once I login and press any key it
shows the following error message.

Welcome to Buildrootbuildroot login: root

Password:

# [just press any key you get the below unhandled signal]
[ 4471.577178] sh[98]: unhandled signal 11 code 0x1 at 0x00000000656c6976
in busybox[10000+aa000]
[ 4471.903472] CPU: 0 PID: 98 Comm: sh Not tainted
5.5.0-rc1-00032-g264b43306b8c-dirty #2
[ 4472.208496] epc: 000000000004e3f2 ra : 000000000004e3b8 sp :
0000003fff8f3920
[ 4472.475585]  gp : 00000000000bbc90 tp : 0000003fdf386820 t0 :
0000003fdf3a3160
[ 4472.743682]  t1 : 0000000000017e3c t2 : 0000003fdf26e9fc s0 :
00000000000bd2a0
[ 4473.011749]  s1 : 0000000000000000 a0 : 00000000000c1f10 a1 :
0000000000000000
[ 4473.279785]  a2 : 0000000000000000 a3 : 0000000000000000 a4 :
00000000000bbe18
[ 4473.548950]  a5 : 00000000656c6966 a6 : 0000000000000000 a7 :
0000000000000000
[ 4473.817321]  s2 : 00000000000bbea0 s3 : 00000000000bd5e0 s4 :
0000000000000000
[ 4474.085784]  s5 : 0000000000000000 s6 : ffffffffffffffff s7 :
000000000009a000
[ 4474.354187]  s8 : 00000000000bd5e0 s9 : 0000000000090000 s10:
0000003fff8f3980
[ 4474.622222]  s11: 0000000000000015 t3 : 0000003fdf2d3a54 t4 :
0000000000000002
[ 4474.890136]  t5 : 0000000000000002 t6 : 00000000000bd808
[ 4475.072753] status: 0000000200000020 badaddr: 00000000656c6976 cause:
000000000000000d

Welcome to Buildrootbuildroot login:

Any body have idea how to solve this issue?

Thanks.

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi,</div><div><br></div><div>I currently have a RISCV based 
processor for which I am compiling linux with buildroot and busybox. I 
am using BusyBox v1.31.1 and using RISCV 64 toolchain for compilation. 
Once the bootloader starters the kernel I see boot logs and all till 
buildroot login. Once I login and press any key it shows the following 
error message.</div><div><br></div><div><div><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">Welcome \
to Buildroot</span><span \
style="box-sizing:inherit;display:block;height:8px;font-style:normal;font-variant-liga \
tures:common-ligatures;font-variant-caps:normal;font-weight:400;letter-spacing:normal; \
text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"></span><span \
style="box-sizing:inherit;display:block;height:8px;font-style:normal;font-variant-liga \
tures:common-ligatures;font-variant-caps:normal;font-weight:400;letter-spacing:normal; \
text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"></span><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">buildroot \
login: root</span></font></span></span></span></div><div><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decorat \
ion-color:initial;display:inline;float:none"><br></span></font></span></span></span></div><div><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">Password: \
<br><br># [just press any key you get the below unhandled signal]<br>[ 4471.577178] \
sh[98]: unhandled signal 11 code 0x1 at 0x00000000656c6976 in \
busybox[10000+aa000]</span></font></span></span></span></div><div><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">[ \
4471.903472] CPU: 0 PID: 98 Comm: sh Not tainted 5.5.0-rc1-00032-g264b43306b8c-dirty \
#2<br>[ 4472.208496] epc: 000000000004e3f2 ra : 000000000004e3b8 sp : \
0000003fff8f3920<br>[ 4472.475585]   gp : 00000000000bbc90 tp : 0000003fdf386820 t0 : \
0000003fdf3a3160<br>[ 4472.743682]   t1 : 0000000000017e3c t2 : 0000003fdf26e9fc s0 : \
00000000000bd2a0<br>[ 4473.011749]   s1 : 0000000000000000 a0 : 00000000000c1f10 a1 : \
0000000000000000<br>[ 4473.279785]   a2 : 0000000000000000 a3 : 0000000000000000 a4 : \
00000000000bbe18<br>[ 4473.548950]   a5 : 00000000656c6966 a6 : 0000000000000000 a7 : \
0000000000000000<br>[ 4473.817321]   s2 : 00000000000bbea0 s3 : 00000000000bd5e0 s4 : \
0000000000000000<br>[ 4474.085784]   s5 : 0000000000000000 s6 : ffffffffffffffff s7 : \
000000000009a000<br>[ 4474.354187]   s8 : 00000000000bd5e0 s9 : 0000000000090000 s10: \
0000003fff8f3980<br>[ 4474.622222]   s11: 0000000000000015 t3 : 0000003fdf2d3a54 t4 : \
0000000000000002<br>[ 4474.890136]   t5 : 0000000000000002 t6 : \
00000000000bd808</span></font></span></span></span></div><div><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">[ \
4475.072753] status: 0000000200000020 badaddr: 00000000656c6976 cause: \
000000000000000d<br></span></font></span></span></span></div><div><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decorat \
ion-color:initial;display:inline;float:none"><br></span></font></span></span></span></div><div><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">Welcome \
to Buildroot</span><span \
style="box-sizing:inherit;display:block;height:8px;font-style:normal;font-variant-liga \
tures:common-ligatures;font-variant-caps:normal;font-weight:400;letter-spacing:normal; \
text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"></span><span \
style="box-sizing:inherit;display:block;height:8px;font-style:normal;font-variant-liga \
tures:common-ligatures;font-variant-caps:normal;font-weight:400;letter-spacing:normal; \
text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"></span><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">buildroot \
login:</span></font></span></span></font></span></span></span></div><div><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><span \
style="font-family:monospace"><font size="2"><span \
style="font-style:normal;font-variant-ligatures:common-ligatures;font-variant-caps:nor \
mal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transfo \
rm:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decorat \
ion-color:initial;display:inline;float:none"><br></span></font></span></span></font></span></span></span></div><div><span \
style="font-family:arial,sans-serif"><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><font \
size="2"><span style="font-style:normal;font-variant-ligatures:common-ligatures;font-v \
ariant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0 \
px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font \
size="2"><span style="font-style:normal;font-variant-ligatures:common-ligatures;font-v \
ariant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0 \
px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">Any \
body have idea how to solve this \
issue?<br></span></font></span></font></span></span></span></div><div><span \
style="font-family:arial,sans-serif"><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><font \
size="2"><span style="font-style:normal;font-variant-ligatures:common-ligatures;font-v \
ariant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0 \
px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font \
size="2"><span style="font-style:normal;font-variant-ligatures:common-ligatures;font-v \
ariant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0 \
px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initi \
al;text-decoration-color:initial;display:inline;float:none"><br></span></font></span></font></span></span></span></div><div><span \
style="font-family:arial,sans-serif"><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0)"><font \
size="2"><span style="font-style:normal;font-variant-ligatures:common-ligatures;font-v \
ariant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0 \
px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><font \
size="2"><span style="font-style:normal;font-variant-ligatures:common-ligatures;font-v \
ariant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0 \
px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initi \
al;text-decoration-color:initial;display:inline;float:none">Thanks.</span></font></span></font></span></span></span></div></div></div>




_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic