Solved

solaris memory concerns

Posted on 1997-04-01
1
291 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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
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.

744 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

10 Experts available now in Live!

Get 1:1 Help Now