When I emerge media-sound/audacity-1.2.1, it (and its dependencies) emerge fine, but it segfaults on startup. Here's what gdb gives with the debug keyword and nostrip enabled in make.conf: (gdb) run Starting program: /usr/bin/audacity [Thread debugging using libthread_db enabled] [New Thread 2199050665840 (LWP 21269)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 2199050665840 (LWP 21269)] 0x00000200014b88d8 in g_type_is_a () from /usr/lib/libgobject-2.0.so.0 (gdb) bt #0 0x00000200014b88d8 in g_type_is_a () from /usr/lib/libgobject-2.0.so.0 #1 0x00000200011ada78 in gtk_type_new () from /usr/lib/libgtk-x11-2.0.so.0 #2 0x0000020000738d84 in gtk_pizza_new () at win_gtk.c:227 #3 0x0000020000734e6c in wxTopLevelWindowGTK::Create (this=0x1203e5390, parent=0x11f807430, id=-2049, title=@0x11f807550, pos=@0x1203e58f0, sizeOrig=@0x0, style=541068864, name=@0x1203e5740) at toplevel.cpp:385 #4 0x00000200006f8b00 in wxFrame::Create (this=0x1203e5390, parent=0x1203ba5e0, id=19727864, title=@0x10, pos=@0x60, sizeOrig=@0x0, style=1, name=@0x1) at frame.cpp:219 #5 0x000000012004da48 in AudacityApp::OnInit () #6 0x00000200006c3248 in wxEntry (argc=1, argv=0x0) at app.cpp:921 #7 0x000000012004d388 in main () This same result happens regardless of using gcc 3.3.2 or 3.4.4
I tried audacity-1.2.1 and audacity-1.2.3-r1 and I confirm that they both segfault on startup. Portage 2.0.51.22-r3 (default-linux/alpha/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.15-rc2-git4 alpha) ================================================================= System uname: 2.6.15-rc2-git4 alpha EV56 Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="alpha" AUTOCLEAN="yes" CBUILD="alpha-unknown-linux-gnu" CFLAGS="-mieee -O2 -mcpu=ev56 -pipe" CHOST="alpha-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mieee -O2 -mcpu=ev56 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo http://mirror.arcticnetwork.ca/pub/gentoo/ http://adelie.polymtl.ca/ http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" USE="alpha X arts audiofile berkdb bitmap-fonts bzip2 crypt cups curl eds encode esd exif expat fam font-server foomaticdb gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 imlib jabber jpeg kde lcms libg++ libwww lua mad mhash mikmod mng motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL
Please try audacity 1.2.4, ebuild on bug #113948
I tried audacity 1.2.4 from the ebuild on bug #113948 and it also segfaults. From gdb: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 2199049904128 (LWP 18109)] 0x00000200013b2768 in g_type_is_a () from /usr/lib/libgobject-2.0.so.0
Oh. I don't think anyone in audacity development has an Alpha, so this won't have been tested, and could even be a wxGTK problem. Can you try starting it as $ LANG=C audacity so as to force a base locale (find out if it's a unicode issue somewhere)
I tried $ LANG=C audacity with v1.2.4 and it still segfaults in the same place. If you want me to try anything else, I'd be happy too. A week from now, when I'll have a lot more free time, I'll go through the code and see if I can fix whatever is causing the segfault.
1.2.4b in cvs. Please try it.
(In reply to comment #6) > 1.2.4b in cvs. Please try it. Tried it on alpha, and this time I got a different segfault.... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 2199023410768 (LWP 561)] 0x000002000090c2c8 in CoordArray::DoCopy () from /usr/lib/libwx_gtk-2.4.so
I was reading the list of dependencies[1] on the audacity site[2] and found the following: "Audacity 1.2 needs wxGTK 2.4, compiled without the gtk2 or unicode options. (Future versions of Audacity will support newer wxWidgets and GTK libraries.)" Then I checked what USE flags wxGTK was compiled with and found +gtk2. I'll recompile wxGTK and audacity without the gtk2 use flag and post the results. My system is somewhat slow so, it will be a few hours. Also, Debian/Alpha has audacity stable on alpha w/o any source code patches. [1] http://audacity.sourceforge.net/download/source [2] http://audacity.sourceforge.net/ [3] http://packages.debian.org/stable/sound/audacity
> I'll recompile wxGTK and audacity without the gtk2 use flag Recompiling wxGTK-2.4.2-r4 and audacity-1.2.4b with USE="-gtk2" didn't work. I got the same segfault as in Comment #7 I'm going to try audacity-1.2.1 and 1.2.3 again as wxGTK was compiled with +gtk2 and -wxgtk1 when I tested those version before. If that fails I'll try a newer wxGTK 2.4.
emerge'ing audacity-1.2.4b and wxGTK-2.4.2-r4 with USE="-gtk2 wxgtk1 debug" and FEATURES="debug" creates an audacity binary that doesn't segfault on startup ( Screenshot: http://cs.ubishops.ca/~tcort/audacity-alpha.png ). However, I get the following QA notices: QA Notice: the following files contain executable stacks Files with executable stacks will not work properly (or at all!) on some architectures/operating systems. A bug should be filed at http://bugs.gentoo.org/ to make sure the file is fixed. --- --- RWX usr/lib/libwx_gtkd-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_gl-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_canvas-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_fl-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_gizmos-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_net-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_ogl-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_plot-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_stc-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_dcsvg-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtkd_xrc-2.4.so.0.1.1 QA Notice: the following files contain runtime text relocations Text relocations require a lot of extra work to be preformed by the dynamic linker which will cause serious performance impact on IA-32 and might not function properly on other architectures hppa for example. If you are a programmer please take a closer look at this package and consider writing a patch which addresses this problem. TEXTREL usr/bin/audacity QA Notice: the following files contain executable stacks Files with executable stacks will not work properly (or at all!) on some architectures/operating systems. A bug should be filed at http://bugs.gentoo.org/ to make sure the file is fixed. --- --- RWX usr/bin/audacity emerge'ing the same versions without USE="debug" and without FEATURES="debug" results in an audacity binary that segfaults like in Comment #7 While emerge'ing audacity without "debug" I got the following QA Notices: QA Notice: the following files contain executable stacks Files with executable stacks will not work properly (or at all!) on some architectures/operating systems. A bug should be filed at http://bugs.gentoo.org/ to make sure the file is fixed. --- --- RWX usr/lib/libwx_gtk-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_gl-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_canvas-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_fl-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_gizmos-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_net-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_ogl-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_plot-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_stc-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_dcsvg-2.4.so.0.1.1 --- --- RWX usr/lib/libwx_gtk_xrc-2.4.so.0.1.1 QA Notice: the following files contain runtime text relocations Text relocations require a lot of extra work to be preformed by the dynamic linker which will cause serious performance impact on IA-32 and might not function properly on other architectures hppa for example. If you are a programmer please take a closer look at this package and consider writing a patch which addresses this problem. TEXTREL usr/bin/audacity QA Notice: the following files contain executable stacks Files with executable stacks will not work properly (or at all!) on some architectures/operating systems. A bug should be filed at http://bugs.gentoo.org/ to make sure the file is fixed. --- --- RWX usr/bin/audacity Sorry I missed the QA notices earlier, they are printed to stdout (not stderr) and scroll by if you're not paying attention.
audacity-1.2.4b-r1 gives the same segfault as in Comment #7. WRT Comment #10, The executable stack warnings are to be expected[1] on alpha. [1] http://www.gentoo.org/proj/en/hardened/gnu-stack.xml#doc_chap7
Compiling 1.3.0b from scratch (based on wxGTK-2.6) results in an Illegal Instruction. Running a debugger against it isn't much help either: (gdb) run Starting program: /usr/local/bin/audacity [Thread debugging using libthread_db enabled] [New Thread 2199051836800 (LWP 19406)] Program received signal SIGILL, Illegal instruction. [Switching to Thread 2199051836800 (LWP 19406)] 0x0000020000b0a4a4 in vtable for wxStackFrame () from /usr/lib/libwx_base-2.6.so.0
I was able to emerge media-sound/audacity-1.3.2-r1 on my alpha using gcc-4.1.1 and the following emerge --info: Portage 2.1.1-r1 (default-linux/alpha/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17.1 alpha) ================================================================= System uname: 2.6.17.1 alpha EV56 Gentoo Base System version 1.12.6 Last Sync: Fri, 17 Nov 2006 20:30:01 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="alpha" AUTOCLEAN="yes" CBUILD="alpha-unknown-linux-gnu" CFLAGS="-mieee -O2 -mcpu=ev56 -pipe" CHOST="alpha-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-mieee -O2 -mcpu=ev56 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="alpha X alsa berkdb bitmap-fonts bzip2 cairo ccache cdr cli cracklib crypt dlloader dri dvd dvdr dvdread eds elibc_glibc encode fam fortran gdbm gif gnome gstreamer iconv input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ mad moznoirc mp3 mpeg ncurses nptl nptlonly ogg opengl pam pcre perl png ppds pppd python qt3 readline reflection sdl session spell spl ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb userland_GNU userlocales video_cards_radeon video_cards_vga vorbis xml xml2 xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
The bug was caused by a buggy wxGTK on alpha (see bug #170914 for details). I was able to test successfully the latest 1.3.2-r1 audacity version against the wxGTK-2.6.4.0 (will be in portage very soon). So the question is: are the people involved in this bug still want to use audacity in alpha? In this case, I'll happy ~alpha it. If not, I will mark this FIXED but give no keyword at all. Thanks.
New glibc-2.5 fixes the problems with wxGTK. I mark this as FIXED and leave audacity without a keyword until someone request it (in another bug). Thanks.