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

"corrupted double-linked list error

Hi
I have a problem which result in a "corrupted double-linked list
error", I would need some help in trouble shot this one:

Here is a stack track:
Thread [0] (Suspended: Signal 'SIGABRT' received. Description:
Aborted.)
15 __kernel_vsyscall() 0xb7f25402
14 raise() 0x00646118
13 abort() 0x00647888
12 __libc_message() 0x0067b22a
11 malloc_consolidate() 0x00680bed
10 _int_free() 0x006810a9
9 free() 0x0068165f
8 __fopen_internal() 0x0067350e
7 fopen64() 0x00675878
6 std::__basic_file<char>::open() 0x069e9a16
5 std::basic_filebuf<char, std::char_traits<char> >::open()
0x06998f9e
4 std::basic_fstream<char, std::char_traits<char> >::open()
0x069990ad
3 TestCase::runTestWithTestData() at ../TestCase.cpp:136 0x0809f280
2 TestPatternMatcher::test() at ../TestMatcher.h:37 0x080a4421
1 main() at ../TestDriver.cpp:73 0x080a1eda

here is my code where the error occured (line 136 of TestCase.cpp):

135 fstream fin;
136 fin.open(expectedResultfileName.c_str(),ios::in);

*** glibc detected ***
/home/plissken/workspace/snapshot/Debug/snapshot: corrupted
double-linked list: 0x007448b8 ***
======= Backtrace: =========
/lib/libc.so.6[0x680bed]
/lib/libc.so.6[0x6810a9]
/lib/libc.so.6(__libc_free+0x77)[0x68165f]
/lib/libc.so.6[0x67350e]
/lib/libc.so.6(fopen64+0x2c)[0x675878]
/usr/lib/libstdc++.so.6(_ZNSt12__basic_fileIcE4openEPKcSt13 _Ios_Openmodei+0x48)[0x69e9a16]
/usr/lib/libstdc++.so.6(_ZNSt13basic_filebufIcSt11char_trai tsIcEE4openEPKcSt13_Ios_Openmode+0x4e)[0x6998f9e]
/usr/lib/libstdc++.so.6(_ZNSt13basic_fstreamIcSt11char_trai tsIcEE4openEPKcSt13_Ios_Openmode+0x2f)[0x69990ad]
/home/plissken/workspace/snapshot/Debug/snapshot[0x809f280]
/home/plissken/workspace/snapshot/Debug/snapshot[0x80a4421]
/home/plissken/workspace/snapshot/Debug/snapshot[0x80a1eda]
/lib/libc.so.6(__libc_start_main+0xdf)[0x632d5f]
/home/plissken/workspace/snapshot/Debug/snapshot(__gxx_personality_v0+0xa1)[0x8049b25]

Feb 28 '06 #1
1 5596
Pl********@gmail.com wrote:
Hi
I have a problem which result in a "corrupted double-linked list
error", I would need some help in trouble shot this one:

Here is a stack track:
Thread [0] (Suspended: Signal 'SIGABRT' received. Description:
Aborted.)
15 __kernel_vsyscall() 0xb7f25402
14 raise() 0x00646118
13 abort() 0x00647888
12 __libc_message() 0x0067b22a
11 malloc_consolidate() 0x00680bed
10 _int_free() 0x006810a9
9 free() 0x0068165f
8 __fopen_internal() 0x0067350e
7 fopen64() 0x00675878
6 std::__basic_file<char>::open() 0x069e9a16
5 std::basic_filebuf<char, std::char_traits<char> >::open()
0x06998f9e
4 std::basic_fstream<char, std::char_traits<char> >::open()
0x069990ad
3 TestCase::runTestWithTestData() at ../TestCase.cpp:136 0x0809f280
2 TestPatternMatcher::test() at ../TestMatcher.h:37 0x080a4421
1 main() at ../TestDriver.cpp:73 0x080a1eda

here is my code where the error occured (line 136 of TestCase.cpp):

135 fstream fin;
136 fin.open(expectedResultfileName.c_str(),ios::in);

*** glibc detected ***
/home/plissken/workspace/snapshot/Debug/snapshot: corrupted
double-linked list: 0x007448b8 ***
======= Backtrace: =========
/lib/libc.so.6[0x680bed]
/lib/libc.so.6[0x6810a9]
/lib/libc.so.6(__libc_free+0x77)[0x68165f]
/lib/libc.so.6[0x67350e]
/lib/libc.so.6(fopen64+0x2c)[0x675878]
/usr/lib/libstdc++.so.6(_ZNSt12__basic_fileIcE4openEPKcSt13 _Ios_Openmodei+0x48)[0x69e9a16]
/usr/lib/libstdc++.so.6(_ZNSt13basic_filebufIcSt11char_trai tsIcEE4openEPKcSt13_Ios_Openmode+0x4e)[0x6998f9e]
/usr/lib/libstdc++.so.6(_ZNSt13basic_fstreamIcSt11char_trai tsIcEE4openEPKcSt13_Ios_Openmode+0x2f)[0x69990ad]
/home/plissken/workspace/snapshot/Debug/snapshot[0x809f280]
/home/plissken/workspace/snapshot/Debug/snapshot[0x80a4421]
/home/plissken/workspace/snapshot/Debug/snapshot[0x80a1eda]
/lib/libc.so.6(__libc_start_main+0xdf)[0x632d5f]
/home/plissken/workspace/snapshot/Debug/snapshot(__gxx_personality_v0+0xa1)[0x8049b25]

There is approximately a 99.3% chance (all right, I picked that number
out of my hat; .7% attributable to other causes is probably too high)
that you've corrupted your free store, most likely through a buffer
overflow.

[Doing a web search on `segfault in free' or something similar will very
likely be educational.]

HTH,
--ag

--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com
"You can't KISS* unless you MISS**"
[*-Keep it simple, stupid. **-Make it simple, stupid.]
Feb 28 '06 #2

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

Similar topics

2
by: Arnaud | last post by:
Hi, I would like to protect myself against these two PHPSESSID I have sometimes in the url... I'm coding a session-based script which will be upload on a shared server. I can't control if this...
2
by: Uma Abhyankar | last post by:
Hello, We are facing precision issues with addition, multiplication or division of "double" Issue1: ##### The output of 0.1 + 0.2 is not 0.3 It is 0.30000000000000004 How do we tackle this??
2
by: Souser | last post by:
I would like to learn how to double-jump a URL; in other words, I would like for a user to click on a link... which takes you to a site, and then upon landing, goes right away to another site(with...
12
by: Assaf | last post by:
Hi all, My client is using an online service provider that processes survey responses. After a user fills survey.aspx and presses the OK button, 2 things need to happen: 1. the data has to...
6
jasjas
by: jasjas | last post by:
my Q is like this, i want to design a calculation which use the number user enter to "/" by 100. so , offcouse the result mayb in double or integer. after that my calculation just wanna user...
19
by: glchin | last post by:
Does a compiler guarantee that the variable w below is placed on an eight-byte aligned address? void myFunction( long iFreq ) { const double w = two_pi * iFreq; ... ... }
2
by: ashjas | last post by:
Hi, in c++ following code produces output as 1 how if i am using d as double? double d=9/7; cout<<"\n"<<d; when i changed d=9/7 to d=9.0/7.0 it showed correct answer with all decimals.. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
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...

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.