Hi,

I get this strange error. Not able to figure out why.

Could somebody throw some light on it?

Code snippet from csp.cpp:

CSP::CSP(string &st)
{
  cout<<"CSP::CSP "<<st.c_str()<<endl;
 
             ifstream fin(st.c_str(), ifstream::in); //Error here (Line 21)
             if(!fin){ cout<<" File "<<st<<" could not be opened"<<endl; 
exit(-1); }


 .....
}



Here is the trace from gdb:
crc-6-6-6-6-2.txt crc-6-6-6-6-2.txt
CSP::CSP crc-6-6-6-6-2.txt
*** glibc detected *** corrupted double-linked list: 0x082e9370 ***

Program received signal SIGABRT, Aborted.
 0x008fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0  0x008fe7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x0093e955 in raise () from /lib/tls/libc.so.6
#2  0x00940319 in abort () from /lib/tls/libc.so.6
 #3  0x00971f8a in __libc_message () from /lib/tls/libc.so.6
#4  0x00977e67 in malloc_consolidate () from /lib/tls/libc.so.6
#5  0x00978dd3 in _int_malloc () from /lib/tls/libc.so.6
#6  0x0097aba1 in malloc () from /lib/tls/libc.so.6
 #7  0x00c45ac7 in operator new () from /usr/lib/libstdc++.so.6
#8  0x00c45bd9 in operator new[] () from /usr/lib/libstdc++.so.6
#9  0x00bf5c7b in std::basic_filebuf<char, std::char_traits<char> 
>::_M_allocate_internal_buffer () from /usr/lib/libstdc++.so.6
 #10 0x00bf877f in std::basic_filebuf<char, std::char_traits<char> >::open () 
from /usr/lib/libstdc++.so.6
#11 0x00bfbb06 in std::basic_ifstream<char, std::char_traits<char> 
>::basic_ifstream () from /usr/lib/libstdc++.so.6
 #12 0x080493fd in CSP (this=0xbff75620, [EMAIL PROTECTED]) at csp.cpp:21
#13 0x0804c7dc in main () at csp_Driver.cpp:32


Thank you,
Satya

Reply via email to