Solved

solaris memory concerns

Posted on 1997-04-01
1
296 Views
Last Modified: 2013-12-05
I am porting a c-code based accounting package onto a solaris machine, but I have been having difficulty with memory on the machine.  The current version of the source code runs on a SCO system with no problems.

The program performs core dumps during the running of the program with errors like SIGBUS error or SIGSEGV error.

One of the core dumps stops at a line in the code that reads:

ilfc.cf = ilfb.cf + ilfb.P->blank,

where ilfc.cf is a pointer into memory,
ilfb.cf is also a pointer into memory,
and ilfb.P->blank is an offset factored into ilfb.cf.

Any reason as to why this simple command core dumps?  Other core dumps have occurred in memory to memory transfers, such as:

strcpy(address1, address2);

Are there memory concerns in solaris that are not true of other unix OS's?

Thanks in advance.
0
Comment
Question by:tferrell
1 Comment
 
LVL 1

Accepted Solution

by:
roy020697 earned 170 total points
ID: 1249800
I don't think it is a memory issue; more likely it is a portability issue. You should set the warning severity of your compiler way up to complain about everything, then examine the suspicious code which generated warnings from the compiler. Make sure the libraries you need to link with are specified in the right order.

I'm afraid that is as specific an anser I can give with the information you've given me. Your code snippet is legal (but not very portable).  :-(
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Invalid password trying to cannect to Unix server 2 87
Write an app 10 71
awk sed 8 68
Setting variables in a stored procedure 5 22
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question