busybox 1.27 depmod segfaults
busybox depmod segfaults since 1.27.0 upgrade.
a workaround is to install kmod.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000062b5e4d5c0b1 in __strchrnul (
s=s@entry=0xffffffffb5dd5630 <error: Cannot access memory at address 0xffffffffb5dd5630>, c=44) at src/string/strchrnul.c:21
21 src/string/strchrnul.c: No such file or directory.
(gdb) bt
#0 0x000062b5e4d5c0b1 in __strchrnul (
s=s@entry=0xffffffffb5dd5630 <error: Cannot access memory at address 0xffffffffb5dd5630>, c=44) at src/string/strchrnul.c:21
#1 0x000062b5e4d5c13f in strcspn (
s=s@entry=0xffffffffb5dd5630 <error: Cannot access memory at address 0xffffffffb5dd5630>, c=c@entry=0xb73b3e88b3c ",") at src/string/strcspn.c:13
#2 0x000062b5e4d5c547 in strsep (str=str@entry=0x712608e4de68,
sep=sep@entry=0xb73b3e88b3c ",") at src/string/strsep.c:8
#3 0x00000b73b3df1875 in string_to_llist (string=<optimized out>,
llist=llist@entry=0xb73b40a2c78, delim=delim@entry=0xb73b3e88b3c ",")
at modutils/modutils.c:114
#4 0x00000b73b3defe08 in parse_module (fname=<optimized out>,
sb=<optimized out>, data=<optimized out>, depth=<optimized out>)
at modutils/depmod.c:75
#5 0x00000b73b3e7bdbc in recursive_action (
fileName=fileName@entry=0xb73b40a2c20 "./kernel/block/deadline-iosched.ko", flags=flags@entry=1, fileAction=fileAction@entry=0xb73b3defd4c <parse_module>,
dirAction=dirAction@entry=0xb73b3e7bcdc <true_action>,
userData=userData@entry=0x712608e4e4c8, depth=depth@entry=3)
at libbb/recursive_action.c:110
#6 0x00000b73b3e7be6a in recursive_action (
fileName=fileName@entry=0xb73b40a2c00 "./kernel/block",
flags=flags@entry=1,
fileAction=fileAction@entry=0xb73b3defd4c <parse_module>,
dirAction=dirAction@entry=0xb73b3e7bcdc <true_action>,
userData=userData@entry=0x712608e4e4c8, depth=depth@entry=2)
at libbb/recursive_action.c:144
#7 0x00000b73b3e7be6a in recursive_action (
fileName=fileName@entry=0xb73b40a2be0 "./kernel", flags=flags@entry=1,
fileAction=fileAction@entry=0xb73b3defd4c <parse_module>,
dirAction=dirAction@entry=0xb73b3e7bcdc <true_action>,
userData=userData@entry=0x712608e4e4c8, depth=depth@entry=1)
at libbb/recursive_action.c:144
#8 0x00000b73b3e7be6a in recursive_action (
fileName=fileName@entry=0xb73b3e93541 ".", flags=flags@entry=1,
fileAction=fileAction@entry=0xb73b3defd4c <parse_module>,
dirAction=0xb73b3e7bcdc <true_action>, dirAction@entry=0x0,
userData=userData@entry=0x712608e4e4c8, depth=depth@entry=0)
at libbb/recursive_action.c:144
#9 0x00000b73b3df05a3 in depmod_main (argc=<optimized out>,
argv=0x712608e4ff38) at modutils/depmod.c:380
#10 0x00000b73b3de10b8 in run_applet_no_and_exit (applet_no=47,
argv=0x712608e4ff30) at libbb/appletlib.c:912
#11 0x00000b73b3de13cf in run_applet_and_exit (name=0x712608e5013a "depmod",
argv=0x712608e4ff30) at libbb/appletlib.c:930
#12 0x00000b73b3de13b5 in busybox_main (argv=0x712608e4ff30)
at libbb/appletlib.c:875
#13 run_applet_and_exit (name=<optimized out>, argv=<optimized out>)
at libbb/appletlib.c:923
#14 0x00000b73b3de1447 in main (argc=<optimized out>, argv=0x712608e4ff28)
at libbb/appletlib.c:1028
(from redmine: issue id 7487, created on 2017-07-06, closed on 2019-02-25)
- Changesets:
- Revision 1f0857f0 by Timo Teräs on 2017-07-07T08:15:50Z:
main/busybox: fix depmod binary index patch
fixes #7487