HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using LD_PRELOAD for Null pointer derefrencing.
Operating System - HP-UX
1834508
Members
2413
Online
110068
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 09:17 PM
02-05-2002 09:17 PM
Using LD_PRELOAD for Null pointer derefrencing.
Hi,
I am porting my code from Sun Solaris to
HP-UX 11.0.I am facing a typical
problem for which I need some help.
In our code there is one function call
which dereferences the NULL
pointer whenever this is called and
this function is called many number of
times from different places of our
project code. So in Sun Solaris we set
LD_PRELAOD=/usr/lib/0@0.so.1 to get rid
of this NULL dereferencing. So now I
want to do the same in HP-UX also to
get rid of this Null dereferencing
problem. So can you please tell me, in
HP-UX 11.0, which library (means
which .sl) I have to include in
LD_PRELOAD.In HP document I found that
by including the option '-Z' at linking
time,will take care of this
dereferencing of the null
pointers. I included this option in
compiling (cc -Z) and linking (ld -Z)
also. But it didn't work for me.
Can any one please help me in finding
out the library which I have to include
in LD_PRELOAD or is there any other way to solve this problem.
Thanks and Regards
Vamsi Sudhakar.
----------------------------
I am porting my code from Sun Solaris to
HP-UX 11.0.I am facing a typical
problem for which I need some help.
In our code there is one function call
which dereferences the NULL
pointer whenever this is called and
this function is called many number of
times from different places of our
project code. So in Sun Solaris we set
LD_PRELAOD=/usr/lib/0@0.so.1 to get rid
of this NULL dereferencing. So now I
want to do the same in HP-UX also to
get rid of this Null dereferencing
problem. So can you please tell me, in
HP-UX 11.0, which library (means
which .sl) I have to include in
LD_PRELOAD.In HP document I found that
by including the option '-Z' at linking
time,will take care of this
dereferencing of the null
pointers. I included this option in
compiling (cc -Z) and linking (ld -Z)
also. But it didn't work for me.
Can any one please help me in finding
out the library which I have to include
in LD_PRELOAD or is there any other way to solve this problem.
Thanks and Regards
Vamsi Sudhakar.
----------------------------
Together we can win....
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 09:30 PM
02-05-2002 09:30 PM
Re: Using LD_PRELOAD for Null pointer derefrencing.
Hi,
Do you have a complete compiler installed? If not you can get a GCC version from the porting centre. HPUX by default does not come with a full 'C' compiler.
You can source 'GCC' from here:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.0.1/
-Michael
Do you have a complete compiler installed? If not you can get a GCC version from the porting centre. HPUX by default does not come with a full 'C' compiler.
You can source 'GCC' from here:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.0.1/
-Michael
Anyone for a Mutiny ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 09:42 PM
02-05-2002 09:42 PM
Re: Using LD_PRELOAD for Null pointer derefrencing.
Hi Michael,
Thank you very much for your response. I am using cc compiler but not GCC. Also all of my components and libraries are compiled succesfully. But i am getting this problem at linking time. At linking time only my component gives core if it is using the library that contains the function lc_gettext. (This is the function which is derefrencing the NULL pointer).As i mentioned earlier also we solved this problem in Solaris by setting LD_PRELOAD to 0@0.so.1. So my question is what i have to do in HP-UX 11.0
I hope now the problem is clear to you.
Thanks and regards
Vamsi Sudhakar.
Thank you very much for your response. I am using cc compiler but not GCC. Also all of my components and libraries are compiled succesfully. But i am getting this problem at linking time. At linking time only my component gives core if it is using the library that contains the function lc_gettext. (This is the function which is derefrencing the NULL pointer).As i mentioned earlier also we solved this problem in Solaris by setting LD_PRELOAD to 0@0.so.1. So my question is what i have to do in HP-UX 11.0
I hope now the problem is clear to you.
Thanks and regards
Vamsi Sudhakar.
Together we can win....
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP