Re: gdb can't open large core

"David Resnick" <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization http://groups.google.com
Message-ID <[email protected]>
David Resnick wrote:
> Hi,
>
> I have a very large core file that I'd like to try and debug:
> -rw-------+   1 cmsapp   cmsapp   2633666560 Apr 25 17:27 core.17598
>
> Attempts to open it with gdb are giving this:
> /var/cti/cores/cms/pfp/core.17598: File too large.
>
> [root@LD-CMS4 pfp]# gdb --version
> GNU gdb Red Hat Linux (6.0post-0.20040223.17rh)
>
> Anyone have any wisdom to offer?  I tried the gdb manual/googling the
> issue, and didn't have any luck as yet, though I'll keep poking.  Would
> a later version of gdb be better at largefiles?
>
> Thanks!
> -David

Experimenting showed that if I did split --bytes=2000m core.17598,
gdb could open the 2Gb core fragment that resulted and I got my stack
trace.  Still curious if there is a better solution.

-David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.