Normally I am using:

a) Create a link as root
ln -s /lib/64/libumem.so.1 /usr/lib/secure/64/libumem.so.1
ln -s /lib/libumem.so.1 /usr/lib/secure/libumem.so.1
ln -s /lib/64/libumem.so /usr/lib/secure/64/libumem.so
ln -s /lib/libumem.so /usr/lib/secure/libumem.so


b) Change srx/.profile
UMEM_DEBUG=default,verbose
export UMEM_DEBUG
UMEM_LOGGING=transaction
export UMEM_LOGGING


c) Change /etc/profile
UMEM_DEBUG=default,verbose
export UMEM_DEBUG
UMEM_LOGGING=transaction
export UMEM_LOGGING


D)
LD_PRELOAD_64=/lib/secure/64/libgcc_s.so.1:/lib/secure/64/libilib.so:/us
r/lib/secure/64/libumem.so.1
LD_PRELOAD_32=/usr/lib/secure/libumem.so.1



-valdemar





-----Original Message-----
From: mdb-discuss-boun...@opensolaris.org
[mailto:mdb-discuss-bounces at opensolaris.org] On Behalf Of ext Dmitry
Samersoff
Sent: Friday, May 08, 2009 8:01 AM
To: Renil Thomas
Cc: mdb-discuss at opensolaris.org
Subject: Re: [mdb-discuss] libumem does not load

Renil,

Is your program setuid ?
What shell are you using ?

If not:

Create a shell script:

#!/bin/sh

LD_PRELOAD=/usr/lib/libumem.so
UMEM_DEBUG=audit

export LD_PRELOAD UMEM_DEBUG

pmap /bin/ls

and check if libumem loaded

if yes - replace /bin/ls to your program

-Dmitry

Renil Thomas wrote:
> Hi Experts,
> 
> A program with ownership bin:bin, I use :
> 
> LD_PRELOAD=/usr/lib/libumem.so UMEM_DEBUG=audit  ./"program"
> then use "gcore" to generate the core dump.
> 
> While using : #mdb core.x
> 
> the libumem.so is not getting loaded. I even tried using the following
in mdb :
> 
> ::sysbp _exit
> ::run
> ::load libumem 
> 
> But still, gets the below error :
>> ::load libumem
> mdb: failed to read umem_max_ncpus: unknown symbol name
> mdb: libumem module failed to initialize
> 
> Please advise.


-- 
Dmitry Samersoff
J2SE Sustaining team, SPB04
* There will come soft rains ...
_______________________________________________
mdb-discuss mailing list
mdb-discuss at opensolaris.org

Reply via email to