glibc detected - Program crash

Это русская секция форума wxWidjets. В этой секции вы можете обсуждать любые вопросы, связанные с wxWidgets на вашем родном языке.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3793
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

glibc detected - Program crash

Post by ONEEYEMAN » Thu Oct 16, 2008 1:45 am

Здравствуйте,

Вот такая проблема:

Code: Select all

IgorsGentoo igor # uname -a
Linux IgorsGentoo 2.6.20-gentoo-r8 #5 SMP Wed Jul 25 23:52:46 PDT 2007 i686 Celeron (Coppermine) GenuineIntel GNU/Linux
IgorsGentoo igor # emerge -pv gtk+

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-util/gtk-doc-am-1.10-r1  395 kB
[ebuild     U ] x11-libs/gtk+-2.12.9-r2 [2.12.8] USE="X debug -cups -doc -jpeg -tiff -vim-syntax -xinerama" 15,652 kB

Total: 2 packages (1 upgrade, 1 new), Size of downloads: 16,047 kB
IgorsGentoo igor # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 Celeron (Coppermine)
Timestamp of tree: Sun, 10 Aug 2008 01:15:02 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LINGUAS="ru uk"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb clamav cli cracklib crypt cups dri gdbm gpm hal iconv ipv6 isdnlog kde midi mudflap ncurses nls nptl nptlonly odbc opengl openmp pam pcre perl pppd python qt3 qt4 readline reflection samba session spl ssl tcpd unicode win32codecs wxwindows x86 xorg xpm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru uk" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

IgorsGentoo igor # gdb /mnt/usb/projects/AppBuilder/debug/src/appbuilder
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /mnt/usb/projects/AppBuilder/debug/src/appbuilder
[Thread debugging using libthread_db enabled]
[New Thread -1230129312 (LWP 5221)]
*** glibc detected *** /mnt/usb/projects/AppBuilder/debug/src/appbuilder: double free or corruption (!prev): 0x0813e498 ***
======= Backtrace: =========
/lib/libc.so.6[0xb73e8da0]
/lib/libc.so.6(__libc_free+0x89)[0xb73ea419]
/usr/lib/gcc/i486-pc-linux-gnu/4.1.1/libstdc++.so.6(_ZdlPv+0x21)[0xb7590061]
/mnt/usb/projects/apppainter/debug/src/libapppainter/.libs/libapppainter.so(_ZN16wxCharTypeBufferIcE6DecRefEv+0x63)[0xb69b9bf3]
/mnt/usb/projects/apppainter/debug/src/libapppainter/.libs/libapppainter.so(_ZN16wxCharTypeBufferIcED2Ev+0x1e)[0xb69b9c24]
/mnt/usb/projects/apppainter/debug/src/libapppainter/.libs/libapppainter.so(_ZN12wxCharBufferD1Ev+0x1f)[0xb69b9c4b]
/mnt/usb/projects/apppainter/debug/src/libapppainter/.libs/libapppainter.so(_ZN8wxStringC1EPKc+0x6c)[0xb69b9d46]
/mnt/usb/projects/apppainter/debug/src/libapppainter/.libs/libapppainter.so(ApplicationPainter+0x27)[0xb69b931f]
/mnt/usb/projects/AppBuilder/debug/src/appbuilder[0x8050b48]
/mnt/usb/projects/AppBuilder/debug/src/appbuilder[0x8051936]
/usr/lib/libwx_baseud-2.9.so.0(_Z7wxEntryRiPPw+0x89)[0xb7707159]
/usr/lib/libwx_baseud-2.9.so.0(_Z7wxEntryRiPPc+0x43)[0xb7707289]
/mnt/usb/projects/AppBuilder/debug/src/appbuilder[0x80515f9]
/lib/libc.so.6(__libc_start_main+0xd8)[0xb739a838]
/mnt/usb/projects/AppBuilder/debug/src/appbuilder(_ZN20wxTopLevelWindowBase16DoUpdateWindowUIER15wxUpdateUIEvent+0x39)[0x804fe11]
======= Memory map: ========
08048000-0806a000 r-xp 00000000 08:01 131369     /mnt/usb/projects/AppBuilder/debug/src/appbuilder
0806a000-0806d000 rw-p 00021000 08:01 131369     /mnt/usb/projects/AppBuilder/debug/src/appbuilder
0806d000-0815b000 rw-p 0806d000 00:00 0          [heap]
b6800000-b6821000 rw-p b6800000 00:00 0
b6821000-b6900000 ---p b6821000 00:00 0
b69a7000-b69cc000 r-xp 00000000 08:01 33023      /mnt/usb/projects/apppainter/debug/src/libapppainter/.libs/libapppainter.so.0.0.0
b69cc000-b69ce000 rw-p 00025000 08:01 33023      /mnt/usb/projects/apppainter/debug/src/libapppainter/.libs/libapppainter.so.0.0.0
b69ce000-b69df000 r--p 00000000 16:41 240209     /usr/share/fonts/ttf-bitstream-vera/Vera.ttf
b69df000-b69e1000 r-xp 00000000 16:41 647000     /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b69e1000-b69e2000 rw-p 00001000 16:41 647000     /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b69e2000-b69e9000 r--s 00000000 16:41 9551       /usr/lib/gconv/gconv-modules.cache
b69e9000-b69ef000 r--s 00000000 16:41 324356     /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-x86.cache-2
b69ef000-b69f1000 r--s 00000000 16:41 240404     /var/cache/fontconfig/76fa4b957c916922374347f144bde9da-x86.cache-2
b69f1000-b69ff000 r--s 00000000 16:41 240154     /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
b69ff000-b6a02000 r--s 00000000 16:41 240360     /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86.cache-2
b6a02000-b6a24000 r--s 00000000 16:41 240028     /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
b6a24000-b6a46000 r--s 00000000 16:41 239400     /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2
b6a46000-b6a49000 rw-s 00000000 00:07 196609     /SYSV00000000 (deleted)
b6a49000-b6aa9000 rw-s 00000000 00:07 163840     /SYSV00000000 (deleted)
b6aa9000-b6ab1000 r-xp 00000000 16:41 5920       /lib/libnss_files-2.5.so
b6ab1000-b6ab3000 rw-p 00007000 16:41 5920       /lib/libnss_files-2.5.so
b6ab3000-b6abb000 r-xp 00000000 16:41 5922       /lib/libnss_nis-2.5.so
b6abb000-b6abd000 rw-p 00007000 16:41 5922       /lib/libnss_nis-2.5.so
b6abd000-b6acf000 r-xp 00000000 16:41 5917       /lib/libnsl-2.5.so
b6acf000-b6ad1000 rw-p 00011000 16:41 5917       /lib/libnsl-2.5.so
b6ad1000-b6ad3000 rw-p b6ad1000 00:00 0
b6ad3000-b6ad9000 r-xp 00000000 16:41 5918       /lib/libnss_compat-2.5.so
b6ad9000-b6adb000 rw-p 00005000 16:41 5918       /lib/libnss_compat-2.5.so
b6adb000-b6ade000 rw-p b6adb000 00:00 0
b6ade000-b6b00000 r-xp 00000000 16:41 243439     /usr/lib/libpng12.so.0.18.0
b6b00000-b6b01000 rw-p 00021000 16:41 243439     /usr/lib/libpng12.so.0.18.0
b6b01000-b6b05000 r-xp 00000000 16:41 238065     /usr/lib/libXdmcp.so.6.0.0
b6b05000-b6b06000 rw-p 00003000 16:41 238065     /usr/lib/libXdmcp.so.6.0.0
b6b06000-b6b08000 r-xp 00000000 16:41 237751     /usr/lib/libXau.so.6.0.0
b6b08000-b6b09000 rw-p 00001000 16:41 237751     /usr/lib/libXau.so.6.0.0
b6b09000-b6b0a000 rw-p b6b09000 00:00 0
b6b0a000-b6b80000 r-xp 00000000 16:41 239561     /usr/lib/libfreetype.so.6.3.15
b6b80000-b6b84000 rw-p 00075000 16:41 239561     /usr/lib/libfreetype.so.6.3.15
b6b84000-b6bb0000 r-xp 00000000 16:41 646189     /usr/lib/libpangoft2-1.0.so.0.1800.4
b6bb0000-b6bb1000 rw-p 0002b000 16:41 646189     /usr/lib/libpangoft2-1.0.so.0.1800.4
b6bb1000-b6bc6000 r-xp 00000000 16:41 237892     /usr/lib/libICE.so.6.3.0
b6bc6000-b6bc7000 rw-p 00014000 16:41 237892     /usr/lib/libICE.so.6.3.0
b6bc7000-b6bc9000 rw-p b6bc7000 00:00 0
b6bc9000-b6bd1000 r-xp 00000000 16:41 238613     /usr/lib/libXcursor.so.1.0.2
b6bd1000-b6bd2000 rw-p 00007000 16:41 238613     /usr/lib/libXcursor.so.1.0.2
b6bd2000-b6bd3000 rw-p b6bd2000 00:00 0
b6bd3000-b6bd8000 r-xp 00000000 16:41 239375     /usr/lib/libXrandr.so.2.1.0
b6bd8000-b6bd9000 rw-p 00004000 16:41 239375     /usr/lib/libXrandr.so.2.1.0
b6bd9000-b6be0000 r-xp 00000000 16:41 238817     /usr/lib/libXi.so.6.0.0
b6be0000-b6be1000 rw-p 00006000 16:41 238817     /usr/lib/libXi.so.6.0.0
b6be1000-b6be8000 r-xp 00000000 16:41 238106     /usr/lib/libXrender.so.1.3.0
b6be8000-b6be9000 rw-p 00006000 16:41 238106     /usr/lib/libXrender.so.1.3.0
b6be9000-b6bf6000 r-xp 00000000 16:41 238230     /usr/lib/libXext.so.6.4.0
b6bf6000-b6bf7000 rw-p 0000c000 16:41 238230     /usr/lib/libXext.so.6.4.0
b6bf7000-b6c1a000 r-xp 00000000 16:41 239473     /usr/lib/libfontconfig.so.1.2.0
b6c1a000-b6c22000 rw-p 00023000 16:41 239473     /usr/lib/libfontconfig.so.1.2.0
b6c22000-b6c23000 rw-p b6c22000 00:00 0
b6c23000-b6c92000 r-xp 00000000 16:41 646402     /usr/lib/libcairo.so.2.11.7
b6c92000-b6c93000 rw-p 0006f000 16:41 646402     /usr/lib/libcairo.so.2.11.7
b6c93000-b6c94000 rw-p b6c93000 00:00 0
b6c94000-b6c98000 r-xp 00000000 16:41 238002     /usr/lib/libXfixes.so.3.1.0
b6c98000-b6c99000 rw-p 00003000 16:41 238002     /usr/lib/libXfixes.so.3.1.0
b6c99000-b6c9b000 r-xp 00000000 16:41 239769     /usr/lib/libXdamage.so.1.1.0
b6c9b000-b6c9c000 rw-p 00001000 16:41 239769     /usr/lib/libXdamage.so.1.1.0
b6c9c000-b6c9e000 r-xp 00000000 16:41 239217     /usr/lib/libXcomposi
Program received signal SIGABRT, Aborted.
[Switching to Thread -1230129312 (LWP 5221)]
0xb73ad917 in raise () from /lib/libc.so.6
(gdb) q
The program is running.  Exit anyway? (y or n) y
Для тех кто не знаком с Gentoo:
gtk+ ver 2.12.8
gcc ver 4.1.1.

Последняя выполняемая операция в программе это wxDynamicLibrary::Load().

Притом тоже самое на другой системе Gentoo, более новой. Если нужно, смогу запостить ее параметры. Просто компьютер dual-boot, а проблему нужно решать....

wx TRUNK rev 56296.
../configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu --enable-debug --enable-debug_gdb --enable-debug_cntxt --enable-mem_tracing --enable-profile --disable-apple_ieee --enable-backtrace --disable-gif --disable-pcx --disable-iff --disable-pnm --enable-xpm --with-opengl=no --with-libpng=no --with-libjpeg=no --with-libtiff=no --enable-mediactrl --enable-controls --enable-tabdialogs --enable-dataviewctrl --disable-svg

Заранее спасибо.

PS: Программа компилировалась с помошью KDevelop...
PPS: Программа до сих пор использует макрос _T().

Post Reply