From nobody@FreeBSD.org  Thu Apr 13 13:18:47 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A0D7216A403
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Apr 2006 13:18:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6CB4943D49
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Apr 2006 13:18:47 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k3DDIkmk009269
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Apr 2006 13:18:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k3DDIkxZ009267;
	Thu, 13 Apr 2006 13:18:46 GMT
	(envelope-from nobody)
Message-Id: <200604131318.k3DDIkxZ009267@www.freebsd.org>
Date: Thu, 13 Apr 2006 13:18:46 GMT
From: Vaclav Haisman <v.haisman@sh.cvut.cz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: GDB segfaults on my programme in both FreeBSD 6 and 5
X-Send-Pr-Version: www-2.3

>Number:         95691
>Category:       gnu
>Synopsis:       GDB segfaults on my programme in both FreeBSD 6 and 5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 13 13:20:07 GMT 2006
>Closed-Date:    
>Last-Modified:  Fri Nov 30 20:42:03 UTC 2012
>Originator:     Vaclav Haisman
>Release:        FreeBSD 6
>Organization:
SU SH
>Environment:
FreeBSD logout.sh.cvut.cz 6.0-STABLE FreeBSD 6.0-STABLE #0: Tue Jan  3 01:20:59 CET 2006     root@logout.sh.cvut.cz:/usr/obj/usr/src/sys/LOGOUT  i386
>Description:
This is my programme: http://logout.sh.cvut.cz/~wilx/imgcmp

This executable (linked against math/fftw3 and graphics/gd) crashes GDB with segmentation fault when it is loading it:

logout::wilx:~/imgcmp> gdb ./imgcmp
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 "i386-marcel-freebsd"...zsh: segmentation fault (core dumped)  gdb ./imgcmp

When I compile the source on FreeBSD 5 I get the same segfault. This is pretty bad problem for me because I cannot debug the programme (I know it is buggy.).

I can attach the source code if it shows to be necessary to find out the root cause and to fix it.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= <V.Haisman@sh.cvut.cz>
To: bug-followup@FreeBSD.org, v.haisman@sh.cvut.cz
Cc:  
Subject: Re: gnu/95691: GDB segfaults on my programme in both FreeBSD 6 and
 5
Date: Thu, 13 Apr 2006 21:12:54 +0200

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enigC1A3B935B8B8CB4CCEAB992E
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 I have realised that I have gdb dump that could be useful:
 
 (gdb) bt
 #0  0x0819f1e1 in cplus_demangle_mangled_name ()
 #1  0x0819f32f in cplus_demangle_mangled_name ()
 #2  0x0819ed58 in cplus_demangle_fill_dtor ()
 #3  0x0819f7df in cplus_demangle_type ()
 #4  0x0819f0eb in cplus_demangle_fill_dtor ()
 #5  0x081a211e in cplus_demangle_init_info ()
 #6  0x081a2269 in cplus_demangle_v3 ()
 #7  0x0819ac4f in cplus_demangle ()
 #8  0x080e0dbf in symbol_init_language_specific ()
 #9  0x080e0f29 in symbol_set_names ()
 #10 0x080ac1a1 in prim_record_minimal_symbol_and_info ()
 #11 0x08131197 in f_print_type ()
 #12 0x081314cb in f_print_type ()
 #13 0x08131820 in f_print_type ()
 #14 0x080e7801 in syms_from_objfile ()
 #15 0x080e8bdb in new_symfile_objfile ()
 #16 0x080e9720 in symbol_file_add ()
 #17 0x080c7445 in catch_errors ()
 #18 0x080c72d8 in throw_exception ()
 #19 0x080c7422 in catch_errors ()
 #20 0x080c7486 in catch_command_errors ()
 #21 0x080715c4 in main ()
 
 It looks like a problem with C++ mangled names demangling to me.
 I can confirm that it works fine with GDB 6.4. Unfortunately I had to
 GDB 6.4.
 
 --
 VH
 
 
 --------------enigC1A3B935B8B8CB4CCEAB992E
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2.2 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iQEVAwUBRD6ivW56zbtzMDG0AQKayAf9EPEAo8AUHGbsQe/DGmBF1PW7gJ1kPg0G
 ftpV3CeIQTLSNxTJ5dOT/SLPaU/FAlB1eHtY6HGk1QrAjTa6fkaEYFs9THcK5wkW
 jUE7xxwGjGSrgwTd1cP+gjPsHRUi19+XwfYQ3OcUE56asjDIWXzMRJEjOlBNvp6E
 CUAxOJlEkiXtFdA/CBxJi8UpweiMIJ03Mp5+t88SLfrFzR4I/TFH9luj3Tt2qlET
 nmfIeUTeEM9I4/FNl10QVLNiknczM02BcYWjuWnMFJ69P5oTL+FaygniBTDgDu1k
 T72AvMwLNMM0GBfgRTowrUsPmRXLBd7H/Q9Brh0sXK0nU6hZX9frXQ==
 =a9qp
 -----END PGP SIGNATURE-----
 
 --------------enigC1A3B935B8B8CB4CCEAB992E--
State-Changed-From-To: open->feedback 
State-Changed-By: emaste 
State-Changed-When: Fri Nov 30 20:41:19 UTC 2012 
State-Changed-Why:  
Could you make the crashing program available again? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95691 
>Unformatted:
