On 2014/05/16 17:26, Giancarlo Razzolini wrote: > Em 16-05-2014 17:18, Stuart Henderson escreveu: > > On 2014/05/16 17:12, Giancarlo Razzolini wrote: > >> As I mentioned, I'm running 5.5 stable. So this might got fixed in > >> current, I'm taking a look at the CVS commits right now to see if it was > >> fixed. But, funny thing, I've managed to get another segmentation fault, > >> this time from command line. While trying to replicate the bug in > >> another machine, I've wrongly typed: > >> > >> ifconfig em4 -inet > >> > >> Instead of: > >> > >> ifconfig em4 -inet6 > > I'm unable to repeat this on amd64 5.5 release. Can you repeat it under gdb? > > i.e. 'sudo gdb ifconfig' then 'set args em4 -inet' (or whatever) and 'run', > > then if you can trigger it do a 'bt'. > > > Yes, I was able to repeat: > > (gdb) set args em4 -inet > (gdb) run > Starting program: /sbin/ifconfig em4 -inet > warning: shared library handler failed to enable breakpoint > > Program received signal SIGSEGV, Segmentation fault. > 0x000000000043607a in ?? () > (gdb) bt > #0 0x000000000043607a in ?? () > #1 0x0000000000412835 in ?? () > #2 0x0000000000412ac5 in ?? () > #3 0x0000000000404919 in ?? () > #4 0x000000000040aaba in ?? () > #5 0x0000000000400301 in ?? () > #6 0x0000000000000003 in ?? () > #7 0x00007f7ffffbeb28 in ?? () > #8 0x00007f7ffffbeb37 in ?? () > #9 0x00007f7ffffbeb3b in ?? () > #10 0x0000000000000000 in ?? () > > Very odd. If you want I can also attach the core dump. > > Cheers, > > -- > Giancarlo Razzolini > GPG: 4096R/77B981BC >
Oh, static stripped binary of course... worth a try with this, if you have 5.5-stable sources on the system: cd /usr/src/sbin/ifconfig make obj make clean make DEBUG="-g -O0" gdb obj/ifconfig [...]