I create a singleton class. I write "qDebug()<<"~Garbo";" in its destructor. But when close the program, its crash.
Any help will be appreciated.
The stack is following.
(gdb) bt
#0 0x0000003c82275795 in malloc_consolidate () from /lib64/libc.so.6
#1 0x0000003c82278612 in _int_malloc () from /lib64/libc.so.6
#2 0x0000003c82279a3d in malloc () from /lib64/libc.so.6
#3 0x0000003c8221fb21 in __gconv_open () from /lib64/libc.so.6
#4 0x0000003c8221f4c2 in iconv_open () from /lib64/libc.so.6
#5 0x00007f93fad70605 in QIconvCodec::createIconv_t (to=0x0, from=0x7f93fadd2d19 "UTF-16")
at /var/tmp/qt-x11-src-4.5.1/src/corelib/codecs/qiconvcodec.cpp:456
#6 0x00007f93fad70e3c in QIconvCodec::convertFromUnicode (this=<value optimized out>, uc=0x1e4da0a, len=3, convState=0x0)
at /var/tmp/qt-x11-src-4.5.1/src/corelib/codecs/qiconvcodec.cpp:328
#7 0x00007f93fad6b418 in QTextCodec::fromUnicode (this=0x71, str=<value optimized out>)
at /var/tmp/qt-x11-src-4.5.1/src/corelib/codecs/qtextcodec.cpp:1189
#8 0x00007f93fac93c31 in QString::toLocal8Bit (this=0x1c7ad50)
at /var/tmp/qt-x11-src-4.5.1/src/corelib/tools/qstring.cpp:3358
#9 0x000000000040c80e in QDebug::~QDebug (this=0x7fff65a4e7b0, __in_chrg=<value optimized out>)
at /opt/qtsdk-2009.02/qt/include/QtCore/qdebug.h:83
#10 0x000000000040ca53 in PaStyle::Garbo::~Garbo (this=0x619ca8, __in_chrg=<value optimized out>) at ./pa_style.h:23
#11 0x0000003c82235fd2 in exit () from /lib64/libc.so.6
#12 0x0000003c8221ec64 in __libc_start_main () from /lib64/libc.so.6
#13 0x0000000000406b09 in _start ()