public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Crash of Archer's gdb on mingw (passing null argument to vasprintf)
@ 2011-10-03  9:39 Joost van der Sluis
  2011-10-03 10:07 ` Mark Kettenis
  2011-10-03 14:59 ` Joel Brobecker
  0 siblings, 2 replies; 7+ messages in thread
From: Joost van der Sluis @ 2011-10-03  9:39 UTC (permalink / raw)
  To: gdb

Hi all,

Maybe a strange question because it's not about stock gdb but about the
fedora16-branch from the Archer project. But I know that there are not
that much mingw/Windows people on the Archer mailinglist, so I ask here.

In gdbtypes.c there's this code:

    warning (_("Range for type %s has invalid bounds %s..%s"),
            TYPE_NAME (type), plongest (TYPE_LOW_BOUND (range_type)),
            plongest (TYPE_HIGH_BOUND (range_type)));

This goes wrong when TYPE_NAME (type) is null. Eventually warning()
leads to a call of vasprintf(), and on Fedora it prints '(NULL)' when it
encounters a null-parameter. But on mingw it crashes (sigint).

How to fix this properly? I could add a check for the assignment of
TYPE_NAME (type). Or should mingw fix their vasprintf implementation? Or
can I switch to another version of casprintf? (I use the
mingw-installation from Fedora to cross-compile to mingw)

Joost van der Sluis.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-12  7:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-03  9:39 Crash of Archer's gdb on mingw (passing null argument to vasprintf) Joost van der Sluis
2011-10-03 10:07 ` Mark Kettenis
2011-10-03 14:59 ` Joel Brobecker
2011-10-03 16:17   ` Joost van der Sluis
2011-10-03 16:25     ` Joel Brobecker
2011-10-12  7:30       ` Joost van der Sluis
2011-10-03 16:35     ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).