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

cout core dump

Hi all,

I am experiencing a really weird core dump issue on Solaris 8. The
program was compiled with g++ and it is a multi-threaded program.

Here is the stack:
#0 0x7fb40890 in memcpy ()
from /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
(gdb) where
#0 0x7fb40890 in memcpy ()
from /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
#1 0x7f913260 in _fwrite_unlocked () from /usr/lib/libc.so.1
#2 0x7f913098 in fwrite () from /usr/lib/libc.so.1
#3 0x7f9b7a58 in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#4 0x7f9b788c in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#5 0x7f9b7728 in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#6 0x7f9d74d0 in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#7 0x7f9d23b0 in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#8 0x559b4 in _ZN6Logger7logendlERSo (this=<incomplete type>,
os=@0x1522a0)
at ../common/logfile.cpp:145
In the logfile.cpp, it cores here:
cout << buffer;

that's it.. it seems no matter what i do, i get the same issue. Any
insights?

Thanks,

Jun 2 '06 #1
2 3803
Iam25boy wrote:
I am experiencing a really weird core dump issue on Solaris 8. The
program was compiled with g++ and it is a multi-threaded program.
If multi-threading is the issue, we can't help you. C++ does not
define threads.
Here is the stack:
[..irrelevant..]

In the logfile.cpp, it cores here:
cout << buffer;

that's it.. it seems no matter what i do, i get the same issue. Any
insights?


What's the value of 'buffer' here? How is it defined/declared? Read
the FAQ section 5, #5.8.

Try removing anything that shouldn't have any effect, piece by piece,
and see if anything changes. Sometimes you don't know what has effect
on what, and what kind of effect. Next, try the same thing in a non-
threaded version of your program. Next, run it under a debugger.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jun 2 '06 #2
"Iam25boy" <st****************@gmail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
Hi all,

I am experiencing a really weird core dump issue on Solaris 8. The
program was compiled with g++ and it is a multi-threaded program.

Here is the stack:
#0 0x7fb40890 in memcpy ()
from /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
(gdb) where
#0 0x7fb40890 in memcpy ()
from /usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
#1 0x7f913260 in _fwrite_unlocked () from /usr/lib/libc.so.1
#2 0x7f913098 in fwrite () from /usr/lib/libc.so.1
#3 0x7f9b7a58 in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#4 0x7f9b788c in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#5 0x7f9b7728 in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#6 0x7f9d74d0 in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#7 0x7f9d23b0 in ?? () at ../../../../libstdc++-v3/libsupc++/vec.cc:51
from /usr/local/lib/libstdc++.so.5
#8 0x559b4 in _ZN6Logger7logendlERSo (this=<incomplete type>,
os=@0x1522a0)
at ../common/logfile.cpp:145
In the logfile.cpp, it cores here:
cout << buffer;

that's it.. it seems no matter what i do, i get the same issue. Any
insights?


I could take some guesses, but you'll need to look at the code. Not knowing
your error messages real well, it sounds to me like
cout << buffer;
is complaining that buffer is not a complete type. What is buffer? How is
buffer defined? Does it override <<? Look in the override for operator<<
for buffer. Maybe buffer doesn't have << overridden?
Jun 3 '06 #3

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

Similar topics

3
by: Nick Craig-Wood | last post by:
I've just discovered that my python (Python 2.3.4 from debian package 2.3.4-1 running on debian testing x86 + linux 2.4.26) core dumps when I set recursionlimit very high and do lots of recursion....
1
by: Martin | last post by:
I use dbx and i got the following error: Reading GL_CliConnMgr core file header read successfully Reading ld.so.1 dbx: core file read error: address 0xff3e6000 not available dbx: core file...
10
by: ken | last post by:
hello, i'm writing a c program on a linux system. i'm debugging a segmentation fault but i don't want it to dump a core file because the memory footprint of the program is over 300Mb and i don't...
10
by: John Liu | last post by:
We upgraded from 7.2 to 7.4, it looks like everything working, but when I issue a query such as select * from tab (tab has about 2-3 million records), it causes core dump. I tuned some the...
3
by: John Liu | last post by:
AIX pg version 7.4 Select * from document2 core dump. Did a few more experiments with select * from document2 limit... I limit to 500000 it works, 600000 it exits but says "calloc:...
4
by: madhusudan.hv | last post by:
hi, Can you tell me when an application might take long time to dump core? The linux o.s is indicating that a process is dumping core, and only after 40 mins i am seeing the core file. What might...
10
by: wong_powah | last post by:
I want to find out where (which line) my C program core dump. How to do that? Is there a web site describing the procedure? One approach is to use stack trace of the mdb debugger, but I does not...
14
by: Sheldon | last post by:
Hi, I have a python script that uses a C extention. I keep getting a recurring problem that causes a core dump a few lines after the C extention return data back tp python. I tried using pbd and...
5
by: johnericaturnbull | last post by:
Hi - I am very new to python. I get this random core dump and am looking for a good way to catch the error. I know the function my core dump occurs. Is there any error catching/handling that I...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...

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.