This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/8847: dynamic_cast segfaults with shared lib


>Number:         8847
>Category:       c++
>Synopsis:       dynamic_cast segfaults with shared lib
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 06 08:56:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hans Utz
>Release:        3.2.1
>Organization:
>Environment:
Linux SuSE 7.3 box (Athlon)
gcc -v:
Reading specs from /data1/hutz/3.2/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs
Configured with: ../gcc-3.2.1/configure --prefix=/data1/hutz/3.2/gcc
Thread model: posix
gcc version 3.2.1
>Description:
When compiling the attached minimal test program linking it
with libGLU.so.1.3 and libGL, the execution fails with a 
segmentation fault on the dynamic_cast statement. - 
When compiling with just libGL or no library everything 
works fine.

g++ Test.cc              # okay
g++ Test.cc -lGL         # okay
g++ Test.cc -lGLU -lGL   # segfault

I know that it is not a good test case, as it depends on
some library on some distribution, but maybe it's a
starting point for a better test case. - As I don't know
how to find out about what's going wrong when linking with 
libGLU I'm stuck.

Thanks,
Hans 
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="Test.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Test.cc"

c3RydWN0IEZvbwp7CiAgdmlydHVhbCB+Rm9vKCk7Cn07CgpGb286On5Gb28oKSB7fQoKc3RydWN0
IEJhciA6IHB1YmxpYyBGb28KewogIHZpcnR1YWwgfkJhcigpOwp9OwoKQmFyOjp+QmFyKCkge30K
CmludCBtYWluKGludCwgY2hhciAqKikKewogIEZvbyAqIGZvbyA9IG5ldyBCYXIoKTsKICBCYXIg
KiBiYXIgPSBkeW5hbWljX2Nhc3Q8QmFyICo+KGZvbyk7CgogIHJldHVybiAwOwp9Cg==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]