From owner-freebsd-ports@FreeBSD.ORG Mon Aug 27 15:07:21 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 351EE1065680; Mon, 27 Aug 2012 15:07:21 +0000 (UTC) (envelope-from luca.pizzamiglio@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id E369C8FC1C; Mon, 27 Aug 2012 15:07:20 +0000 (UTC) Received: by ialo14 with SMTP id o14so10618861ial.13 for ; Mon, 27 Aug 2012 08:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ek9SJvYiLfAqk0ZDzrxHUoOFKR++EH/Jg5xg65ILZwE=; b=YgquFqVolsLKHzTzNBxyV4r6ebOo4dsyThCmdIgt4q2eYZ+BZcUFt5QORW/4OvEK3W J9ToH9laEGISpMcIy9zNZUEorjh++XCUzvyX8TUOYGwj39Tli+HxUZ9AwneuFrnKCnIU K8rxOQaT6FK8xCWbJj4KiEluWAqgrR+AhI5lWJ60GtIVqY1N3CqFATQ4Yg2Owj81OFQo 6ggiRCFBtHVM2tCeSdlFMNHklqcwFMTimAnvRD17BC2PzIOSgKDwuhFFAvlrUgXc2+wn IMBJ9V4nLlJcIqBPXUY0vaATXPJVJl1xT4Feh8r4jrlHfjgPUx2Fznzhdfla+SVnPB8w DEWg== Received: by 10.50.186.130 with SMTP id fk2mr10503173igc.60.1346080039955; Mon, 27 Aug 2012 08:07:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.59.211 with HTTP; Mon, 27 Aug 2012 08:06:59 -0700 (PDT) In-Reply-To: <503B8B68.50405@beastielabs.net> References: <503B7E3B.9010306@FreeBSD.org> <503B8B68.50405@beastielabs.net> From: Luca Pizzamiglio Date: Mon, 27 Aug 2012 17:06:59 +0200 Message-ID: To: Hans Ottevanger Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports@freebsd.org, Andriy Gapon Subject: Re: gdb75 dumps core on startup X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2012 15:07:21 -0000 Hi, Hans : have you tried the patch included here ports/171109? Andriy: thanks for the report, I create a patch for that as soon as I can! Regards, Luca On Mon, Aug 27, 2012 at 4:59 PM, Hans Ottevanger wrote: > 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 > > 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: > ... > 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