[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freeipmi-devel] segfault in ipmi-chassis
From: |
Albert Chu |
Subject: |
Re: [Freeipmi-devel] segfault in ipmi-chassis |
Date: |
Wed, 22 Oct 2014 11:09:40 -0700 |
Hey Rob,
Thanks for the catch. The OPTION_ARGS_OPTIONAL flag is set in the
argument parsing logic above, which appears to be a cut & paste legacy
error from years ago.
--set-boot-flags and many other options in ipmi-chassis were legacy'd
out a long time ago, but the code was left there for backwards
compatibility. The preferred tool became ipmi-chassis-config (which all
config tools are now collapsed into a single 'ipmi-config') for setting
those parameters. So that's why there is no help output/manpage info on
them.
I imagine you were trying the options b/c you were looking through code?
I'll add some comments that things are legacied out.
Al
On Tue, 2014-10-21 at 22:31 +0000, Rob Swindell wrote:
> (gdb) set args -h nx-mgmt-fw-12 --set-boot-flags
> --force-progress-event-traps
>
> (gdb) run
>
> Starting
> program:
> /home/administrator/freeipmi/trunk/ipmi-chassis/.libs/lt-ipmi-chassis -h
> nx-mgmt-fw-12 --set-boot-flags --force-progress-event-traps
>
> [Thread debugging using libthread_db enabled]
>
> Using host libthread_db library
> "/lib/x86_64-linux-gnu/libthread_db.so.1".
>
>
>
> Program received signal SIGSEGV, Segmentation fault.
>
> 0x00007ffff7086415 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
>
> (gdb) bt
>
> #0 0x00007ffff7086415 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
>
> #1 0x0000000000404c14 in boot_flag_parse (state=<optimized out>,
> arg=0x0, key=<optimized out>) at ipmi-chassis-argp.c:285
>
> #2 cmdline_parse (key=<optimized out>, arg=0x0, state=<optimized
> out>) at ipmi-chassis-argp.c:467
>
> #3 0x00007ffff7052d03 in argp_parse ()
> from /lib/x86_64-linux-gnu/libc.so.6
>
> #4 0x0000000000405527 in ipmi_chassis_argp_parse (argc=5,
> argv=0x7fffffffe5b8, cmd_args=0x7fffffffe340) at
> ipmi-chassis-argp.c:594
>
> #5 0x000000000040295b in main (argc=5, argv=0x7fffffffe5b8) at
> ipmi-chassis.c:1687
>
>
>
> On an unrelated note, I’m having a hard time finding the correct usage
> of ‘ipmi-chassis --set-boot-flags’ in any of the help output or man
> pages. Experimentation found this segfault.
>
>
>
> -Rob
>
>
> _______________________________________________
> Freeipmi-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/freeipmi-devel
--
Albert Chu
address@hidden
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory