memory functions crashing in AIX


 
Thread Tools Search this Thread
Top Forums Programming memory functions crashing in AIX
# 1  
Old 12-07-2006
Data memory functions crashing in AIX

Hi All,

I'm facing the following issue with my shared libraries in 64 bit 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 .




someone 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. Shell Programming and Scripting

How to execute functions or initiate functions as command line parameters for below requirement?

I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line if then... (8 Replies)
Discussion started by: saku
8 Replies

2. AIX

AIX memory issue

Currently server have load while there is no heavy things running, just oracle database/ application server oracle. I don't understand why server have heavy load, 22GB is under buffer, how to clean buffer/memory in AIX load averages: 9.42, 9.43, 9.68; 05:25:08 141 processes: 125 idle, 16... (12 Replies)
Discussion started by: learnbash
12 Replies

3. Programming

AIX dbx - attaching to a process that is crashing

Hey everyone, I'm trying to attach to a process that is crashing so I can debug the source code. I've tried this: dbx -a PID stop at "file.cpp":line# However, nothing ever breaks. The service crashes and restarts, but I never see it hitting the code. I've tried to use a core file, but... (2 Replies)
Discussion started by: ctote
2 Replies

4. AIX

Process crashing on AIX due to memory Leak

Hi All, I have a process running on my AIX 5.3 server box. The process runs fine for 5-6days but then crashes. The log file shows malloc failure and the svmon (Virtual memory size), ps -lef (SZ value) are also gradually increasing. But unfortunately MALLOCDEBUG and any other memory debugging... (3 Replies)
Discussion started by: SBatra
3 Replies

5. UNIX for Advanced & Expert Users

HP vs AIX Memory

I have 2 boxes one running AIX 5.3 and the other running HP 11.31. Both systems have the same application running but HP seems to be using more memory than AIX by almost double. I have to use 2 different methods because both machines have different backend software to look at memory. What is the... (2 Replies)
Discussion started by: kfdalton
2 Replies

6. AIX

Free Memory in aix

Hi, I want to know how to find out free physical memory in aix, (11 Replies)
Discussion started by: manoj.solaris
11 Replies

7. AIX

Memory usage on AIX

How to check the memory usage on AIX by various processes? (1 Reply)
Discussion started by: aajmani
1 Replies

8. AIX

Memory Usage in AIX

Hi All, I have a question, can you guys please help me by giving your valuable suggestons: I am using AIX 5L, running oracle 7 version. I need to increase the oracle memory to 40 MB more. Currently Oracle occupies 260M. I wanted to know whether I can increase the memory without any problem.... (3 Replies)
Discussion started by: kollam68
3 Replies

9. UNIX for Advanced & Expert Users

Memory Usage in AIX

Hi All, I have a question, can you guys please help me by giving your valuable suggestons: I am using AIX 5L, running oracle 7 version. I need to increase the oracle memory to 40 MB more. Currently Oracle occupies 260M. I wanted to know whether I can increase the memory without any problem.... (1 Reply)
Discussion started by: kollam68
1 Replies

10. UNIX for Dummies Questions & Answers

checking memory in AIX

I am using AIX 5.5 I have researched your site and found a few commands to try to check how much physical memory I have but the ones I found are not working. I was wondering does my system have a different command? I also checked the MAN pages could not find it there. Could somebody help? I... (2 Replies)
Discussion started by: rocker40
2 Replies
Login or Register to Ask a Question
TIFFmemory(3tiff)														 TIFFmemory(3tiff)

NAME
TIFFmemory, _TIFFmalloc, _TIFFrealloc, _TIFFfree, _TIFFmemset, _TIFFmemcpy, _TIFFmemcmp - memory-management-related functions for use with TIFF files SYNOPSIS
#include <tiffio.h> tdata_t _TIFFmalloc(tsize_t); tdata_t _TIFFrealloc(tdata_t, tsize_t); void _TIFFfree(tdata_t); void _TIFFmemset(tdata_t, int, tsize_t); void _TIFFmemcpy(tdata_t, const tdata_t, tsize_t); int _TIFFmemcmp(const tdata_t, const tdata_t, tsize_t); These routines are provided for writing portable software that uses libtiff. The routines hide any memory-management-related issues, such as dealing with segmented architectures found on 16-bit machines. _TIFFmalloc and _TIFFrealloc are used to dynamically allocate and reallocate memory used by libtiff, such as memory passed into the I/O routines. Memory allocated through these interfaces is released back to the system using the _TIFFfree routine. Memory allocated through one of the above interfaces can be set to a known value using _TIFFmemset, copied to another memory location using _TIFFmemcpy, or compared for equal- ity using _TIFFmemcmp. These routines conform to the equivalent ANSI C routines: memset, memcpy, and memcmp, respectively. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWTiff | +-----------------------------+-----------------------------+ |Interface stability |Uncommitted | +-----------------------------+-----------------------------+ libtiff(3), malloc(3C), memory(3C) This man page was originally written by Sam Leffler. Updated by Breda McColgan, Sun Microsystems Inc., 2004. 05 Apr 2004 TIFFmemory(3tiff)