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
MEMORY(2)							System Calls Manual							 MEMORY(2)

NAME
memccpy, memchr, memcmp, memcpy, memmove, memset - memory operations SYNOPSIS
#include <u.h> #include <libc.h> void* memccpy(void *s1, void *s2, int c, long n) void* memchr(void *s, int c, long n) int memcmp(void *s1, void *s2, long n) void* memcpy(void *s1, void *s2, long n) void* memmove(void *s1, void *s2, long n) void* memset(void *s, int c, long n) DESCRIPTION
These functions operate efficiently on memory areas (arrays of bytes bounded by a count, not terminated by a zero byte). They do not check for the overflow of any receiving memory area. Memccpy copies bytes from memory area s2 into s1, stopping after the first occurrence of byte c has been copied, or after n bytes have been copied, whichever comes first. It returns a pointer to the byte after the copy of c in s1, or zero if c was not found in the first n bytes of s2. Memchr returns a pointer to the first occurrence of byte c in the first n bytes of memory area s, or zero if c does not occur. Memcmp compares its arguments, looking at the first n bytes only, and returns an integer less than, equal to, or greater than 0, according as s1 is lexicographically less than, equal to, or greater than s2. The comparison is bytewise unsigned. Memcpy copies n bytes from memory area s2 to s1. It returns s1. Memmove works like memcpy, except that it is guaranteed to work if s1 and s2 overlap. Memset sets the first n bytes in memory area s to the value of byte c. It returns s. SOURCE
All these routines have portable C implementations in /sys/src/libc/port. Most also have machine-dependent assembly language implementa- tions in /sys/src/libc/$objtype. SEE ALSO
strcat(2) BUGS
ANSI C does not require memcpy to handle overlapping source and destination; on Plan 9, it does, so memmove and memcpy behave identically. If memcpy and memmove are handed a negative count, they abort. MEMORY(2)