473,395 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Memory segment error in dlopen call

Hello!

I'm using KAI C++ Compiler (KCC) Version 4.0d on Sparc Solaris 8 with
Sun WorkShop[tm] 6 update 2 backend (KCC compiles C++ code to C than
uses the Sun compiler to produce machine executables). When I run our
program under purify to check for memory errors, I get the following
interesting error messages:

MSE: Memory segment error:
* This is occurring while in:
_init [libnsl.so.1]
call_init [util.c]
dlmopen_intn [dlfcns.c]
dlopen []
DLOpEN [rtlib.o]
SO_per_src_lookup [nss_deffinder.c]
* Accessing a memory range that crosses a memory segment boundary.
Addressing 0xfd6f42b8 for 4 bytes ending at 0xfd6f42bc,
which is neither in the heap nor the main stack.

MSE: Memory segment error (19 times):
* This is occurring while in:
mutex_init [libthread.so.1]
_libnsl_lock_init [mt_misc.c]
_init [libnsl.so.1]
call_init [util.c]
dlmopen_intn [dlfcns.c]
dlopen []
* Accessing a memory range that crosses a memory segment boundary.
Addressing 0xfd6fe890 for 2 bytes ending at 0xfd6fe892,
which is neither in the heap nor the main stack.
I've used purify earlier but never seen this message. I'm not even sure
where is the error - in the dynamic library loader, in the libraries
itself, in the linker or in our code - and I don't have any idea how to
get rid of this message (apart from surpressing it :-). Do you have
any idea whether this is an error at all, or just purify thinks it is an
error?
Bye,NAR
Jul 19 '05 #1
1 4336
On Wed, 29 Oct 2003 17:37:19 +0000 (UTC),
At*****************@ericsson.com wrote in comp.lang.c++:
Hello!

I'm using KAI C++ Compiler (KCC) Version 4.0d on Sparc Solaris 8 with
Sun WorkShop[tm] 6 update 2 backend (KCC compiles C++ code to C than
uses the Sun compiler to produce machine executables). When I run our
program under purify to check for memory errors, I get the following
interesting error messages:


[off-topic material snipped]

Ask this in a Solaris or perhaps generic UNIX programming group. The
C++ language, the topic of this group, does not define or support
anything called dlopen or memory segments. This is all platform
specific.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: alanrn | last post by:
I would like to start a dialog on how to implement the equivalent functionality of UNIX shared memory in .NET. I work with a factory automation system. The bulk of the system is written in C/C++....
4
by: Chris Martin | last post by:
Below are three try-catch blocks. My question is, how can all three work, and how come there is no memory leak (or is there)? As I understand it, an exception object is being created and "thrown"...
18
by: John DeSoi | last post by:
I get this when I try to start up a freshly compiled beta4 on OS X 10.2.6: FATAL: could not create shared memory segment: Invalid argument I saw a previous thread on this for beta2. It...
5
by: Jim | last post by:
Hello, I have a broken server that we are going to be moving off to a new server with a new version of DB2 but here is what I have right now: RedHat 7.0 (2.2.24smp) DB2 v6.1.0.40 I am...
30
by: jimjim | last post by:
Hello, This is a simple question for you all, I guess . int main(){ double *g= new double; *g = 9; delete g; cout<< sizeof(g)<<" "<<sizeof(double)<<" "<<sizeof(*g)<<" "<<*g<<" "<<endl; *g =...
1
by: Alexander Cohen | last post by:
Hi, sometimes ill get this error: FATAL: could not create shared memory segment: Cannot allocate memory DETAIL: Failed system call was shmget(key=2, size=4153344, 03600). HINT: This error...
57
by: fermineutron | last post by:
I wrote a program to calculate factorials of large numbers. The long precission integers are stores in arrays. When i specify the length of these arrays larger than 16000 elements, each element is...
10
by: Unknown Soldier | last post by:
Hello, I have a program that makes use of external plugins, implemented as shared libraries loaded at runtime through a call to dlopen(). The libraries export symbols which the main program...
22
by: Peter | last post by:
I am using VS2008. I have a Windows Service application which creates Crystal Reports. This is a multi theaded application which can run several reports at one time. My problem - there is a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.