Program received signal SIGBUS, Bus error.
0x0000555555561798 in check_strnum (cp=cp@entry=0x5555555842d8 <eval_stack+24>) at cast.c:323
323 if (s == q)
(gdb) bt full
0 0x0000555555561798 in check_strnum (cp=cp@entry=0x5555555842d8 <eval_stack+24>) at cast.c:323
Hello,
the command
./test.awk test.db - <test.in
gives me abus error
. Neither gawk nor busybox awk do. Here are the important files:FILENAME == ARGV[1]\ { full = $0 sub("^[0-9]+ ", "") db[$0] = full next } db[$0] {print db[$0]; next} {print 0, $0}
0 /home/user/Data/Music/Initial D/(1998) 1st Stage ~D Selection 1~ 0 /home/user/Data/Music/Initial D/(1998) 1st Stage ~D Selection 2~
/home/user/Data/Music/Initial D/(1998) 1st Stage ~D Selection 1~ /home/user/Data/Music/Initial D/(1998) 1st Stage ~D Selection 2~
gdb -q ~/Programming/mawk-1.3.4-20171017/mawk Reading symbols from /home/user/Programming/mawk-1.3.4-20171017/mawk...done. (gdb) run -f test.awk test.db - <test.in Starting program: /home/user/Programming/mawk-1.3.4-20171017/mawk -f test.awk test.db - <test.in 0 /home/user/Data/Music/Initial D/(1998) 1st Stage ~D Selection 1~
Program received signal SIGBUS, Bus error. 0x0000555555561798 in check_strnum (cp=cp@entry=0x5555555842d8 <eval_stack+24>) at cast.c:323 323 if (s == q) (gdb) bt full
0 0x0000555555561798 in check_strnum (cp=cp@entry=0x5555555842d8 <eval_stack+24>) at cast.c:323
1 0x000055555555caa8 in compare (cp=cp@entry=0x5555555842c0) at execute.c:1389
2 0x000055555555e54b in execute (cdp=0x555555592780, sp=0x5555555842c0, fp=0x0) at execute.c:946
3 0x000055555555c53a in main (argc=5, argv=0x7fffffffe658) at main.c:71
No locals.