Bug 294693

Summary: wxGTK: invalid g_free() call on borders (was: audacity crashes/aborts on start)
Product: [openSUSE] openSUSE 10.3 Reporter: Casual J. Programmer <casualprogrammer>
Component: GNOMEAssignee: Pavol Rusnak <prusnak>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bart.otten85, bugzilla.novell, casualprogrammer, com1, felix, jerbes, sboyce
Version: Alpha 6   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 10.3   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Fix (free here is invalid)
altered patch

Description Casual J. Programmer 2007-07-26 08:12:47 UTC
in alpha6plus ( 2.6.22.1-3-default, audacity-1.3.3-14 ) audacity aborts on being invoked.

cjp@workstation6l:~> audacity
/usr/share/themes/Gilouche/gtk-2.0/gtkrc:42: Clearlooks configuration option "menuitemstyle" is not supported and will be ignored.
/usr/share/themes/Gilouche/gtk-2.0/gtkrc:43: Clearlooks configuration option "listviewitemstyle" is not supported and will be ignored.
/usr/share/themes/Gilouche/gtk-2.0/gtkrc:44: Clearlooks configuration option "progressbarstyle" is not supported and will be ignored.
Aborted

GDB shows:

cjp@workstation6l:~> gdb audacity
GNU gdb 6.6.50.20070713-cvs
Copyright (C) 2007 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 "i586-suse-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/audacity 
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread 0xb67fb6d0 (LWP 5176)]
/usr/share/themes/Gilouche/gtk-2.0/gtkrc:42: Clearlooks configuration option "menuitemstyle" is not supported and will be ignored.
/usr/share/themes/Gilouche/gtk-2.0/gtkrc:43: Clearlooks configuration option "listviewitemstyle" is not supported and will be ignored.
/usr/share/themes/Gilouche/gtk-2.0/gtkrc:44: Clearlooks configuration option "progressbarstyle" is not supported and will be ignored.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb67fb6d0 (LWP 5176)]
0xffffe410 in ?? ()
(gdb) thread apply all bt

Thread 1 (Thread 0xb67fb6d0 (LWP 5176)):
#0  0xffffe410 in ?? ()
#1  0xbfded288 in ?? ()
#2  0x00000006 in ?? ()
#3  0x00001438 in ?? ()
#4  0xb72a6835 in raise () from /lib/libc.so.6
#5  0xb72a8121 in abort () from /lib/libc.so.6
#6  0xb72e339b in ?? () from /lib/libc.so.6
#7  0x00000000 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y
Comment 1 Casual J. Programmer 2007-07-26 10:49:33 UTC
when starting as root from terminal:

workstation6l:/home/cjp # audacity
*** glibc detected *** audacity: double free or corruption (out): 0x08605830 ***
======= Backtrace: =========
/lib/libc.so.6[0xb727d376]
/lib/libc.so.6(cfree+0x89)[0xb727f039]
/usr/lib/libglib-2.0.so.0(g_free+0x31)[0xb6d9fbf1]
/usr/lib/libwx_gtk2u_core-2.8.so.0[0xb7888250]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN8wxButton10SetDefaultEv+0xd2)[0xb78888d2]
audacity[0x80c6b90]
audacity[0x80c6f75]
audacity[0x8082bd4]
audacity(_ZN12wxAppConsole10CallOnInitEv+0x11)[0x8083aa1]
/usr/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPw+0x40)[0xb75e6fd0]
/usr/lib/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPc+0x37)[0xb75e70a7]
audacity[0x807ea10]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb722cfe0]
audacity(_ZN9wxAppBase8MainLoopEv+0x4d)[0x8073441]
======= Memory map: ========
08048000-083a4000 r-xp 00000000 08:04 482682     /usr/bin/audacity
083a4000-083e6000 r--p 0035b000 08:04 482682     /usr/bin/audacity
083e6000-08405000 rw-p 0039d000 08:04 482682     /usr/bin/audacity
08405000-08674000 rw-p 08405000 00:00 0          [heap]
b4c00000-b4c21000 rw-p b4c00000 00:00 0 
b4c21000-b4d00000 ---p b4c21000 00:00 0 
b4dd7000-b5265000 r--p 00000000 08:04 508821     /usr/share/icons/hicolor/icon-theme.cache
b5265000-b5ab4000 r--p 00000000 08:04 1044038    /usr/share/icons/gnome/icon-theme.cache
b5ab4000-b5ee0000 r--p 00000000 08:04 543078     /usr/share/icons/Tango/icon-theme.cache
b5ee0000-b5f08000 rw-p b5ee0000 00:00 0 
b5f84000-b5fae000 r--p 00000000 08:04 589120     /usr/share/fonts/truetype/albw.ttf
b5fae000-b5fc1000 r--s 00000000 08:04 1044048    /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-x86.cache-2
b5fc1000-b6007000 r--s 00000000 08:04 1044421    /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
b6007000-b602a000 r--s 00000000 08:04 1044047    /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
b602a000-b6070000 r--s 00000000 08:04 1044420    /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2
b6070000-b60d0000 rw-s 00000000 00:09 1343505    /SYSV00000000 (deleted)
b60d0000-b60f4000 r-xp 00000000 08:04 732964     /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
b60f4000-b60f6000 rw-p 00023000 08:04 732964     /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
b60f6000-b611f000 r-xp 00000000 08:04 486685     /usr/lib/libgnomecanvas-2.so.0.1400.0
b611f000-b6121000 rw-p 00028000 08:04 486685     /usr/lib/libgnomecanvas-2.so.0.1400.0
b6121000-b615e000 r-xp 00000000 08:04 488133     /usr/lib/libgnomeprintui-2-2.so.0.1.0
b615e000-b6160000 rw-p 0003d000 08:04 488133     /usr/lib/libgnomeprintui-2-2.so.0.1.0
b6160000-b6298000 r-xp 00000000 08:04 479174     /usr/lib/libxml2.so.2.6.29
b6298000-b629b000 r--p 00138000 08:04 479174     /usr/lib/libxml2.so.2.6.29
b629b000-b629e000 rw-p 0013b000 08:04 479174     /usr/lib/libxml2.so.2.6.29
b629e000-b629f000 rw-p b629e000 00:00 0 
b629f000-b62b4000 r-xp 00000000 08:04 479056     /usr/lib/libart_lgpl_2.so.2.3.19
b62b4000-b62b6000 rw-p 00014000 08:04 479056     /usr/lib/libart_lgpl_2.so.2.3.19
b62b6000-b631b000 r-xp 00000000 08:04 1107714    /usr/lib/libgnomeprint-2-2.so.0.1.0
b631b000-b631d000 rw-p 00064000 08:04 1107714    /usr/lib/libgnomeprint-2-2.so.0.1.0
b631d000-b631e000 rw-p b631d000 00:00 0 
b6322000-b6324000 r-xp 00000000 08:04 733279     /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b6324000-b6326000 rw-p 00001000 08:04 733279     /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b6326000-b632d000 r--s 00000000 08:04 1044045    /var/cache/fontconfig/77e41c5059666d75f92e318d4be8c21e-x86.cache-2
b632d000-b6330000 r--s 00000000 08:04 1044442    /var/cache/fontconfig/eb6f8dc1763df1b121d74d86b494ef9b-x86.cache-2
b6330000-b6331000 r--s 00000000 08:04 1044358    /var/cache/fontconfig/b6bbb9f898b73777cfe763014a8c08d3-x86.cache-2
b6331000-b6333000 r--s 00000000 08:04 1044054    /var/cache/fontconfig/d458be102e54cf534d1eef0dcbb02d07-x86.cache-2
b6333000-b6339000 r-xp 00000000 08:04 734479     /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so
b6339000-b633b000 rw-p 00005000 08:04 734479     /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so
b633b000-b6342000 r-xp 00000000 08:04 1108552    /usr/lib/libkrb5support.so.0.1
b6342000-b6344000 rw-p 00006000 08:04 1108552    /usr/lib/libkrb5support.so.0.1
b6344000-b6367000 r-xp 00000000 08:04 1108540    /usr/lib/libk5crypto.so.3.1
b6367000-b6369000 rw-p 00023000 08:04 1108540    /usr/lib/libk5crypto.so.3.1
b6369000-b63ee000 r-xp 00000000 08:04 1108550    /usr/lib/libkrb5.so.3.3
b63ee000-b63ef000 r--p 00084000 08:04 1108550    /usr/lib/libkrb5.so.3.3
b63ef000-b63f1000 rw-p 00085000 08:04 1108550    /usr/lib/libkrb5.so.3.3
b63f1000-b651d000 r-xp 00000000 08:04 479150     /usr/lib/libcrypto.so.0.9.8
b651d000-b6524000 r--p 0012c000 08:04 479150     /usr/lib/libcrypto.so.0.9.8
b6524000-b6532000 rw-p 00133000 08:04 479150     /usr/lib/libcrypto.so.0.9.8
b6532000-b6536000 rw-p b6532000 00:00 0 
b6536000-b6575000 r-xp 00000000 08:04 483641     /usr/lib/libssl.so.0.9.8
b6575000-b6579000 rw-p 0003e000 08:04 483641     /usr/lib/libssl.so.0.9.8
b6579000-b658f000 r-xp 00000000 08:04 480759     /usr/lib/libsasl2.so.2.0.22
b658f000-b6591000 rw-p 00015000 08:04 480759     /usr/lib/libsasl2.so.2.0.22
b6591000-b65a0000 r-xp 00000000 08:04 195496     /lib/libresolv-2.6.so
b65a0000-b65a2000 rw-p 0000e000 08:04 195496     /lib/libresolv-2.6.so
b65a2000-b65a4000 rw-p b65a2000 00:00 0 
b65a4000-b65cc000 r-xp 00000000 08:04 1107651    /usr/lib/libgssapi_krb5.so.2.2
b65cc000-b65ce000 rw-p 00027000 08:04 1107651    /usr/lib/libgssapi_krb5.so.2.2
b65ce000-b65da000 r-xp 00000000 08:04 1108634    /usr/lib/liblber-2.3.so.0.2.23
b65da000-b65dc000 rw-p 0000b000 08:04 1108634    /usr/lib/liblber-2.3.so.0.2.23
b65dc000-b6613000 r-xp 00000000 08:04 1108636    /usr/lib/libldap-2.3.so.0.2.23
b6613000-b6615000 rw-p 00036000 08:04 1108636    /usr/lib/libldap-2.3.so.0.2.23Aborted
Comment 2 JP Rosevear 2007-07-26 13:19:16 UTC
Can you grab some debuginfo packages and run valgrind over this Mr. Programmer? :-).
Comment 3 Casual J. Programmer 2007-07-26 18:18:58 UTC
a -debuginfo package is in place already, what needs to be done with valgrind ?
Comment 4 Casual J. Programmer 2007-07-26 18:41:42 UTC
Not sure whether I'm doing this right:

cjp@workstation6l:~> valgrind -v --tool=memcheck  --leak-check=yes --db-attach=yes audacity
==8260== Memcheck, a memory error detector.
==8260== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==8260== Using LibVEX rev 1732, a library for dynamic binary translation.
==8260== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==8260== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==8260== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==8260== 
--8260-- Command line
--8260--    audacity
--8260-- Startup, with flags:
--8260--    -v
--8260--    --tool=memcheck
--8260--    --leak-check=yes
--8260--    --db-attach=yes
--8260-- Contents of /proc/version:
--8260--   Linux version 2.6.22.1-6-default (geeko@buildhost) (gcc version 4.2.1 20070705 (prerelease) (SUSE Linux)) #1 SMP 2007/07/23 08:21:49 UTC
--8260-- Arch and hwcaps: X86, x86-sse1-sse2
--8260-- Page sizes: currently 4096, max supported 4096
--8260-- Valgrind library directory: /usr/lib/valgrind
--8260-- Reading syms from /lib/ld-2.6.so (0x4000000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/bin/audacity (0x8048000)
--8260-- Reading debug info from /usr/lib/debug/usr/bin/audacity.debug...
--8260-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--8260--    object doesn't have a symbol table
--8260--    object doesn't have a dynamic symbol table
--8260-- Reading suppressions file: /usr/lib/valgrind/default.supp
--8260-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x401E000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4021000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libvorbisenc.so.2.0.2 (0x4045000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libvorbisfile.so.3.1.1 (0x4143000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libvorbis.so.0.3.1 (0x414B000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libogg.so.0.5.3 (0x4177000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libsndfile.so.1.0.17 (0x417E000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libFLAC++.so.6.0.1 (0x41DA000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libFLAC.so.8.0.1 (0x41F3000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libid3tag.so.0.3.0 (0x4239000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libsamplerate.so.0.1.1 (0x424B000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libexpat.so.1.5.2 (0x4268000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libwx_gtk2u_aui-2.8.so.0.1.1 (0x428A000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libwx_gtk2u_xrc-2.8.so.0.1.1 (0x42DE000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libwx_gtk2u_qa-2.8.so.0.1.1 (0x4374000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libwx_gtk2u_html-2.8.so.0.1.1 (0x4394000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libwx_gtk2u_adv-2.8.so.0.1.1 (0x443C000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libwx_gtk2u_core-2.8.so.0.1.1 (0x4502000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libwx_baseu_xml-2.8.so.0.1.1 (0x487F000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libwx_baseu_net-2.8.so.0.1.1 (0x488A000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libwx_baseu-2.8.so.0.1.1 (0x48B8000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libasound.so.2.0.0 (0x4A16000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libjack.so.0.0.23 (0x4AD2000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libpthread-2.6.so (0x4AEC000)
--8260-- Reading syms from /lib/librt-2.6.so (0x4B03000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libstdc++.so.6.0.9 (0x4B0C000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libm-2.6.so (0x4BFA000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libgcc_s.so.1 (0x4C1F000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libc-2.6.so (0x4C2C000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libdl-2.6.so (0x4D5E000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgtk-x11-2.0.so.0.1105.0 (0x4D62000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgobject-2.0.so.0.1307.0 (0x5114000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libglib-2.0.so.0.1307.0 (0x5150000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libz.so.1.2.3 (0x520D000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgdk-x11-2.0.so.0.1105.0 (0x5220000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libatk-1.0.so.0.1912.1 (0x52AD000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgdk_pixbuf-2.0.so.0.1105.0 (0x52C8000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libpango-1.0.so.0.1703.0 (0x52E1000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgmodule-2.0.so.0.1307.0 (0x5320000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgthread-2.0.so.0.1307.0 (0x5325000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libXinerama.so.1.0.0 (0x532A000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libSM.so.6.0.0 (0x532E000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libpng12.so.0.18.0 (0x5337000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libjpeg.so.62.0.0 (0x535D000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libtiff.so.3.8.2 (0x537D000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libmspack.so.0.1.0 (0x53D1000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libSDL-1.2.so.0.11.0 (0x53E0000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libpangocairo-1.0.so.0.1703.0 (0x5475000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libX11.so.6.2.0 (0x547F000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libXcomposite.so.1.0.0 (0x559A000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libXdamage.so.1.1.0 (0x559E000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libXfixes.so.3.1.0 (0x55A2000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libcairo.so.2.11.5 (0x55A9000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libfontconfig.so.1.2.0 (0x5627000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libXext.so.6.4.0 (0x5653000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libXrender.so.1.3.0 (0x5662000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libXrandr.so.2.1.0 (0x566B000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libXcursor.so.1.0.2 (0x5672000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libICE.so.6.3.0 (0x567D000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libaa.so.1.0.4 (0x5697000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libpangoft2-1.0.so.0.1703.0 (0x56B2000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libfreetype.so.6.3.16 (0x56E0000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libxcb-xlib.so.0.0.0 (0x574F000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libxcb.so.1.0.0 (0x5753000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libglitz.so.1.0.0 (0x576C000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libxcb-render-util.so.0.0.0 (0x5793000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libxcb-render.so.0.0.0 (0x5798000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libXau.so.6.0.0 (0x57A0000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libncurses.so.5.6 (0x57A5000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgpm.so.1.19.0 (0x57DA000)
--8260--    object doesn't have a symbol table
--8260-- REDIR: 0x4C9A080 (memset) redirected to 0x4024940 (memset)
--8260-- REDIR: 0x4C9A570 (memcpy) redirected to 0x4025500 (memcpy)
--8260-- REDIR: 0x4C991D0 (rindex) redirected to 0x4024410 (rindex)
--8260-- REDIR: 0x4BC6070 (operator new(unsigned)) redirected to 0x4023F40 (operator new(unsigned))
--8260-- REDIR: 0x4BC61B0 (operator new[](unsigned)) redirected to 0x4023BD0 (operator new[](unsigned))
--8260-- REDIR: 0x4C98750 (index) redirected to 0x4024500 (index)
--8260-- REDIR: 0x4C95820 (calloc) redirected to 0x4022ACD (calloc)
--8260-- REDIR: 0x4C98E00 (strlen) redirected to 0x40245C0 (strlen)
--8260-- REDIR: 0x4C95B30 (malloc) redirected to 0x40237A0 (malloc)
--8260-- REDIR: 0x4C93FB0 (free) redirected to 0x40233BA (free)
--8260-- REDIR: 0x4C988C0 (strcmp) redirected to 0x4024690 (strcmp)
--8260-- REDIR: 0x4C99000 (strncmp) redirected to 0x4024620 (strncmp)
--8260-- REDIR: 0x4C9AF70 (strchrnul) redirected to 0x40249C0 (strchrnul)
--8260-- REDIR: 0x4C9A0E0 (mempcpy) redirected to 0x4025000 (mempcpy)
--8260-- REDIR: 0x4C99B80 (memchr) redirected to 0x40247E0 (memchr)
--8260-- REDIR: 0x4C95F60 (realloc) redirected to 0x402384F (realloc)
--8260-- REDIR: 0x4C98EB0 (strnlen) redirected to 0x4024590 (strnlen)
--8260-- REDIR: 0x4C9A270 (stpcpy) redirected to 0x4024CC0 (stpcpy)
--8260-- REDIR: 0x4C98930 (strcpy) redirected to 0x4025740 (strcpy)
--8260-- REDIR: 0x4C9AEA0 (rawmemchr) redirected to 0x40249F0 (rawmemchr)
--8260-- Reading syms from /usr/lib/gconv/UTF-32.so (0x402F000)
--8260--    object doesn't have a symbol table
--8260-- REDIR: 0x4C95E80 (posix_memalign) redirected to 0x4022A7B (posix_memalign)
--8260-- REDIR: 0x4C99100 (strncpy) redirected to 0x4024DA0 (strncpy)
--8260-- REDIR: 0x4C9A010 (memmove) redirected to 0x4024970 (memmove)
--8260-- REDIR: 0x4D004B0 (__strcpy_chk) redirected to 0x4024C60 (__strcpy_chk)
--8260-- REDIR: 0x4C985A0 (strcat) redirected to 0x4025820 (strcat)
--8260-- Reading syms from /lib/libnss_compat-2.6.so (0x403D000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libnsl-2.6.so (0x5A21000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libnss_ldap.so.2 (0x5A38000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libldap-2.3.so.0.2.23 (0x5A58000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/liblber-2.3.so.0.2.23 (0x5A91000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgssapi_krb5.so.2.2 (0x5A9F000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libresolv-2.6.so (0x5AC9000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libsasl2.so.2.0.22 (0x5ADC000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libssl.so.0.9.8 (0x5AF4000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libcrypto.so.0.9.8 (0x5B37000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libkrb5.so.3.3 (0x5C7C000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libk5crypto.so.3.1 (0x5D04000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libcom_err.so.2.1 (0x5D29000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libkrb5support.so.0.1 (0x5D2D000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libkeyutils-1.2.so (0x5D36000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /lib/libnss_files-2.6.so (0x5A05000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x5A0F000)
--8260--    object doesn't have a symbol table
--8260-- REDIR: 0x4BC47F0 (operator delete[](void*)) redirected to 0x4022D53 (operator delete[](void*))
--8260-- Reading syms from /usr/lib/libgnomeprint-2-2.so.0.1.0 (0x5D57000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libart_lgpl_2.so.2.3.19 (0x5DBF000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libxml2.so.2.6.29 (0x5DD6000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgnomeprintui-2-2.so.0.1.0 (0x5F15000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/libgnomecanvas-2.so.0.1400.0 (0x5F54000)
--8260--    object doesn't have a symbol table
--8260-- REDIR: 0x4BC4790 (operator delete(void*)) redirected to 0x40230D1 (operator delete(void*))
--8260-- Reading syms from /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so (0x607F000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so (0x5A12000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so (0x5D3A000)
--8260--    object doesn't have a symbol table
--8260-- Reading syms from /usr/lib/pango/1.6.0/modules/pango-basic-fc.so (0x69CC000)
--8260--    object doesn't have a symbol table
==8260== Invalid free() / delete / delete[]
==8260==    at 0x402343F: free (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==8260==    by 0x5186BF0: g_free (in /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x469424F: (within /usr/lib/libwx_gtk2u_core-2.8.so.0.1.1)
==8260==    by 0x46948D1: wxButton::SetDefault() (in /usr/lib/libwx_gtk2u_core-2.8.so.0.1.1)
==8260==    by 0x80C6B8F: LangChoiceDialog::LangChoiceDialog(wxWindow*, int, wxString const&) (LangChoice.cpp:104)
==8260==    by 0x80C6F74: ChooseLanguage(wxWindow*) (LangChoice.cpp:56)
==8260==    by 0x8082BD3: AudacityApp::OnInit() (AudacityApp.cpp:622)
==8260==    by 0x8083AA0: wxAppConsole::CallOnInit() (app.h:76)
==8260==    by 0x493FFCF: wxEntry(int&, wchar_t**) (in /usr/lib/libwx_baseu-2.8.so.0.1.1)
==8260==    by 0x49400A6: wxEntry(int&, char**) (in /usr/lib/libwx_baseu-2.8.so.0.1.1)
==8260==    by 0x807EA0F: main (AudacityApp.cpp:338)
==8260==  Address 0x62BD230 is 48 bytes inside a block of size 248 alloc'd
==8260==    at 0x4022A50: memalign (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==8260==    by 0x4022AAA: posix_memalign (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==8260==    by 0x519B344: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x519C479: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517D4B5: g_list_prepend (in /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x5178E4E: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517BA43: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517BCE3: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517BFF7: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517C5F6: g_key_file_load_from_file (in /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x4E8C455: (within /usr/lib/libgtk-x11-2.0.so.0.1105.0)
==8260==    by 0x4E8D75E: (within /usr/lib/libgtk-x11-2.0.so.0.1105.0)
==8260== 
==8260== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- 
starting debugger
==8260== starting debugger with cmd: /usr/bin/gdb -nw /proc/8261/fd/1024 8261
GNU gdb 6.6.50.20070713-cvs
Copyright (C) 2007 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 "i586-suse-linux"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/8261/fd/1024, process 8261
(no debugging symbols found)
Failed to read a valid object file image from memory.
0x0402343f in ?? () from /lib/ld-linux.so.2
(gdb) 


 
Comment 5 JP Rosevear 2007-07-27 19:26:30 UTC
Pretty good for a first try :-), you definitely found the problem, its:

==8260== Invalid free() / delete / delete[]
==8260==    at 0x402343F: free (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==8260==    by 0x5186BF0: g_free (in /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x469424F: (within /usr/lib/libwx_gtk2u_core-2.8.so.0.1.1)
==8260==    by 0x46948D1: wxButton::SetDefault() (in
/usr/lib/libwx_gtk2u_core-2.8.so.0.1.1)
==8260==    by 0x80C6B8F: LangChoiceDialog::LangChoiceDialog(wxWindow*, int,
wxString const&) (LangChoice.cpp:104)
==8260==    by 0x80C6F74: ChooseLanguage(wxWindow*) (LangChoice.cpp:56)
==8260==    by 0x8082BD3: AudacityApp::OnInit() (AudacityApp.cpp:622)
==8260==    by 0x8083AA0: wxAppConsole::CallOnInit() (app.h:76)
==8260==    by 0x493FFCF: wxEntry(int&, wchar_t**) (in
/usr/lib/libwx_baseu-2.8.so.0.1.1)
==8260==    by 0x49400A6: wxEntry(int&, char**) (in
/usr/lib/libwx_baseu-2.8.so.0.1.1)
==8260==    by 0x807EA0F: main (AudacityApp.cpp:338)
==8260==  Address 0x62BD230 is 48 bytes inside a block of size 248 alloc'd
==8260==    at 0x4022A50: memalign (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==8260==    by 0x4022AAA: posix_memalign (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==8260==    by 0x519B344: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x519C479: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517D4B5: g_list_prepend (in /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x5178E4E: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517BA43: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517BCE3: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517BFF7: (within /usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x517C5F6: g_key_file_load_from_file (in
/usr/lib/libglib-2.0.so.0.1307.0)
==8260==    by 0x4E8C455: (within /usr/lib/libgtk-x11-2.0.so.0.1105.0)
==8260==    by 0x4E8D75E: (within /usr/lib/libgtk-x11-2.0.so.0.1105.0)

I'm tempted to say this is a bug in wxGTK
Comment 6 Juan Erbes 2007-08-12 13:03:14 UTC
I upgrade audacity and wxGTK to the version of 10.3 beta1 and the problem continues. Starting audacity from konsole appear:
***MEMORY-WARNING***: [6459]: GSlice: g_thread_init() must be called before all other GLib functions; memory corruption due to late invocation of g_thread_init() has been detected; this program is likely to crash, leak or unexpectedly abort soon...
JACK tmpdir identified as [/dev/shm]

When a I open a file, and will emake one effect, or will save, audacity crashes.
Comment 7 Friederike Althen 2007-08-17 16:41:14 UTC
I have the same problem. Audacity does not start for me either:

$ audacity
(audacity:3852): Gtk-CRITICAL **: gtk_widget_ensure_style: assertion `GTK_IS_WIDGET (widget)' failed
Speicherzugriffsfehler

Ubuntu had the same bug. It is solved:
https://bugs.launchpad.net/mandriva/+source/audacity/+bug/128542
Comment 8 Felix Möller 2007-08-17 16:57:47 UTC
The relevant entry in the changelog should be this one:

wxwidgets2.6 (2.6.3.2.1.5ubuntu11) gutsy; urgency=low

  * src/gtk/settings.cpp:
    + Patch from upstream SVN (r48002) to stop using private Gtk API which
      results in segfaults since Gtk 2.11.6.
      https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1767485&group_id=9863

 -- Sebastian Dröge <slomo@ubuntu.com>  Fri, 10 Aug 2007 13:18:20 +0200

Comment 9 JP Rosevear 2007-08-20 20:24:57 UTC
We have this patch as well, I'm not sure this is the same bug.
Comment 10 Juan Erbes 2007-08-27 23:31:26 UTC
(In reply to comment #9 from JP Rosevear)
> We have this patch as well, I'm not sure this is the same bug.
> 

In opensuse 10.3 beta2, I downloaded the sources version 1.3.3-beta, and compiled it, and now appear other error:
(gdb) run
[Thread debugging using libthread_db enabled]
[New Thread 0xb676a6d0 (LWP 28895)]
JACK tmpdir identified as [/dev/shm]
[New Thread 0xb625db90 (LWP 28903)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb676a6d0 (LWP 28895)]
0xffffe410 in __kernel_vsyscall ()
(gdb) 
Comment 11 Bart Otten 2007-08-29 09:10:58 UTC
Juan Erbes: +1

(gdb) run
Starting program: /usr/local/bin/audacity
[Thread debugging using libthread_db enabled]
[New Thread 0xb680e6d0 (LWP 4623)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb680e6d0 (LWP 4623)]
0xffffe410 in __kernel_vsyscall ()
Comment 12 Juan Erbes 2007-09-02 14:59:01 UTC
Now in opensuse 10.3 beta 2 with the last audacity version (audacity-1.3.3-31.i586.rpm), the backtrace is:

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb67406d0 (LWP 9648)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7200835 in raise () from /lib/libc.so.6
#2  0xb7202121 in abort () from /lib/libc.so.6
#3  0xb723d41b in ?? () from /lib/libc.so.6
#4  0x00000000 in ?? ()
Comment 13 Felix Möller 2007-09-04 19:47:22 UTC
My backtrace looks better I think:

(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb72058f5 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb72071e1 in *__GI_abort () at abort.c:88
#3  0xb72424db in malloc_printerr (action=2, str=0xb72efe7b "free(): invalid pointer", ptr=0x5306) at malloc.c:5892
#4  0xb7244125 in *__GI___libc_free (mem=0x8636e10) at malloc.c:3586
#5  0xb6d5fb51 in g_free () from /usr/lib/libglib-2.0.so.0
#6  0xb784d250 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#7  0xb784d8d2 in wxButton::SetDefault () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#8  0x080c6bf0 in ?? ()
#9  0x080c6fd5 in ?? ()
#10 0x08082c34 in ?? ()
#11 0x08083b01 in wxAppConsole::CallOnInit ()
#12 0xb75acfd0 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#13 0xb75ad0a7 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#14 0x0807ea70 in ?? ()
#15 0xb71f1fe0 in __libc_start_main (main=0x807ea50, argc=1, ubp_av=0xbf93f9a4, init=0x8334ef0, fini=0x8334ee0,
    rtld_fini=0xb7f22f60 <_dl_fini>, stack_end=0xbf93f99c) at libc-start.c:222
#16 0x080734a1 in wxAppBase::MainLoop ()

# rpm -qf /usr/lib/libwx_gtk2u_core-2.8.so.0
wxGTK-2.8.4.0-41
# rpm -q audacity
audacity-1.3.3-35

Adding Pavol Rusnak to CC: as he did the last changes to wxGTK.
Comment 14 Bernhard Walle 2007-09-05 09:25:37 UTC
Created attachment 161917 [details]
Fix (free here is invalid)

The problem is fixed here with the attached patch. I submitted a new package

-------------------------------------------------------------------
Wed Sep  5 11:22:52 CEST 2007 - bwalle@suse.de

- fix crash on startup on x86_64 (#294693)

-------------------------------------------------------------------
Comment 15 Bernhard Walle 2007-09-05 09:26:36 UTC
Closing this now. Just reopen if you experience any crashes after that patch (check with rpm -q --changelog first if the patch is in your package).
Comment 16 Pavol Rusnak 2007-09-05 09:41:17 UTC
(In reply to comment #14 from Bernhard Walle)
> - fix crash on startup on x86_64 (#294693)

Interesting. I was just testing this issue and could not reproduce on:
* x86_64 (wxGTK-2.8.4.0-41, audacity-1.3.3-35 - same versions like Felix)
* i586 (wxGTK-2.8.4.0-34, audacity-1.3.3-29)

Bernhard: Have you notified upstream or I should do it?
Comment 18 Felix Möller 2007-09-08 16:15:02 UTC
*** Bug 308963 has been marked as a duplicate of this bug. ***
Comment 19 Juan Erbes 2007-09-10 22:10:05 UTC
The problem with the crshes continues now in opensuse 10.3 beta 3 with the last audacity version
(audacity-1.3.3-35.i586.rpm), the backtrace is:

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb676f6d0 (LWP 16952)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb722e8f5 in raise () from /lib/libc.so.6
#2  0xb72301e1 in abort () from /lib/libc.so.6
#3  0xb726b4db in ?? () from /lib/libc.so.6
#4  0x00000000 in ?? ()
(gdb) 
Comment 20 Bernhard Walle 2007-09-11 07:19:12 UTC
This is not a but in Audacity but in wxGTK. And, the fix made not into Beta 3. Please wait until RC1. If it then happens again, reopen the bug. Closing now again.
Comment 21 Cristian Rodriguez 2007-09-12 02:57:59 UTC
*** Bug 309727 has been marked as a duplicate of this bug. ***
Comment 22 Sid Boyce 2007-09-12 11:03:02 UTC
Searched on audacity and 10.3 Beta3 as I hadn't seen the problem back at Alpha7.
Comment 23 Pavol Rusnak 2007-09-13 09:11:49 UTC
Bernhard: Upstream reports that fix introduces a memory leak. We should use gtk_border_free() instead of g_free(), not remove g_free(). I'll attach modified patched, could you please test it as I was unable to reproduce the bug.
Comment 24 Pavol Rusnak 2007-09-13 09:13:10 UTC
Created attachment 163788 [details]
altered patch
Comment 25 Pavol Rusnak 2007-09-13 14:18:12 UTC
Updated fix submitted to STABLE.