memory problem in AIX shared libraries


View Poll Results: how was the last answer?
dont have any idea for this option 0 0%
dont know hw it works 0 0%
Voters: 0. This poll is closed

 
Thread Tools Search this Thread
Operating Systems AIX memory problem in AIX shared libraries
# 1  
Old 12-07-2006
Data memory problem in AIX shared libraries

Hi All,

I'm facing the following issue with my shared libraries in AIX.

memory related calls such as memset, memcpy, malloc etc are failing miserably.


there is something wrong with stack/memory which i can't guess.

i've used the following flags to build my libraray:

ld -G -bexpfull -bnoentry -bnogc -o <shared library name> <object files>

and the follwong option to compile the c files

gcc -maix64 -c -shared -fPIC .




somone please help me out



thanks


Abhinav
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

shared libraries problem

hi, while running the below query it gives the shared libraries prmblem, $ cd /oracle/app/product/fmw/asinst_1/bin/ $ ./opmnctl status /oracle/app/product/fmw/Oracle_IDM1/opmn/bin/opmn: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: Permission... (0 Replies)
Discussion started by: rahulsword
0 Replies

2. Emergency UNIX and Linux Support

Memory usage of a process having shared libraries

Hi, I have the following two processes that's built with static libraries. Both the process have many common libraries. -rwxr-xr-x 1 xxx xxx 152946280 Oct 15 08:38 server1 -rwxr-xr-x 1 xxx xxx 41633880 Oct 15 08:39 server2. I built these two server processes making all the... (1 Reply)
Discussion started by: srivatsan_vn
1 Replies

3. Programming

Memory usage of a process having shared libraries

Hi, I have the following two processes that's built with static libraries. Both the process have many common libraries. -rwxr-xr-x 1 xxx xxx 152946280 Oct 15 08:38 server1 -rwxr-xr-x 1 xxx xxx 41633880 Oct 15 08:39 server2. I built these two server processes making all the... (1 Reply)
Discussion started by: srivatsan_vn
1 Replies

4. AIX

Problem with AIX: shared libraries aren't loaded

Hello guys, I have a trouble when running an application in AIX, I've compiled and the LIBRARY_PATH seems ok, but I get the following message: rtld: 0712-001 Symbol __pthread was referenced from module main_app(), but a runtime definition of the symbol was not found ldd... (4 Replies)
Discussion started by: edgarvm
4 Replies

5. UNIX for Advanced & Expert Users

AIX: Finding processes attached to shared memory

Is there some way to tell what processes are attached to a shared memory segment? We have a system on which I perform "icps -ma" and there are several segments pending deletion having numerous processes attached to them and I can't tell what processes they are. Neither the creator's pid nor last... (7 Replies)
Discussion started by: DreamWarrior
7 Replies

6. Linux

Shared Memory problem

hay guys I want to use shared memory for communication between multiple processes, each one can write and read. I am unable to build the logic, should I go for each process has shared memory with other or should I create one block of memory and shared between all of them. Second is better but I... (0 Replies)
Discussion started by: ADEE
0 Replies

7. HP-UX

shared memory problem

Hi, there On HP-UX, there is a problem about shared memory. The code open the data file and use the "mmap" system call to map into the shared memory, when the contents are make changes, there is no effective on shared memory. The codes look like the following: ...... (0 Replies)
Discussion started by: Frank2004
0 Replies

8. Linux

Shared Libraries

How do i make a library shared say i have a library a.so which i have just compiled. I want to make it shared how do i make it Next Queation is what is the difference between a.so.0 a.so.1 a.so.2 & a.so :rolleyes: (1 Reply)
Discussion started by: wojtyla
1 Replies

9. Programming

shared libraries

I am compiling code which produces .a and .la libraries. How can I produce .so libraries? I know that gcc -shared does but how? (2 Replies)
Discussion started by: thalex
2 Replies

10. Programming

Shared libraries

Hello everybody, I am having major problems at the moment with shared libraries and I have to little knowledge of them to solve them. So please, please help me :) Ok this is the problem: I have a library A, which uses B and C, and C uses again D. If I try to run A as plugin in apache,... (0 Replies)
Discussion started by: Micky
0 Replies
Login or Register to Ask a Question
shm_unlink(2)							System Calls Manual						     shm_unlink(2)

NAME
shm_unlink - unlink a shared memory object SYNOPSIS
DESCRIPTION
The system call removes the name of the shared memory object named by the string pointed to by name. If one or more references to the shared memory object exists when the object is unlinked, the name will be removed before returns, but the removal of the memory object con- tents will be postponed until all open and map references to the shared memory object have been removed. RETURN VALUE
returns the following values: Successful completion. Failure, is set to indicate the error. ERRORS
If fails, is set to one of the following values: [EACCES] Permission to unlink the named shared memory object is denied. [ENAMETOOLONG] The length of the name string exceeds or the length of a (pathname) component of the name string exceeds while is in effect. [ENOENT] The named shared memory object does not exist. [ENOSYS] is not supported by the implementation. SEE ALSO
shm_open(2), close(2), mmap(2), munmap(2), privileges(5). STANDARDS CONFORMANCE
shm_unlink(2)