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_look up [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_in it [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 1 4359
On Wed, 29 Oct 2003 17:37:19 +0000 (UTC), At************* ****@ericsson.c om 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.l earn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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++. It was
ported from UNIX to run under Windows using .NET. If for no other reason
than as an educational exercise, I have been wondering what it would take to
rewrite the system under C#.
The system currently has about a 100K “shared...
|
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" back to the calling function.
If you treat this object as a reference or copy it, how does it get cleaned
up?
/* code segment 1 */
try {
m_pCommand->Execute(NULL, NULL, adCmdText | adExecuteNoRecords);
}
|
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 sounded like this was a
bug that was to be fixed in beta3, but I'm still having this problem
with beta4.
Thanks,
|
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 getting this error when I try to run the command 'db2 "backup database
dbname online to /opt/BACKUP"' on my 3 databases:
SQL1042C An unexpected system error occurred. SQLSTATE=58004
|
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 = 111;
cout<< sizeof(g)<<" "<<sizeof(double)<<" "<<sizeof(*g)<<" "<<*g<<" "<<endl;
| |
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 usually means that PostgreSQL's request for a shared
memory segment exceeded available memory or swap space. To reduce the
request size (currently 4153344 bytes), reduce PostgreSQL's
shared_buffers parameter (currently 400) and/or its...
|
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 a long int,
the windows refuses to execute the program. More precicely the code
terminates as soon as it starts to execute. How can i overcome this
issue. Note, if array length is set smaller the code runs with no
problems.
Here is the code:...
|
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 collects through a call
to dlsym().
The problem is that the libraries refer to certain symbols from the main
program. But the linker at runtime fails to resolve these "undefined
symbols" in the shared library.
|
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 memory leak someplace. I can not detect the memory
leak by running several reports by hand, but when I run tha app as a
servrice and process few hundred reports there is significant memory leak.
The application can consume over 1GB of memory where it...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |