[U-Boot] [Bug] Crash when running "./sandbox/u-boot -c done"

Stefan Bruens stefan.bruens at rwth-aachen.de
Sun Aug 28 21:45:22 CEST 2016


Hi everyone,

although 'done' by itself is not a syntactically correct command, it should 
not crash u-boot.

Kind regards,

Stefan

-----
(gdb) r
Starting program: /home/stefan/Documents/Sources/u-boot/sandbox/u-boot -c done
Missing separate debuginfos, use: zypper install glibc-
debuginfo-2.23-6.1.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".


U-Boot 2016.09-rc1-00480-g5052847-dirty (Aug 26 2016 - 02:06:58 +0200)

DRAM:  128 MiB
MMC:   
Using default environment

In:    serial
Out:   serial
Err:   serial
SCSI:  Net:   No ethernet found.
IDE:   Bus 0: not available  
syntax error

Program received signal SIGSEGV, Segmentation fault.
0x00000000004167be in static_peek () at ../common/cli_hush.c:920
920     }
Missing separate debuginfos, use: zypper install libFLAC8-
debuginfo-1.3.1-2.5.x86_64 libSDL-1_2-0-debuginfo-1.2.15-19.6.x86_64 libX11-6-
debuginfo-1.6.3-2.15.x86_64 libXau6-debuginfo-1.0.8-6.5.x86_64 libXext6-
debuginfo-1.3.3-3.17.x86_64 libXrandr2-debuginfo-1.5.0-2.3.x86_64 libXrender1-
debuginfo-0.9.9-1.18.x86_64 libasound2-debuginfo-1.1.2-1.1.x86_64 libcap2-
debuginfo-2.22-14.100.x86_64 libdbus-1-3-debuginfo-1.10.8-1.3.x86_64 
libgcrypt20-debuginfo-1.6.5-2.2.x86_64 libgpg-error0-debuginfo-1.24-1.1.x86_64 
libjson-c2-debuginfo-0.12.1-1.1.x86_64 liblzma5-debuginfo-5.2.2-4.87.x86_64 
libogg0-debuginfo-1.3.2-1.5.x86_64 libpcre1-debuginfo-8.39-2.1.x86_64 
libpulse0-debuginfo-9.0-1.1.x86_64 libselinux1-debuginfo-2.5-2.1.x86_64 
libsndfile1-debuginfo-1.0.26-2.2.x86_64 libspeex1-debuginfo-1.2~rc2-2.4.x86_64 
libsystemd0-debuginfo-228-11.1.x86_64 libvorbis0-debuginfo-1.3.5-1.7.x86_64 
libvorbisenc2-debuginfo-1.3.5-1.7.x86_64 libxcb1-debuginfo-1.12-1.3.x86_64
(gdb) bt
#0  0x00000000004167be in static_peek () at ../common/cli_hush.c:920
#1  0x0000000000417abf in parse_stream_outer (inp=inp at entry=0x7fffffffd910, 
flag=flag at entry=2) at ../common/cli_hush.c:3248
#2  0x0000000000416d88 in parse_string_outer (s=s at entry=0x7fffffffe165 "done", 
flag=flag at entry=2) at ../common/cli_hush.c:3275
#3  0x0000000000426830 in run_command_list (cmd=0x7fffffffe165 "done", 
len=<optimized out>, len at entry=-1, flag=flag at entry=0) at ../common/cli.c:98
#4  0x0000000000403191 in sandbox_main_loop_init () at ../arch/sandbox/cpu/
start.c:89
#5  0x0000000000418162 in run_main_loop () at ../common/board_r.c:743
#6  0x0000000000466941 in initcall_run_list 
(init_sequence=init_sequence at entry=0x7120e0 <init_sequence_r>) at ../lib/
initcall.c:31
#7  0x000000000041833b in board_init_r (new_gd=<optimized out>, 
dest_addr=dest_addr at entry=0) at ../common/board_r.c:994
#8  0x00000000004021b9 in main (argc=3, argv=0x7fffffffdc58) at ../arch/
sandbox/cpu/start.c:309
(gdb) list
915                     int rc;
916                     rc = b_addchr(o, '\\');
917                     if (rc) return rc;
918             }
919             return b_addchr(o, ch);
920     }
921
922     #ifndef __U_BOOT__
923     static int b_adduint(o_string *o, unsigned int i)
924     {
(gdb) Quit

------
-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
home: +49 241 53809034     mobile: +49 151 50412019
work: +49 2405 49936-424



More information about the U-Boot mailing list