- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 64bit dlclose crashing.
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
07-23-2003 06:30 PM
07-23-2003 06:30 PM
64bit dlclose crashing.
I am building 64bit application in which following
is scenario.
from a.out, f.sl is dlopened.
from f.sl, g.sl is dlopened.
f.sl is run-time linked with g.sl.
When f.sl tries to dlclose g.sl, program
says segmentation fault(core dumped).
in folloing ways libraries are built.
cc +DD64 -c *.c
ld -b f.o -ldl -o libf.sl
ld -b -L . -lf -ldl -o libg.sl
ld main.o -lc -ldl
Things are working fine with 32 bit application using shl_load/shl_unload.
Please enlighten me what is going wrong?
Thanx in advance.
-Abhay M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2003 11:38 PM
07-23-2003 11:38 PM
Re: 64bit dlclose crashing.
Check your patch level and the values of
Parameter: maxssiz
Parameter: maxssiz_64bit
In the kernel
This could be a memory leak.
Which OS version are you using.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 01:43 AM
07-29-2003 01:43 AM
Re: 64bit dlclose crashing.
ld -b -L . -lf -ldl -o libg.sl
this doesnt build libg.sl - because of an initial assumption that the linker driver makes about the link being a 32-bit one)- but you cant make it build qith that link line even if you call /usr/ccs/lbin/ld64 directly. so is your libg.sl really built ?
do you know for sure that it is dlclose that is causing the crash ?
i dont see a problem with the following case:
----
cat > 1.c << \!
foo ()
{
bar () ;
}
!
cat > 2.c << \!
#include
#include
bar ()
{
printf ("hello world\n");
}
baz ()
{
void *dl = dlopen ("lib1.sl",RTLD_LAZY);
if (dl == NULL)
puts(dlerror());
void (*foo)() = dlsym (dl,"foo");
if (foo == NULL)
puts(dlerror());
else
(*foo)();
dlclose(dl);
}
!
cat > 3.c << \!
#include
#include
main () {
void *dl = dlopen ("lib2.sl",RTLD_LAZY);
if (dl == NULL)
puts(dlerror());
void (*baz)() = dlsym (dl,"baz");
if (baz == NULL)
puts(dlerror());
(*baz)();
dlclose(dl);
}
!
\rm lib[12].sl [123].o a.out
cc -g -c +DD64 +z [123].c
ld -b 2.o -o lib2.sl -ldl
ld -b 1.o -ldl -L. -l2 -o lib1.sl
ld 3.o -lc -ldl
./a.out
----
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 10:18 AM
07-30-2003 10:18 AM
Re: 64bit dlclose crashing.
but things u put are also not
working on OS 11.11 and 11.0.
On which platform, you r building?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 08:32 PM
07-30-2003 08:32 PM
Re: 64bit dlclose crashing.
"what /usr/ccs/lbin/ld64" gives me
92453-07 linker command s800.sgs ld PA64 B.11.36 PBO 030403
so make sure you have at least B.11.33
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 12:26 AM
08-11-2003 12:26 AM
Re: 64bit dlclose crashing.
--
ranga