473,320 Members | 1,699 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,320 software developers and data experts.

new causing SIGABRT

I am having a problem with a program that allocates very large amounts
of memory (approaching 2Gb total) in small chunks, e.g., a few Mb at
a time.

The program is dumping core because it consistently gets a SIGABRT
while it is in a call to new to allocate memory. I tracked down
some old Usenet postings that discussed how new's standard behavior
is to throw an exception that ultimately results in a SIGABRT whenever
it cannot allocate the requested memory. I suspect that my problem is
that I am running up against a system limit on per-process memory
allocation, but I would like to verify this if possible. Does anyone
know how to do this? Does new ever trigger a SIGABRT for any reason
other than the case where it cannot satisfy a request because there
is not enough memory available? I have checked the arguments being
passed to the problematic new call in a debugger, and they are
reasonable, i.e., pretty much the same as the preceding call to new
which succeeded. Does C++ have any special limitations on memory
allocation other than those imposed by the operating system?

Has new always triggered a SIGABRT for this reason? My original
Stroustrup reference says that by default new returns a null pointer
if it cannot satisfy a request, and says nothing about SIGABRT. Is the
latter behavior now standard, and when did it become so?

Thanks very much!
--
Roger Davis
University of Hawaii/SOEST
rb*@NoSpamHere.hawaii.edu
Jul 19 '05 #1
1 5605
[snip]
Has new always triggered a SIGABRT for this reason? My original
Stroustrup reference says that by default new returns a null pointer
if it cannot satisfy a request, and says nothing about SIGABRT.


In that case, you must have TC++PL 2nd, which was obsoleted when 3rd
was published in 1997. Please try to get a newer reference, such
as 3rd, or TC++PL SE .

Jul 19 '05 #2

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

Similar topics

0
by: Berteun Damman | last post by:
Hello, First I was trying to get PyOSD, but as soon as I did `import pyosd' Python received a SIGABRT. Then I wrote my own module, which looks like: #include <Python.h> static PyMethodDef...
0
by: Jim C Nguyen | last post by:
I have a table with ~2.2 million rows. Sometimes when I do an update to one single row it will instead update ALL of the rows using the same update. This happens every one in about 500,000...
3
by: Sarah Haskins | last post by:
I have a few questions about this problem I'm having involving XML, DTD, and XSL. I'm working with this DTD which defines a stylesheet, as such... <?xml version="1.0" encoding="UTF-8"?>...
2
by: jammie_linux | last post by:
Hi, Can anybody please tell me that why the following code is getting the SIGABRT signal when the statement "node = new Node();" in the append function executes ? #include <iostream>...
14
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought...
11
by: Timothy Shih | last post by:
Hi, I am having a freezing issue with my application. My application serves several remotable objects, all of which must be initialized before their use. Furthermore, some of them depend on each...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
5
by: Charlie | last post by:
Dear all, I'm running a trace analyzer over a large trace file(several gig hz). However it stopped in the middle. I got the call stack from the gdb. I wonder if anyone could figure out the...
0
by: Joey Bersche | last post by:
I've been experiencing an intermittent crash where no python stacktrace is provided. It happens for a url downloading process that can last up to 12 hours and crawls about 50,000 urls. I'm...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.