Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2012 16:59:52 +0200
From:      Hans Ottevanger <hans@beastielabs.net>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-ports@freebsd.org, Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
Subject:   Re: gdb75 dumps core on startup
Message-ID:  <503B8B68.50405@beastielabs.net>
In-Reply-To: <503B7E3B.9010306@FreeBSD.org>
References:  <503B7E3B.9010306@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/27/12 16:03, Andriy Gapon wrote:
> Program terminated with signal 11, Segmentation fault
> ...
> #0  0x00000000004777e2 in i386_use_watchpoints ()
> #1  0x0000000000476bbd in _initialize_amd64fbsd_nat ()
> #2  0x000000000060deea in initialize_all_files ()
> #3  0x00000000005e710f in gdb_init ()
> #4  0x0000000000549086 in relocate_gdb_directory ()
> #5  0x0000000000547aa4 in catch_errors ()
> #6  0x0000000000548bb4 in gdb_main ()
> #7  0x0000000000457ea9 in main ()
>
> This is on amd64 head.
>

I can confirm that this happens on my not so recent 10-CURRENT 
(r239353), also amd64.

I see a similar issue on 8.3-STABLE (r239646) on amd64:

$ gdb75 ./a.out
[GDB will not be able to debug user-mode threads: 
/usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
Segmentation fault: 11 (core dumped)

while on i386 gcc75 works OK, but I see:

$ gdb75 ./a.out
[GDB will not be able to debug user-mode threads: 
/usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb (GDB) 7.5 [GDB v7.5 for FreeBSD]
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd8.3".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/hans/a.out...done.
(gdb)

I do not know if the message about the undefined symbol is related to 
the issue at hand. The previous version (gcc741) did not show this 
message and functioned perfectly, also on amd64.

Kind regards,

Hans



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?503B8B68.50405>