Solved

solaris memory concerns

Posted on 1997-04-01
1
293 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.

932 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now