public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34294] New: Strange transmission of symbols between dynamically opened libs
@ 2007-11-29 14:29 dvt at isoft dot fr
2007-11-29 18:09 ` [Bug c++/34294] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: dvt at isoft dot fr @ 2007-11-29 14:29 UTC (permalink / raw)
To: gcc-bugs
We have several libraries that we load dynamically (dlopen), and from which we
use only one symbol, in which we use the same variable (char **) in the cpp
files. These symbols are never shared between libraries, but on this version
(4.2.1) of gcc, we experience big problems, because these homonym variables are
shared between the libraries : it looks like is we get the value of the first
dlopened library in all other libraries. This behaviour did not happen in gcc3,
neither does it on other compilers (MSDEV, IBM XLC, ...). To solve it, we had
to give a unique name to our variables : this works but is very dangerous,
since we are never sure that there will not be a side effect between normally
independant libraries.
--
Summary: Strange transmission of symbols between dynamically
opened libs
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dvt at isoft dot fr
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34294
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/34294] Strange transmission of symbols between dynamically opened libs
2007-11-29 14:29 [Bug c++/34294] New: Strange transmission of symbols between dynamically opened libs dvt at isoft dot fr
@ 2007-11-29 18:09 ` pinskia at gcc dot gnu dot org
2007-11-29 18:16 ` dvt at isoft dot fr
2008-01-25 23:13 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-29 18:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-11-29 18:08 -------
Testcase? It might be because you are using global bindings for the shared
libraries.
Note this really cannot be a GCC bug as GCC does not do dynamic loading.
"MSDEV, IBM XLC", have you tried GCC on Windows or AIX before?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34294
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/34294] Strange transmission of symbols between dynamically opened libs
2007-11-29 14:29 [Bug c++/34294] New: Strange transmission of symbols between dynamically opened libs dvt at isoft dot fr
2007-11-29 18:09 ` [Bug c++/34294] " pinskia at gcc dot gnu dot org
@ 2007-11-29 18:16 ` dvt at isoft dot fr
2008-01-25 23:13 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: dvt at isoft dot fr @ 2007-11-29 18:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dvt at isoft dot fr 2007-11-29 18:16 -------
(In reply to comment #1)
> Testcase? It might be because you are using global bindings for the shared
> libraries.
> Note this really cannot be a GCC bug as GCC does not do dynamic loading.
> "MSDEV, IBM XLC", have you tried GCC on Windows or AIX before?
In fact, our application is compiled on a lot of systems with gcc (<4 for all
others) : linux (fedora5), solaris (sparc and sparcv9), HP-UX (PA-RISSC 32 and
32 bits) and we never had this problem before. So, on this linux system
(centos4), it works when compiled with gcc 3.4, but not with gcc 4.2.1, that is
why we are sure it must come from gcc 4.2.1!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34294
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/34294] Strange transmission of symbols between dynamically opened libs
2007-11-29 14:29 [Bug c++/34294] New: Strange transmission of symbols between dynamically opened libs dvt at isoft dot fr
2007-11-29 18:09 ` [Bug c++/34294] " pinskia at gcc dot gnu dot org
2007-11-29 18:16 ` dvt at isoft dot fr
@ 2008-01-25 23:13 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-25 23:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-01-25 22:50 -------
Nothing to be done without a testcase.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34294
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-25 22:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-29 14:29 [Bug c++/34294] New: Strange transmission of symbols between dynamically opened libs dvt at isoft dot fr
2007-11-29 18:09 ` [Bug c++/34294] " pinskia at gcc dot gnu dot org
2007-11-29 18:16 ` dvt at isoft dot fr
2008-01-25 23:13 ` rguenth at gcc dot gnu dot org
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).