public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/8142: '$' in class names vs. dlopen 'dynamic string tokens'
@ 2002-10-04  6:36 uweigand
  0 siblings, 0 replies; 2+ messages in thread
From: uweigand @ 2002-10-04  6:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8142
>Category:       libgcj
>Synopsis:       '$' in class names vs. dlopen 'dynamic string tokens'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 04 06:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Weigand
>Release:        gcc 3.3
>Organization:
>Environment:
Linux (glibc 2.x, x >= 1)
>Description:
libgcj passes class names to dlopen to find shared
libraries implementing the class.  In particular, 
in the case of inner classes, this name will contains 
'$' characters.

However, the Linux dlopen implementation interprets '$'
to signify a 'dynamic string token' that is subject to
replacement.  Currently, Linux implements the dynamic
string tokens $ORIGIN and $PLATFORM.

Thus, if an inner class happens to be named ORIGIN or
PLATFORM, dlopen will substitute those strings, and
either the intended shared library will not be found,
or possibly even an incorrect library will be loaded.

Furthermore, there is a bug in glibc 2.2.5 that causes
dlopen to go into an endless loop if the path contains
a '$' that is not followed by one of the recognized
dynamic string tokens.  This causes libgcj to hang 
whenever it tries to load an inner class.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: libgcj/8142: '$' in class names vs. dlopen 'dynamic string tokens'
@ 2002-11-02 15:35 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2002-11-02 15:35 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, nobody, tromey, uweigand

Synopsis: '$' in class names vs. dlopen 'dynamic string tokens'

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sat Nov  2 15:35:01 2002
Responsible-Changed-Why:
    I'm handling the administrivia
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Sat Nov  2 15:35:01 2002
State-Changed-Why:
    A patch to fix this was checked in

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8142


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

end of thread, other threads:[~2002-11-02 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-04  6:36 libgcj/8142: '$' in class names vs. dlopen 'dynamic string tokens' uweigand
2002-11-02 15:35 tromey

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