This is the mail archive of the gcc-bugs@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]

c/696: pointer array in shared library coredumps.



>Number:         696
>Category:       c
>Synopsis:       pointer array in shared library coredumps.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 26 13:56:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     jim main
>Release:        gcc version 2.95.2 19991024 (Release)
>Organization:
>Environment:
? paths, etc?
>Description:
array of pointers to character strings in shared library 
generates a coredump and the pointer to the strings are 
not valid. This verifed with gdb.  This same code compiled 
with sun's version of cc and ibm's version works correctly.
If it's me, I apologize.  Thank you.
>How-To-Repeat:
make clean
make
make junker
run junker, initial Bean Count: 0 then coredump
make clean
make testcode
run junker, NO coredump and messages displayed.
>Fix:
only thing that works is to take the array out of the library
and compile in the code directly. But many other routines will
want to use the same function and they would have to copy the
code.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-tar; name="testcode.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testcode.tar.gz"

H4sICDGY+DkAA3Rlc3Rjb2RlLnRhcgDtV1FPGzkQ5nX9K0aBSgklyS4kRIJSHQkpzZUmFdm2OrUo
dbzexGWzXtm70FzFf7+xd0MJvcKddJSTmnlI1uPxjGfG/jxTq689OLluw201Xfx3vZ2dXfPveo2m
/S9ozW15rV3Pa7i7HvLNR2ut+fBbW1vLdEoVmpxREd8tx5W+Y954sb27nTvV+ilb/y+oVkf/0xp7
SBuu57q7jR/m3/N2mnn+3R0Mnc3/dnMbQ/mQm1rQL55/wmSsU2BTqmBzwtOROQ4cf5WIJ+Us1mIS
8wBEnIKdqewTYj4Eg5srh/6h3x0N/dNe//jDGRwA+Uqc0rMsPo/lZZwvfV7aQl5/4I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TfmMZ8/Gw2pg
OI3yoZIzK5W/SIsdmErfir3Dx4mOI9Nh3Cy7bzUfr2mCrmgtmaCmXflxF5K3EOSuZm65lxt2/Der
hu4RG7pbfRyO7GUpajOOnVne3eXcf9PdLfTc0d1Zkby7W+dxIEILCxYM7A3CH3OrJ3j3LevbFcLY
2GOdUgQKGkm8QKYAsafPOGEA2PpG1YRtFd5v4uDC+Fk4Wmwun0xShWl0TNTLxRT+PTsAz8OPp09N
OeVgiJwwwcClIfa7AVdqC0ptrKownxnmUOGN3YMnwce4tAWiYjxHvahsEZjvjkU5l/pO6RNtdfyN
uJXHiDn8i0jLbmUfa58rE+LHRv8VrWhFvzL9BWrJFqoAGgAA

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