[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ld crashing at method names containing '__U'
From: |
Ian Lance Taylor |
Subject: |
Re: ld crashing at method names containing '__U' |
Date: |
12 May 2004 17:36:07 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Karl Pitrich <address@hidden> writes:
> my code contains a method "GetTypeDefinition__UserRoleList()".
>
> when linking a .so, the linker segfaults.
>
> we traced the problem to:
>
> demangler/include/bits/demangle.h:
> session<Allocator>::decode_unicode()
>
>
> the code always check for a valid hex digit after __U.
>
> is this a sane thing to do for method names?
> (is that becasue of java? c/c++ method names cannot contain unicode
> characters, afaik)
>
>
> a) the linker should not segfault, but produce an error at this point.
>
> b) checking of unicode char occurences should be ommited for method
> names. (?)
As far as I know, this should never happen with the standard GNU
binutils, as they never use that version of the demangler. It's
possible that it would happen with some versions of the GNU/Linux
binutils. For that, you should send a bug report to the bug reporting
address listed by ld --help, probably address@hidden
In any case, this problem should be fixed with the next release of the
GNU binutils, which use completely different demangler code.
Ian