----- Original Message ----- > In doing so, it seems the program goes through all the startup rigmarole > before processing options. It shouldn't do that. No point in bumping into > failing configurations if all you are going to do is print out a > version. > > # crash --version > c-cmd.log > gdb called without error_hook: No struct type named ldlm_lock. > gdb called without error_hook: No struct type named ldlm_lock. > gdb called without error_hook: /root/.gdbinit:78: Error in sourced > command file: > No struct type named ldlm_lock. > /root/.gdbinit:78: Error in sourced command file: > No struct type named ldlm_lock. > > crash 5.1.1-2.el6 > Copyright (C) 2002-2011 Red Hat, Inc. > Copyright (C) 2004, 2005, 2006 IBM Corporation > Copyright (C) 1999-2006 Hewlett-Packard Co > Copyright (C) 2005, 2006 Fujitsu Limited > Copyright (C) 2006, 2007 VA Linux Systems Japan K.K. > Copyright (C) 2005 NEC Corporation > Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc. > Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc. > This program is free software, covered by the GNU General Public License, > and you are welcome to change it and/or distribute copies of it under > certain conditions. Enter "help copying" to see the conditions. > This program has absolutely no warranty. Enter "help warranty" for > details. > > GNU gdb (GDB) 7.0 > Copyright (C) 2009 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-unknown-linux-gnu". Right -- currently when "crash --version" is invoked, gdb is invoked as "gdb" alone with no arguments. I'll change that to "gdb -version" so that it will avoid the reading of your .gdbinit file. Thanks, Dave -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility