gdb segmentation fault

Hi,
Everyone. I added some codes into LAMMPS and want to check the error with gdb. I compiled Makefile.linux with -g added (Version 7May11). However,
A error occured and I don’t know why.
gdb ./lmp_linux

GNU gdb 6.6
Copyright © 2006 Free Software Foundation, Inc.
GDB 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.
Type “show copying” to see the conditions.
There is absolutely no warranty for GDB. Type “show warranty” for details.
This GDB was configured as “x86_64-suse-linux”…
Segmentation fault

Lisa

Hi,
Everyone. I added some codes into LAMMPS and want to check the error with
gdb. I compiled Makefile.linux with -g added (Version 7May11). However,
A error occured and I don't know why.
gdb ./lmp_linux

GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB 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.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-suse-linux"...
Segmentation fault

this is a gdb bug, not a lammps bug. please report it to
either the creators of the gdb package for your linux distribution
or the gdb developers.

axel.

axel.

I have installed the newest version of gdb and it has the same error. But when I used the old version of LAMMPS, there is no error. So I am thinking if there is any bug of LAMMPS.

Lisa

2011/5/16 Axel Kohlmeyer <[email protected]>

I have installed the newest version of gdb and it has the same error. But
when I used the old version of LAMMPS, there is no error. So I am thinking
if there is any bug of LAMMPS.

no. it _cannot_ be a bug in LAMMPS.

a debugger _must not_ segfault when reading a binary.

it may be triggered by your LAMMPS binary, but that does not make
it a LAMMPS bug.

axel.