[prev in list] [next in list] [prev in thread] [next in thread]
List: freeipmi-devel
Subject: Re: [Freeipmi-devel] segfault in ipmi-chassis
From: Albert Chu <chu11 () llnl ! gov>
Date: 2014-10-22 18:09:40
Message-ID: 1414001380.3372.45.camel () auk59 ! llnl ! gov
[Download RAW message or body]
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
> Freeipmi-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/freeipmi-devel
--
Albert Chu
chu11@llnl.gov
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
_______________________________________________
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/freeipmi-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic