[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-29 Thread Michael Kit Gilbert
Thank you for that very helpful info, Michael. I see what you mean about the extra flags. I haven't been compiling using "--with debug". Something strange happened this last time I compiled though: gdb just started working. I'm thinking it may have been a networking issue with my cluster, because t

[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-29 Thread Michael Jennings
On Fri, Apr 29, 2016 at 7:38 AM, Michael Kit Gilbert wrote: > Michael, thank you so much for offering your help! I created a Github gist > here with the output from my rpmbuild, which I did with the following > command (from the root folder that had my other rpm folders in it e.g. > BUILD, SOURC

[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-29 Thread Michael Kit Gilbert
Christopher, thank you for pointing out how to tell if the file is stripped. slurmd is not being stripped apparently: [mkg52@head ~]$ file `which slurmd` /usr/sbin/slurmd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped

[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-29 Thread Michael Kit Gilbert
Michael, thank you so much for offering your help! I created a Github gist here with the output from my rpmbuild, which I did with the following command (from the root folder that had my other rpm folders in it e.g. BUILD, SOURCES

[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-28 Thread Christopher Samuel
On 29/04/16 07:59, Michael Jennings wrote: > What really matters is whether or not your binaries and libs have, or > don't have, the debugging symbols. Are you getting the correct info, > or is everything still getting stripped? ...and don't forget the "file" command will tell you if they've be

[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-28 Thread Michael Jennings
You may still get a message about "debuginfo" RPMs because the SLURM spec file disables the building of them, but the RPM configuration and GDB configuration on RHEL are done in such a way as to assume that they exist. What really matters is whether or not your binaries and libs have, or don't ha

[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-28 Thread Michael Kit Gilbert
Thanks for the help everybody. So far I've tried looking for more debugging options in the spec file, doing Bjorn's suggestion, and just using --with debug like Michael suggested. They all leave me with the same issue though. When I try to use gdb by attaching to the slurmd process, it still gives

[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-27 Thread Bjørn-Helge Mevik
Michael Kit Gilbert writes: > I'm trying to troubleshoot a problem with a local patch I'm writing for > Slurm and can't seem to get gdb working properly. I've built the rpms with > -D '%_with_cflags CFLAGS="-O0 -g3"' and slurmctld and slurmd appear to be Just a note: I tried this (for a differe

[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-27 Thread Michael Jennings
That should already be the case. At least in 15.08.x, the spec file contains: %define __os_install_post /usr/lib/rpm/brp-compress %define debug_package %{nil} The first line has the effect of disabling the stripping of binaries (among other things). The second line prevents the -debuginfo pack

[slurm-dev] Re: using gdb to debug slurm-15.08?

2016-04-27 Thread Andy Riebs
[Apologies to the list if someone has already responded to Michael, but I don't recall seeing it.] Hi Michael, By far the easiest way to debug Slurm problems is by doing your own, local build, outside the context of RPM. You can find appropriate ./configure arguments (at least to start)