В общем, пока отлаживал свой класс не программа не доходила до строчки w.show(); в main(){}. А как свои баги половил, стало все вываливаться...
Пишет: программа неожиданно завершилась и портянку выдает с дампом:
Запускается /home/bvn13/__qt/pr1...
*** glibc detected *** /home/bvn13/__qt/pr1: corrupted double-linked list: 0x0818afa0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6dffb)[0xb66a9ffb]
/lib/libc.so.6(+0x6e44c)[0xb66aa44c]
/lib/libc.so.6(+0x6f873)[0xb66ab873]
/lib/libc.so.6(__libc_malloc+0x6a)[0xb66ae62a]
/usr/lib/libXcursor.so.1(XcursorImageCreate+0x36)[0xb5f77c56]
/usr/lib/libXcursor.so.1(+0x4dbe)[0xb5f77dbe]
/usr/lib/libXcursor.so.1(XcursorXcFileLoadImages+0x108)[0xb5f78258]
/usr/lib/libXcursor.so.1(XcursorFileLoadImages+0x4f)[0xb5f78c3f]
/usr/lib/libXcursor.so.1(XcursorLibraryLoadImages+0x74)[0xb5f799b4]
/usr/lib/libXcursor.so.1(XcursorLibraryLoadCursor+0x4a)[0xb5f79caa]
/usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4(+0x1f86ff)[0xb6dd16ff]
/usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4(_ZNK7QCursor6handleEv+0x36)[0xb6dd1ed6]
/usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4(+0x2041a6)[0xb6ddd1a6]
/usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4(_Z21qt_x11_enforce_cursorP7QWidget+0x19)[0xb6ddd219]
/usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4(_ZN14QWidgetPrivate10create_sysEmbb+0x1436)[0xb6de2476]
/usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4(_ZN7QWidget6createEmbb+0x154)[0xb6d90554]
/usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4(_ZN7QWidget10setVisibleEb+0x90)[0xb6d9bb90]
/home/bvn13/__qt/apteka/sources/apteka/apteka[0x804c202]
/home/bvn13/__qt/apteka/sources/apteka/apteka[0x804c190]
/lib/libc.so.6(__libc_start_main+0xfe)[0xb6652c0e]
/home/bvn13/__qt/pr1[0x804c0b1]
======= Memory map: ========
08048000-0805b000 r-xp 00000000 08:14 5967 /home/bvn13/__qt/pr1
0805b000-0805c000 r--p 00012000 08:14 5967 /home/bvn13/__qt/pr1
0805c000-0805d000 rw-p 00013000 08:14 5967 /home/bvn13/__qt/pr1
0805d000-081c8000 rw-p 00000000 00:00 0 [heap]
b5200000-b5221000 rw-p 00000000 00:00 0
b5221000-b5300000 ---p 00000000 00:00 0
b533e000-b533f000 ---p 00000000 00:00 0
b533f000-b5b3f000 rw-p 00000000 00:00 0
b5b3f000-b5cc7000 r-xp 00000000 08:11 655783 /lib/libcrypto.so.1.0.0
b5cc7000-b5cc8000 ---p 00188000 08:11 655783 /lib/libcrypto.so.1.0.0
b5cc8000-b5cd6000 r--p 00188000 08:11 655783 /lib/libcrypto.so.1.0.0
b5cd6000-b5cdc000 rw-p 00196000 08:11 655783 /lib/libcrypto.so.1.0.0
b5cdc000-b5cdf000 rw-p 00000000 00:00 0
b5cdf000-b5d31000 r-xp 00000000 08:11 655863 /lib/libssl.so.1.0.0
b5d31000-b5d33000 r--p 00051000 08:11 655863 /lib/libssl.so.1.0.0
b5d33000-b5d36000 rw-p 00053000 08:11 655863 /lib/libssl.so.1.0.0
b5d36000-b5d42000 r-xp 00000000 08:11 659765 /lib/libcrypt-2.11.2.so
b5d42000-b5d43000 r--p 0000b000 08:11 659765 /lib/libcrypt-2.11.2.so
b5d43000-b5d44000 rw-p 0000c000 08:11 659765 /lib/libcrypt-2.11.2.so
b5d44000-b5d6b000 rw-p 00000000 00:00 0
b5d6b000-b5e9d000 r-xp 00000000 08:11 262193 /usr/lib/libmysqlclient_r.so.16.0.0
b5e9d000-b5e9f000 r--p 00131000 08:11 262193 /usr/lib/libmysqlclient_r.so.16.0.0
b5e9f000-b5ee5000 rw-p 00133000 08:11 262193 /usr/lib/libmysqlclient_r.so.16.0.0
b5f1f000-b5f63000 r--p 00000000 08:11 1576723 /usr/share/fonts/truetype/arial.ttf
b5f63000-b5f71000 r-xp 00000000 08:11 262300 /usr/lib/libXi.so.6.1.0
b5f71000-b5f72000 r--p 0000d000 08:11 262300 /usr/lib/libXi.so.6.1.0
b5f72000-b5f73000 rw-p 0000e000 08:11 262300 /usr/lib/libXi.so.6.1.0
b5f73000-b5f7d000 r-xp 00000000 08:11 262681 /usr/lib/libXcursor.so.1.0.2
b5f7d000-b5f7e000 r--p 00009000 08:11 262681 /usr/lib/libXcursor.so.1.0.2
b5f7e000-b5f7f000 rw-p 0000a000 08:11 262681 /usr/lib/libXcursor.so.1.0.2
b5f80000-b5f8b000 r-xp 00000000 08:11 662643 /lib/libnss_files-2.11.2.so
b5f8b000-b5f8c000 r--p 0000a000 08:11 662643 /lib/libnss_files-2.11.2.so
b5f8c000-b5f8d000 rw-p 0000b000 08:11 662643 /lib/libnss_files-2.11.2.so
b5f8d000-b5fa3000 r-xp 00000000 08:11 661864 /lib/libnsl-2.11.2.so
b5fa3000-b5fa4000 r--p 00015000 08:11 661864 /lib/libnsl-2.11.2.so
b5fa4000-b5fa5000 rw-p 00016000 08:11 661864 /lib/libnsl-2.11.2.so
b5fa5000-b5fa7000 rw-p 00000000 00:00 0
b5fa7000-b5fb7000 r-xp 00000000 08:11 2755760 /usr/local/Trolltech/Qt-4.7.1/plugins/sqldrivers/libqsqlmysql.so
b5fb7000-b5fb8000 r--p 0000f000 08:11 2755760 /usr/local/Trolltech/Qt-4.7.1/plugins/sqldrivers/libqsqlmysql.so
b5fb8000-b5fb9000 rw-p 00010000 08:11 2755760 /usr/local/Trolltech/Qt-4.7.1/plugins/sqldrivers/libqsqlmysql.so
b5fb9000-b5fc0000 r-xp 00000000 08:11 262728 /usr/lib/libXrandr.so.2.2.0
b5fc0000-b5fc1000 r--p 00006000 08:11 262728 /usr/lib/libXrandr.so.2.2.0
b5fc1000-b5fc2000 rw-p 00007000 08:11 262728 /usr/lib/libXrandr.so.2.2.0
b5fc6000-b5fc7000 rw-p 00000000 00:00 0
b5fc7000-b5fc9000 r-xp 00000000 08:11 262623 /usr/lib/libXinerama.so.1.0.0
b5fc9000-b5fca000 r--p 00001000 08:11 262623 /usr/lib/libXinerama.so.1.0.0
b5fca000-b5fcb000 rw-p 00002000 08:11 262623 /usr/lib/libXinerama.so.1.0.0
b5fcb000-b5fcf000 r-xp 00000000 08:11 265773 /usr/lib/libXfixes.so.3.1.0
b5fcf000-b5fd0000 r--p 00003000 08:11 265773 /usr/lib/libXfixes.so.3.1.0
b5fd0000-b5fd1000 rw-p 00004000 08:11 265773 /usr/lib/libXfixes.so.3.1.0
b5fd1000-b5ffc000 r--p 00000000 08:11 1049549 /usr/share/locale/ru/LC_MESSAGES/libc.mo
b5ffc000-b6006000 r--s 00000000 08:13 1122482 /var/cache/fontconfig/77e41c5059666d75f92e318d4be8c21e-le32d4.cache-3
b6006000-b6047000 r--s 00000000 08:13 1122506 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-le32d4.cache-3
b6047000-b604c000 r--s 00000000 08:13 1122514 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-le32d4.cache-3
b604c000-b6080000 r--s 00000000 08:13 1122567 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le32d4.cache-3
b6080000-b60c1000 r--s 00000000 08:13 1122576 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-le32d4.cache-3
b60c1000-b60c3000 r-xp 00000000 08:11 263417 /usr/lib/gconv/UTF-16.so
b60c3000-b60c4000 r--p 00002000 08:11 263417 /usr/lib/gconv/UTF-16.so
b60c4000-b60c5000 rw-p 00003000 08:11 263417 /usr/lib/gconv/UTF-16.so
b60c5000-b6104000 r--p 00000000 08:11 1842419 /usr/lib/locale/ru_RU.utf8/LC_CTYPE
b6104000-b6221000 r--p 00000000 08:11 2621651 /usr/lib/locale/ru_RU.utf8/LC_COLLATE
b6221000-b6224000 rw-p 00000000 00:00 0
b6224000-b6226000 r-xp 00000000 08:11 262661 /usr/lib/libXau.so.6.0.0
b6226000-b6227000 r--p 00001000 08:11 262661 /usr/lib/libXau.so.6.0.0
b6227000-b6228000 rw-p 00002000 08:11 262661 /usr/lib/libXau.so.6.0.0
b6228000-b6246000 r-xp 00000000 08:11 263148 /usr/lib/libxcb.so.1.1.0
b6246000-b6247000 r--p 0001d000 08:11 263148 /usr/lib/libxcb.so.1.1.0
b6247000-b6248000 rw-p 0001e000 08:11 263148 /usr/lib/libxcb.so.1.1.0
b6248000-b626e000 r-xp 00000000 08:11 655867 /lib/libexpat.so.1.5.2
b626e000-b626f000 ---p 00026000 08:11 655867 /lib/libexpat.so.1.5.2
b626f000-b6271000 r--p 00026000 08:11 655867 /lib/libexpat.so.1.5.2
b6271000-b6272000 rw-p 00028000 08:11 655867 /lib/libexpat.so.1.5.2
b6272000-b6273000 rw-p 00000000 00:00 0
b6273000-b6277000 r-xp 00000000 08:11 655536 /lib/libuuid.so.1.3.0
b6277000-b6278000 r--p 00003000 08:11 655536 /lib/libuuid.so.1.3.0
b6278000-b6279000 rw-p 00004000 08:11 655536 /lib/libuuid.so.1.3.0
b6279000-b62a6000 r-xp 00000000 08:11 655558 /lib/libpcre.so.0.0.1
b62a6000-b62a7000 r--p 0002c000 08:11 655558 /lib/libpcre.so.0.0.1
b62a7000-b62a8000 rw-p 0002d000 08:11 655558 /lib/libpcre.so.0.0.1
b62a8000-b62ab000 r-xp 00000000 08:11 660901 /lib/libdl-2.11.2.so
b62ab000-b62ac000 r--p 00002000 08:11 660901 /lib/libdl-2.11.2.so
b62ac000-b62ad000 rw-p 00003000 08:11 660901 /lib/libdl-2.11.2.so
b62ad000-b63e3000 r-xp 00000000 08:11 263594 /usr/lib/libX11.so.6.3.0
b63e3000-b63e4000 ---p 00136000 08:11 263594 /usr/lib/libX11.so.6.3.0
b63e4000-b63e5000 r--p 00136000 08:11 263594 /usr/lib/libX11.so.6.3.0
b63e5000-b63e8000 rw-p 00137000 08:11 263594 /usr/lib/libX11.so.6.3.0
b63e8000-b63e9000 rw-p 00000000 00:00 0
b63e9000-b63f9000 r-xp 00000000 08:11 262621 /usr/lib/libXext.so.6.4.0
b63f9000-b63fa000 r--p 00010000 08:11 262621 /usr/lib/libXext.so.6.4.0
b63fa000-b63fb000 rw-p 00011000 08:11 262621 /usr/lib/libXext.so.6.4.0
b63fb000-b642f000 r-xp 00000000 08:11 262283 /usr/lib/libfontconfig.so.1.4.4
b642f000-b6430000 r--p 00033000 08:11 262283 /usr/lib/libfontconfig.so.1.4.4
b6430000-b6431000 rw-p 00034000 08:11 262283 /usr/lib/libfontconfig.so.1.4.4
b6431000-b643a000 r-xp 00000000 08:11 263611 /usr/lib/libXrender.so.1.3.0
b643a000-b643b000 r--p 00008000 08:11 263611 /usr/lib/libXrender.so.1.3.0
b643b000-b643c000 rw-p 00009000 08:11 263611 /usr/lib/libXrender.so.1.3.0
b643c000-b6453000 r-xp 00000000 08:11 263561 /usr/lib/libICE.so.6.3.0
b6453000-b6454000 r--p 00016000 08:11 263561 /usr/lib/libICE.so.6.3.0
b6454000-b6455000 rw-p 00017000 08:11 263561 /usr/lib/libICE.so.6.3.0
b6455000-b6457000 rw-p 00000000 00:00 0
b6457000-b645e000 r-xp 00000000 08:11 263832 /usr/lib/libSM.so.6.0.1
b645e000-b645f000 r--p 00006000 08:11 263832 /usr/lib/libSM.so.6.0.1
b645f000-b6460000 rw-p 00007000 08:11 263832 /usr/lib/libSM.so.6.0.1
b6460000-b64a7000 r-xp 00000000 08:11 264189 /usr/lib/libgobject-2.0.so.0.2400.1
b64a7000-b64a8000 r--p 00046000 08:11 264189 /usr/lib/libgobject-2.0.so.0.2400.1
b64a8000-b64a9000 rw-p 00047000 08:11 264189 /usr/lib/libgobject-2.0.so.0.2400.1
b64a9000-b64aa000 rw-p 00000000 00:00 0
b64aa000-b652c000 r-xp 00000000 08:11 262302 /usr/lib/libfreetype.so.6.4.0
b652c000-b6530000 r--p 00081000 08:11 262302 /usr/lib/libfreetype.so.6.4.0
b6530000-b6531000 rw-p 00085000 08:11 262302 /usr/lib/libfreetype.so.6.4.0
b6531000-b6543000 r-xp 00000000 08:11 655587 /lib/libz.so.1.2.3
b6543000-b6544000 r--p 00011000 08:11 655587 /lib/libz.so.1.2.3
b6544000-b6545000 rw-p 00012000 08:11 655587 /lib/libz.so.1.2.3
b6545000-b6629000 r-xp 00000000 08:11 264185 /usr/lib/libglib-2.0.so.0.2400.1
b6629000-b662a000 r--p 000e3000 08:11 264185 /usr/lib/libglib-2.0.so.0.2400.1
b662a000-b662b000 rw-p 000e4000 08:11 264185 /usr/lib/libglib-2.0.so.0.2400.1
b662b000-b6633000 r-xp 00000000 08:11 662684 /lib/librt-2.11.2.so
b6633000-b6634000 r--p 00007000 08:11 662684 /lib/librt-2.11.2.so
b6634000-b6635000 rw-p 00008000 08:11 662684 /lib/librt-2.11.2.so
b6635000-b6639000 r-xp 00000000 08:11 263876 /usr/lib/libgthread-2.0.so.0.2400.1
b6639000-b663a000 r--p 00003000 08:11 263876 /usr/lib/libgthread-2.0.so.0.2400.1
b663a000-b663b000 rw-p 00004000 08:11 263876 /usr/lib/libgthread-2.0.so.0.2400.1
b663b000-b663c000 rw-p 00000000 00:00 0
b663c000-b67a0000 r-xp 00000000 08:11 655832 /lib/libc-2.11.2.so
b67a0000-b67a1000 ---p 00164000 08:11 655832 /lib/libc-2.11.2.so
b67a1000-b67a3000 r--p 00164000 08:11 655832 /lib/libc-2.11.2.so
b67a3000-b67a4000 rw-p 00166000 08:11 655832 /lib/libc-2.11.2.so
b67a4000-b67a7000 rw-p 00000000 00:00 0
b67a7000-b67c3000 r-xp 00000000 08:11 655891 /lib/libgcc_s.so.1
b67c3000-b67c4000 r--p 0001b000 08:11 655891 /lib/libgcc_s.so.1
b67c4000-b67c5000 rw-p 0001c000 08:11 655891 /lib/libgcc_s.so.1
b67c5000-b67ed000 r-xp 00000000 08:11 661861 /lib/libm-2.11.2.so
b67ed000-b67ee000 r--p 00027000 08:11 661861 /lib/libm-2.11.2.so
b67ee000-b67ef000 rw-p 00028000 08:11 661861 /lib/libm-2.11.2.so
b67ef000-b68d3000 r-xp 00000000 08:11 262473 /usr/lib/libstdc++.so.6.0.14
b68d3000-b68d7000 r--p 000e3000 08:11 262473 /usr/lib/libstdc++.so.6.0.14
b68d7000-b68d8000 rw-p 000e7000 08:11 262473 /usr/lib/libstdc++.so.6.0.14
b68d8000-b68df000 rw-p 00000000 00:00 0
b68df000-b68f6000 r-xp 00000000 08:11 661871 /lib/libpthread-2.11.2.so
b68f6000-b68f7000 r--p 00016000 08:11 661871 /lib/libpthread-2.11.2.so
b68f7000-b68f8000 rw-p 00017000 08:11 661871 /lib/libpthread-2.11.2.so
b68f8000-b68fb000 rw-p 00000000 00:00 0
b68fb000-b6924000 r--s 00000000 08:13 1122566 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-le32d4.cache-3
b6924000-b6925000 r--p 00000000 08:11 2883638 /usr/lib/locale/ru_RU.utf8/LC_NUMERIC
b6925000-b6926000 r--p 00000000 08:11 1970052 /usr/lib/locale/ru_RU.utf8/LC_TIME
b6926000-b6927000 r--p 00000000 08:11 1970051 /usr/lib/locale/ru_RU.utf8/LC_MONETARY
b6927000-b6928000 r--p 00000000 08:11 2621502 /usr/lib/locale/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b6928000-b6929000 r--p 00000000 08:11 1835158 /usr/lib/locale/ru_RU.utf8/LC_PAPER
b6929000-b692a000 r--p 00000000 08:11 3015221 /usr/lib/locale/ru_RU.utf8/LC_NAME
b692a000-b692b000 r--p 00000000 08:11 2361632 /usr/lib/locale/ru_RU.utf8/LC_ADDRESS
b692b000-b692c000 r--p 00000000 08:11 2361198 /usr/lib/locale/ru_RU.utf8/LC_TELEPHONE
b692c000-b692d000 r--p 00000000 08:11 1842418 /usr/lib/locale/ru_RU.utf8/LC_MEASUREMENT
b692d000-b6934000 r--s 00000000 08:11 263443 /usr/lib/gconv/gconv-modules.cache
b6934000-b6935000 r--p 00000000 08:11 1966600 /usr/lib/locale/ru_RU.utf8/LC_IDENTIFICATION
b6935000-b6bcf000 r-xp 00000000 08:11 2641087 /usr/local/Trolltech/Qt-4.7.1/lib/libQtCore.so.4.7.1
b6bcf000-b6bd6000 r--p 00299000 08:11 2641087 /usr/local/Trolltech/Qt-4.7.1/lib/libQtCore.so.4.7.1
b6bd6000-b6bd9000 rw-p 002a0000 08:11 2641087 /usr/local/Trolltech/Qt-4.7.1/lib/libQtCore.so.4.7.1
b6bd9000-b769b000 r-xp 00000000 08:11 2642116 /usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4.7.1
b769b000-b76bb000 r--p 00ac1000 08:11 2642116 /usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4.7.1
b76bb000-b76c5000 rw-p 00ae1000 08:11 2642116 /usr/local/Trolltech/Qt-4.7.1/lib/libQtGui.so.4.7.1
b76c5000-b76c8000 rw-p 00000000 00:00 0
b76c8000-b7706000 r-xp 00000000 08:11 2641874 /usr/local/Trolltech/Qt-4.7.1/lib/libQtSql.so.4.7.1
b7706000-b7707000 ---p 0003e000 08:11 2641874 /usr/local/Trolltech/Qt-4.7.1/lib/libQtSql.so.4.7.1
b7707000-b7708000 r--p 0003e000 08:11 2641874 /usr/local/Trolltech/Qt-4.7.1/lib/libQtSql.so.4.7.1
b7708000-b7709000 rw-p 0003f000 08:11 2641874 /usr/local/Trolltech/Qt-4.7.1/lib/libQtSql.so.4.7.1
b7709000-b7727000 r-xp 00000000 08:11 662631 /lib/ld-2.11.2.so
b7727000-b7728000 rw-p 00000000 00:00 0
b7728000-b7729000 r--p 0001e000 08:11 662631 /lib/ld-2.11.2.so
b7729000-b772a000 rw-p 0001f000 08:11 662631 /lib/ld-2.11.2.so
bff05000-bff26000 rw-p 00000000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Программа неожиданно завершилась.
/home/bvn13/__qt/pr1 завершился с кодом 0
Настораживает в самом начале строка: corrupted double-linked list: 0x0818afa0
Как узнать, что это за объект? Почему вылетает?
Извините за портянку. Здесь разве нету возможности вставки текста в бокс со скроллами?
ПО ПРОБЛЕМЕ:
Я по-накату удалил объект, который сам не выделял. Т.Е.,
удаляю ссылку, которую не создавал через new. Отсюда и косяк.
Проблема решена, спасибо.
Причина редактирования: применяй тег expand!