469,626 Members | 1,043 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

"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 4341
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Arnaud | last post: by
2 posts views Thread by Uma Abhyankar | last post: by
2 posts views Thread by Souser | last post: by
12 posts views Thread by Assaf | last post: by
19 posts views Thread by glchin | last post: by
2 posts views Thread by ashjas | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.