Solved

solaris memory concerns

Posted on 1997-04-01
1
299 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX check for filesystems not mounted but mount = true 4 66
Shell Script on AIX 7 177
How to make a Bash alias that takes parameters 5 93
lunix and unix command 21 154
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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

739 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