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]

Differences between versions 2.95 & 2.8.1 when using Purify with dynamic libraries


Hi,

	It may not be bug in GCC, however there is some strange inconsistency when using GNU 2.95.2 Solaris 2.5.1 compiled modules (in particular, dynamic libraries) with 4.1 or 5.1 Purify. After Purifying the program application starts crashing whenever it attempts to access global objects allocated in dynamic libraries.

	It happens with GNU linker 2.9.1 as well as with /usr/ccs/bin/ld Sun linker.

	There is no problem with GCC 2.8.1 or earlier versions. So probably this problem was introduced in one of the versions GCC 2.9x (when generating code -fPIC or -fpic). If same dynamic librares are compiled & linked as static, then Purifed binary stops crashing in this library & problem moves to other dynamic library. Eventually it reapperes somewhere in libc..., which effectively makes Purify unusable. 

	GNU Checker ("GNU Purify") also fails to link dynamic libraries.

	Just wondering if anyone has ever experiences something similar before.

Thank you, 
-- 
Routchiev Mikhail 

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