public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/13877] New: gdb coredumps on FreeBSD ia64
@ 2012-03-20 10:46 mexas at bristol dot ac.uk
  2012-03-28 18:28 ` [Bug gdb/13877] " tromey at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mexas at bristol dot ac.uk @ 2012-03-20 10:46 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13877

             Bug #: 13877
           Summary: gdb coredumps on FreeBSD ia64
           Product: gdb
           Version: 6.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: mexas@bristol.ac.uk
    Classification: Unclassified


I've GDB 6.1.1 on FreeBSD 10-current ia64.

(There's 7.4 in FreeBSD ports, but it doesn't build:

configure: error: "*** Gdb does not support native target
ia64-portbld-freebsd9.9"
gmake[1]: *** [configure-gdb] Error 1
gmake[1]: Leaving directory `/usr/ports/devel/gdb/work/gdb-7.4')

It dumps core while analysing coredumps produced
by other programs, e.g.:


% gdb /usr/local/bin/surf surf.core 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "ia64-marcel-freebsd"...
Core was generated by `surf'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libwebkitgtk-1.0.so.0...Segmentation fault
(core dumped)
%

% gdb /usr/bin/gdb gdb.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "ia64-marcel-freebsd"...
Core was generated by `gdb'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libreadline.so.8...done.
Loaded symbols for /lib/libreadline.so.8
Reading symbols from /lib/libncurses.so.8...done.
Loaded symbols for /lib/libncurses.so.8
Reading symbols from /usr/lib/libgnuregex.so.5...done.
Loaded symbols for /usr/lib/libgnuregex.so.5
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/lib/libthread_db.so...done.
Loaded symbols for /usr/lib/libthread_db.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000120ae4e31 in bcopy () from /lib/libc.so.7
(gdb) bt
#0  0x0000000120ae4e31 in bcopy () from /lib/libc.so.7
#1  0x0000000120aa9e10 in fseek () from /lib/libc.so.7
#2  0x0000000000000000 in ?? ()
Previous frame identical to this frame (corrupt stack?)
(gdb)

Please advise

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/13877] gdb coredumps on FreeBSD ia64
  2012-03-20 10:46 [Bug gdb/13877] New: gdb coredumps on FreeBSD ia64 mexas at bristol dot ac.uk
@ 2012-03-28 18:28 ` tromey at redhat dot com
  2012-03-29  8:56 ` [Bug gdb/13877] gdb7.4 doesn't build " mexas at bristol dot ac.uk
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2012-03-28 18:28 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13877

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-03-28 18:27:37 UTC ---
(In reply to comment #0)
> I've GDB 6.1.1 on FreeBSD 10-current ia64.

That is extremely old.  It was released in 2004.

> (There's 7.4 in FreeBSD ports, but it doesn't build:

> Please advise

I think your best bet would be to make 7.4 build, then start there.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/13877] gdb7.4 doesn't build on FreeBSD ia64
  2012-03-20 10:46 [Bug gdb/13877] New: gdb coredumps on FreeBSD ia64 mexas at bristol dot ac.uk
  2012-03-28 18:28 ` [Bug gdb/13877] " tromey at redhat dot com
@ 2012-03-29  8:56 ` mexas at bristol dot ac.uk
  2012-03-29  9:05 ` mexas at bristol dot ac.uk
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mexas at bristol dot ac.uk @ 2012-03-29  8:56 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13877

mexas at bristol dot ac.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|6.1                         |7.4
            Summary|gdb coredumps on FreeBSD    |gdb7.4 doesn't build on
                   |ia64                        |FreeBSD ia64

--- Comment #2 from mexas at bristol dot ac.uk 2012-03-29 08:56:25 UTC ---
ok, thanks. Here's the config.log for 7.4:

http://seis.bris.ac.uk/~mexas/gdb7.4-2_FreeBSD_ia64.log

The error is:

checking whether <thread_db.h> has TD_NOTLS... no
checking whether <sys/syscall.h> has __NR_tkill... no
checking whether ADDR_NO_RANDOMIZE is declared... no
checking compiler warning flags...  -Wall -Wdeclaration-after-statement
-Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused
-Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts 
checking for cygwin... no
checking for ELF support in BFD... yes
checking for X... libraries /usr/local/lib, headers /usr/local/include
configure: error: "*** Gdb does not support native target
ia64-portbld-freebsd9.9"
gmake[1]: *** [configure-gdb] Error 1
gmake[1]: Leaving directory `/usr/ports/devel/gdb/work/gdb-7.4'
gmake: *** [all] Error 2
*** Error code 1

Can you advise further

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/13877] gdb7.4 doesn't build on FreeBSD ia64
  2012-03-20 10:46 [Bug gdb/13877] New: gdb coredumps on FreeBSD ia64 mexas at bristol dot ac.uk
  2012-03-28 18:28 ` [Bug gdb/13877] " tromey at redhat dot com
  2012-03-29  8:56 ` [Bug gdb/13877] gdb7.4 doesn't build " mexas at bristol dot ac.uk
@ 2012-03-29  9:05 ` mexas at bristol dot ac.uk
  2012-03-29  9:20 ` palves at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mexas at bristol dot ac.uk @ 2012-03-29  9:05 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13877

--- Comment #3 from mexas at bristol dot ac.uk 2012-03-29 09:04:14 UTC ---
Just realised, since it fails in /gdb-7.4/gdb,
you probably also want to see this log file:

http://seis.bris.ac.uk/~mexas/config.log

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/13877] gdb7.4 doesn't build on FreeBSD ia64
  2012-03-20 10:46 [Bug gdb/13877] New: gdb coredumps on FreeBSD ia64 mexas at bristol dot ac.uk
                   ` (2 preceding siblings ...)
  2012-03-29  9:05 ` mexas at bristol dot ac.uk
@ 2012-03-29  9:20 ` palves at redhat dot com
  2012-03-29  9:43 ` mexas at bristol dot ac.uk
  2012-03-29  9:58 ` palves at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: palves at redhat dot com @ 2012-03-29  9:20 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13877

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #4 from Pedro Alves <palves at redhat dot com> 2012-03-29 09:19:22 UTC ---
> configure: error: "*** Gdb does not support native target
> ia64-portbld-freebsd9.9"

Sorry, there's no such thing as an ia64 freebsd gdb port in the FSF tree.
The only ia64 ports are GNU/Linux, HPUX, VMS, and bare elf.  Someone needs 
to contribute such a port.

The 6.1.1 must have had local changes to add such support.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/13877] gdb7.4 doesn't build on FreeBSD ia64
  2012-03-20 10:46 [Bug gdb/13877] New: gdb coredumps on FreeBSD ia64 mexas at bristol dot ac.uk
                   ` (3 preceding siblings ...)
  2012-03-29  9:20 ` palves at redhat dot com
@ 2012-03-29  9:43 ` mexas at bristol dot ac.uk
  2012-03-29  9:58 ` palves at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: mexas at bristol dot ac.uk @ 2012-03-29  9:43 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13877

--- Comment #5 from mexas at bristol dot ac.uk 2012-03-29 09:43:06 UTC ---
ok, I get it: gdb_host is undefined.
Basically there's no gdb/config/ia64/fbsd.mh

I see that most .mh files are just
a short list of some object files.

In Gdb 7.0 there's only gdb/config/ia64/linux.mh
In Gdb 6.6 there's also a generic gdb/config/ia64/ia64.mh

What do .mh files do?
And how to write them?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/13877] gdb7.4 doesn't build on FreeBSD ia64
  2012-03-20 10:46 [Bug gdb/13877] New: gdb coredumps on FreeBSD ia64 mexas at bristol dot ac.uk
                   ` (4 preceding siblings ...)
  2012-03-29  9:43 ` mexas at bristol dot ac.uk
@ 2012-03-29  9:58 ` palves at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: palves at redhat dot com @ 2012-03-29  9:58 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13877

--- Comment #6 from Pedro Alves <palves at redhat dot com> 2012-03-29 09:57:34 UTC ---
See "Adding a New Host" in the "GDB Internals" manual.  Basically, these are
makefile fragments, that the main Makefile sources in order to include objects
and definitions that only make sense for a particular host.  Among these
objects would be a new ia64-fbsd-nat.o object.  Of course, the corresponding
ia64-fbsd-nat.c would need to be written.  This file would contain the glue
between common FreeBSD bits, and IA64 specifics.  Best see one of the existing
ports, and model on it.  See config/i386/fbsd64.mh, for the x86_64 FreeBSD one.

If you're interested in doing this, please do see the CONTRIBUTE file as linked
by <http://sourceware.org/gdb/contribute/>.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2012-03-29  9:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-20 10:46 [Bug gdb/13877] New: gdb coredumps on FreeBSD ia64 mexas at bristol dot ac.uk
2012-03-28 18:28 ` [Bug gdb/13877] " tromey at redhat dot com
2012-03-29  8:56 ` [Bug gdb/13877] gdb7.4 doesn't build " mexas at bristol dot ac.uk
2012-03-29  9:05 ` mexas at bristol dot ac.uk
2012-03-29  9:20 ` palves at redhat dot com
2012-03-29  9:43 ` mexas at bristol dot ac.uk
2012-03-29  9:58 ` palves at redhat dot com

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).