473,222 Members | 1,815 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,222 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 5570
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: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
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"....

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.