Debian Bug report logs - #56472
zinf: Segfaults in Huffman code on PowerPC

version graph

Package: zinf; Maintainer for zinf is (unknown);

Reported by: "C.M. Connelly" <c@eskimo.com>

Date: Fri, 28 Jan 2000 11:03:01 UTC

Severity: grave

Tags: patch

Merged with 176619

Found in version 2.2.1+cvs20021218-2

Fixed in version zinf/2.2.2+cvs20030131+dp1-4

Done: Andreas Rottmann <rotty@debian.org>

Bug is archived. No further changes may be made.

Forwarded to ijr@freeamp.org

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
New Bug report received and forwarded. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: submit@bugs.debian.org
Subject: freeamp: segfaults at startup when file is specified on command line
Date: Fri, 28 Jan 2000 01:51:02 -0800

Package: freeamp
Version: 1.3.1-5
Severity: grave

When starting freeamp from the command line, as in

   % freeamp blah.mp3

it segfaults, returning

   Segmentation fault

The interface does appear, but closes immediately (unless you're
running GDB, when it stays 'til you quit

GDB says:

   diziet% setenv LD_LIBRARY_PATH /usr/lib/libc_debug
   diziet% gdb freeamp 
   GNU gdb 4.18
   Copyright 1998 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 "powerpc-unknown-linux-gnu"...
   (no debugging symbols found)...
   (gdb) run ~/mp3/love_makes_the_world_go_round.mp3
   Starting program: /usr/bin/freeamp ~/mp3/love_makes_the_world_go_round.mp3

   Program received signal ?, Unknown signal.
   0xfcd3ab0 in __syscall_rt_sigsuspend () at soinit.c:59
   59	soinit.c: No such file or directory.
   (gdb) backtrace
   #0  0xfcd3ab0 in __syscall_rt_sigsuspend () at soinit.c:59
   #1  0xfcd27f0 in __sigsuspend (set=0x7ffff618)
       at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
   #2  0xff52c84 in __pthread_create_2_1 (thread=0x1003a8f4, attr=0x0, 
       start_routine=0x10014580 <linuxThread::internalThreadFunction(void *)>, 
       arg=0x1003a8f0) at restart.h:32
   #3  0x10014608 in linuxThread::Create ()
   #4  0xf99f160 in FreeAmpUI::Init () from /usr/lib/freeamp/plugins/freeamp.ui
   #5  0x1000a7b0 in Player::Run ()
   #6  0x10014ee8 in main ()
   #7  0xfccad74 in __libc_start_main ()
       at ../sysdeps/powerpc/elf/libc-start.c:106
   #8  0x0 in ?? ()
   (gdb) 


System information
==================

Debian Release: potato
Kernel Version: Linux diziet 2.2.15pre5-mrcuts #1 Thu Jan 27 16:10:04 PST 2000 ppc unknown



Versions of packages freeamp depends on:

libaudiofile0, libc6 (>= 2.1), libesd0 (>= 0.2.10-0.19990424.6.2), libncurses4 (>= 4.2-3.1), libstdc++2.10, xlib6g (>= 3.3.5-1), xpm4g (>= 3.4j-0)
ii  libaudiofile0   0.1.7-2        The Audiofile Library
ii  libc6           2.1.1-12.3     GNU C Library: Shared libraries and timezone
ii  libesd0         0.2.16-2       Enlightened Sound Daemon - Shared libraries
ii  libncurses4     4.2-3.2        Shared libraries for terminal handling
ii  libstdc++2.10   2.95.2-3       The GNU stdc++ library
ii  xlib6g          3.3.5-1.1      shared libraries required by X clients
ii  xpm4g           3.4k-2         the X PixMap library

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to Brian Almeida <bma@debian.org>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #10 received at 56472@bugs.debian.org (full text, mbox, reply):

From: Brian Almeida <bma@debian.org>
To: "C.M. Connelly" <c@eskimo.com>, 56472@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#56472: freeamp: segfaults at startup when file is specified on command line
Date: Fri, 28 Jan 2000 07:51:17 -0500
severity 56472 normal
thanks

Please try 2.0.1, which is in current potato.  1.3.1 is ancient. 
BTW, this bug is in no way 'grave' in severity, perhaps important,
but I believe your problems will be fixed in 2.0.1, so I am
setting the severity to normal.

On Fri, Jan 28, 2000 at 01:51:02AM -0800, C.M. Connelly wrote:
> 
> 
> Package: freeamp
> Version: 1.3.1-5
> Severity: grave
> 
> When starting freeamp from the command line, as in
> 
>    % freeamp blah.mp3
> 
> it segfaults, returning
> 
>    Segmentation fault
> 
> The interface does appear, but closes immediately (unless you're
> running GDB, when it stays 'til you quit
> 
> GDB says:
> 
>    diziet% setenv LD_LIBRARY_PATH /usr/lib/libc_debug
>    diziet% gdb freeamp 
>    GNU gdb 4.18
>    Copyright 1998 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 "powerpc-unknown-linux-gnu"...
>    (no debugging symbols found)...
>    (gdb) run ~/mp3/love_makes_the_world_go_round.mp3
>    Starting program: /usr/bin/freeamp ~/mp3/love_makes_the_world_go_round.mp3
> 
>    Program received signal ?, Unknown signal.
>    0xfcd3ab0 in __syscall_rt_sigsuspend () at soinit.c:59
>    59	soinit.c: No such file or directory.
>    (gdb) backtrace
>    #0  0xfcd3ab0 in __syscall_rt_sigsuspend () at soinit.c:59
>    #1  0xfcd27f0 in __sigsuspend (set=0x7ffff618)
>        at ../sysdeps/unix/sysv/linux/sigsuspend.c:48
>    #2  0xff52c84 in __pthread_create_2_1 (thread=0x1003a8f4, attr=0x0, 
>        start_routine=0x10014580 <linuxThread::internalThreadFunction(void *)>, 
>        arg=0x1003a8f0) at restart.h:32
>    #3  0x10014608 in linuxThread::Create ()
>    #4  0xf99f160 in FreeAmpUI::Init () from /usr/lib/freeamp/plugins/freeamp.ui
>    #5  0x1000a7b0 in Player::Run ()
>    #6  0x10014ee8 in main ()
>    #7  0xfccad74 in __libc_start_main ()
>        at ../sysdeps/powerpc/elf/libc-start.c:106
>    #8  0x0 in ?? ()
>    (gdb) 
> 
> 
> System information
> ==================
> 
> Debian Release: potato
> Kernel Version: Linux diziet 2.2.15pre5-mrcuts #1 Thu Jan 27 16:10:04 PST 2000 ppc unknown
> 
> 
> 
> Versions of packages freeamp depends on:
> 
> libaudiofile0, libc6 (>= 2.1), libesd0 (>= 0.2.10-0.19990424.6.2), libncurses4 (>= 4.2-3.1), libstdc++2.10, xlib6g (>= 3.3.5-1), xpm4g (>= 3.4j-0)
> ii  libaudiofile0   0.1.7-2        The Audiofile Library
> ii  libc6           2.1.1-12.3     GNU C Library: Shared libraries and timezone
> ii  libesd0         0.2.16-2       Enlightened Sound Daemon - Shared libraries
> ii  libncurses4     4.2-3.2        Shared libraries for terminal handling
> ii  libstdc++2.10   2.95.2-3       The GNU stdc++ library
> ii  xlib6g          3.3.5-1.1      shared libraries required by X clients
> ii  xpm4g           3.4k-2         the X PixMap library
> 
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>  Behind the counter a boy with a shaven head stared vacantly into space, 
>  a dozen spikes of microsoft protruding from the socket behind his ear.
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>    C.M. Connelly               c@eskimo.com                   SHC, DS
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 
> 

-- 
Brian M. Almeida
Linux Systems Engineer |  http://www.winstar.com | balmeida@winstar.com
Debian Developer       |  http://www.debian.org  | bma@debian.org
Put simply, Debian is to RedHat what Linux is to Windows. 



Severity set to `normal'. Request was from Brian Almeida <bma@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #17 received at 56472@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@debian.org>
Cc: 56472@bugs.debian.org
Subject: Re: Bug#56472: freeamp: segfaults at startup when file is specified on command line
Date: Fri, 28 Jan 2000 13:20:11 -0800
>>>>> "BA" == Brian Almeida <bma@debian.org> writes:

Brian,

    BA> Please try 2.0.1, which is in current potato.  1.3.1 is
    BA> ancient.  BTW, this bug is in no way 'grave' in severity,
    BA> perhaps important, but I believe your problems will be fixed
    BA> in 2.0.1, so I am setting the severity to normal.

2.0.1 isn't built for PowerPC, and won't build on my machine.  It
chugs along for a while, then

   [...]
   gcc -I. -I. -I./config -DUNIX_LIBDIR=\"/usr/lib\" -Dlinux -I./lib/gdbm -I./base/include -Iconfig -I./io/include -I./ui/include -I./lmc/include -I./base/unix/include -I./base/unix/linux/include -I./io/esound/include -I./ui/musicbrowser/unix/include -I./ui/freeamp/include -I./ui/freeamp/unix/include -I./ui/download/unix/include -I./io/soundcard/unix/linux/include -I./ui/lcd/include -I./ui/irman/include -I./lmc/xingmp3/include -I./lmc/cd/include -I./plm/portable/pmp300/sba -I./lib/xml/include -I./lib/zlib/include -I./io/cd/include -I./io/cd/unix/include -Wall -Wno-return-type -g -O2 -I/usr/X11R6/include -I/usr/lib/glib/include -D_REENTRANT -fPIC -c lmc/xingmp3/src/iwinm.c -o lmc/xingmp3/src/iwinm.o
   c++ -I. -I. -I./config -DUNIX_LIBDIR=\"/usr/lib\" -Dlinux -I./lib/gdbm -I./base/include -Iconfig -I./io/include -I./ui/include -I./lmc/include -I./base/unix/include -I./base/unix/linux/include -I./io/esound/include -I./ui/musicbrowser/unix/include -I./ui/freeamp/include -I./ui/freeamp/unix/include -I./ui/download/unix/include -I./io/soundcard/unix/linux/include -I./ui/lcd/include -I./ui/irman/include -I./lmc/xingmp3/include -I./lmc/cd/include -I./plm/portable/pmp300/sba -I./lib/xml/include -I./lib/zlib/include -I./io/cd/include -I./io/cd/unix/include -Wall -Wno-return-type -g -O2 -I/usr/X11R6/include -I/usr/lib/glib/include -D_REENTRANT   -fPIC -c lmc/xingmp3/src/xinglmc.cpp -o lmc/xingmp3/src/xinglmc.o
   lmc/xingmp3/src/xinglmc.cpp: In method `void XingLMC::DecodeWork()':
   lmc/xingmp3/src/xinglmc.cpp:853: ANSI C++ forbids implicit conversion from `void *' in argument passing
   make[2]: *** [lmc/xingmp3/src/xinglmc.o] Error 1
   make[2]: Leaving directory `/usr/src/freeamp-2.0.1/build-tree/freeamp'
   make[1]: *** [plugins-cc] Error 2
   make[1]: Leaving directory `/usr/src/freeamp-2.0.1/build-tree/freeamp'
   make: *** [debian/stampdir/build] Error 2
   Build command 'cd freeamp-2.0.1 && dpkg-buildpackage -b -uc' failed.
   E: Child process failed


My guess for why you haven't seen this problem is that the line in
question is contained in an if/endif that only gets called on non
little-endian machines:

   #if __BYTE_ORDER != __LITTLE_ENDIAN
	    x.out_bytes = cvt_to_wave(pOutBuffer, x.out_bytes);
   #endif

(Line 853 is the center.)

I have no idea how to fix this problem myself, but I hope this message
will give you enough information to fix it.  (One option, my housemate
tells me, is to add ``-fpermissive'' to the CFLAGS, as the problem is
being triggered by gcc 2.95.2's more strict interpretation of the C++
standard.  Of course that's a complete hack.)

Thanks,

   C.

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 


Severity set to `normal'. Request was from Brian Almeida <bma@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to bma@debian.org (Brian M. Almeida):
You have taken responsibility. (full text, mbox, link).


Notification sent to "C.M. Connelly" <c@eskimo.com>:
Bug acknowledged by developer. (full text, mbox, link).


Message #24 received at 56472-close@bugs.debian.org (full text, mbox, reply):

From: bma@debian.org (Brian M. Almeida)
To: 56472-close@bugs.debian.org
Subject: Bug#56472: fixed in freeamp 2.0.1-2
Date: 10 Feb 2000 09:53:37 -0000
We believe that the bug you reported is fixed in the latest version of
freeamp, which has been installed in the Debian FTP archive:
libfreeamp-esound_2.0.1-2_i386.deb
  to dists/potato/main/binary-i386/sound/libfreeamp-esound_2.0.1-2.deb
  replacing libfreeamp-esound_2.0.1-1.deb
libfreeamp-esound_2.0.1-2_i386.deb
  to dists/woody/main/binary-i386/sound/libfreeamp-esound_2.0.1-2.deb
  replacing libfreeamp-esound_2.0.1-1.deb
freeamp-doc_2.0.1-2_all.deb
  to dists/potato/main/binary-all/sound/freeamp-doc_2.0.1-2.deb
  replacing freeamp-doc_2.0.1-1.deb
freeamp-doc_2.0.1-2_all.deb
  to dists/woody/main/binary-all/sound/freeamp-doc_2.0.1-2.deb
  replacing freeamp-doc_2.0.1-1.deb
freeamp_2.0.1-2.diff.gz
  to dists/potato/main/source/sound/freeamp_2.0.1-2.diff.gz
  replacing freeamp_2.0.1-1.diff.gz
freeamp_2.0.1-2.diff.gz
  to dists/woody/main/source/sound/freeamp_2.0.1-2.diff.gz
  replacing freeamp_2.0.1-1.diff.gz
libfreeamp-alsa_2.0.1-2_i386.deb
  to dists/potato/main/binary-i386/sound/libfreeamp-alsa_2.0.1-2.deb
  replacing libfreeamp-alsa_2.0.1-1.deb
libfreeamp-alsa_2.0.1-2_i386.deb
  to dists/woody/main/binary-i386/sound/libfreeamp-alsa_2.0.1-2.deb
  replacing libfreeamp-alsa_2.0.1-1.deb
freeamp_2.0.1-2.dsc
  to dists/potato/main/source/sound/freeamp_2.0.1-2.dsc
  replacing freeamp_2.0.1-1.dsc
freeamp_2.0.1-2.dsc
  to dists/woody/main/source/sound/freeamp_2.0.1-2.dsc
  replacing freeamp_2.0.1-1.dsc
freeamp_2.0.1-2_i386.deb
  to dists/potato/main/binary-i386/sound/freeamp_2.0.1-2.deb
  replacing freeamp_2.0.1-1.deb
freeamp_2.0.1-2_i386.deb
  to dists/woody/main/binary-i386/sound/freeamp_2.0.1-2.deb
  replacing freeamp_2.0.1-1.deb

Note that this package is not part of the released stable Debian
distribution.  It may have dependencies on other unreleased software,
or other instabilities.  Please take care if you wish to install it.
The update will eventually make its way into the next released Debian
distribution.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 56472@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Brian M. Almeida <bma@debian.org> (supplier of updated freeamp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.6
Date: Tue,  8 Feb 2000 14:11:18 -0500
Source: freeamp
Binary: libfreeamp-alsa freeamp libfreeamp-esound freeamp-doc
Architecture: source i386 all
Version: 2.0.1-2
Distribution: frozen unstable
Urgency: low
Maintainer: Brian M. Almeida <bma@debian.org>
Description: 
 freeamp    - A GPLed MPEG (mp2/mp3) audio player with a nice X frontend
 freeamp-doc - FreeAmp documentation and help files
 libfreeamp-alsa - ALSA plugins for FreeAmp
 libfreeamp-esound - EsounD plugins for FreeAmp
Closes: 56472
Changes: 
 freeamp (2.0.1-2) frozen unstable; urgency=low
 .
   * Upstream compile fix needed for PPC, closes: #56472
   * --disable-rio due to a bug in libc6
Files: 
 0009207c533aa1c3456c2ee9b9050f63 781 sound optional freeamp_2.0.1-2.dsc
 820931dadebb99433cb4440edb00e8b6 8457 sound optional freeamp_2.0.1-2.diff.gz
 2e53f59c6e1b65b80f203db2430750b9 291170 sound optional freeamp-doc_2.0.1-2_all.deb
 f92d513a4560afd4c053d470d1dc4a8c 1668106 sound optional freeamp_2.0.1-2_i386.deb
 a124029218e285bacd1f86a990fb809d 34396 sound optional libfreeamp-esound_2.0.1-2_i386.deb
 ed706532c9c5c8e598d74d7e58a6d5b5 35816 sound optional libfreeamp-alsa_2.0.1-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4oH5EvN0db6ENkYwRAteBAJ9qrhueogGhou6UqMMe39o5KfgvOQCghclH
36QDdgO+vjnoa84dqr+QsbQ=
=W6m/
-----END PGP SIGNATURE-----



Changed Bug title. Request was from Brian Almeida <bma@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reopened, originator not changed. Request was from Brian Almeida <bma@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug title. Request was from Brian Almeida <bma@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Message sent on to "C.M. Connelly" <c@eskimo.com>:
Bug#56472. (full text, mbox, link).


Message #33 received at 56472-submitter@bugs.debian.org (full text, mbox, reply):

From: Brian Almeida <bma@debian.org>
To: 56472-submitter@bugs.debian.org
Subject: backtraces
Date: Wed, 16 Feb 2000 16:07:59 -0500
Can you send me those backtraces again? I seem to have lost them.

BTW, another user using a 400Mhz G3 had no problems playing mp3s.

-- 
Brian M. Almeida
Linux Systems Engineer |  http://www.winstar.com | balmeida@winstar.com
Debian Developer       |  http://www.debian.org  | bma@debian.org
cthread.  cthread_fork().  Fork, thread, fork!



Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #36 received at 56472-quiet@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@debian.org>, 56472-quiet@bugs.debian.org
Cc: 56472-submitter@bugs.debian.org
Subject: Re: Bug#56472: backtraces
Date: Wed, 16 Feb 2000 14:41:54 -0800
Brian,

>>>>> "BA" == Brian Almeida <bma@debian.org> writes:

    BA> Can you send me those backtraces again? I seem to have
    BA> lost them.

Attached.

    BA> BTW, another user using a 400Mhz G3 had no problems
    BA> playing mp3s.

Well, a G3 machine has a completely different architecture from my
machine (PowerCenter 132, 132 MHz 604e processor, based on
Catalyst motherboard design, roughly similar to an Apple PowerMac
7200), so I'm not surprised.  There've been all sorts of annoying
little bugs created by code for the newer PowerMacs that affect
people with older machines.

   Claire

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 


   To: Brian Almeida <bma@debian.org>, ijr@freeamp.org
   cc: 57421@bugs.debian.org
   From: "C.M. Connelly" <c@eskimo.com>
   Subject: Re: Bug#57421: esound: xmms plays scractchy audio through esd 
   Reply-To: "C.M. Connelly" <c@eskimo.com>
   In-reply-to: Message from Brian Almeida <bma@debian.org> 
      of "Thu, 10 Feb 2000 08:35:18 EST." <20000210083518.A2002@debian.org> 
   Date: Thu, 10 Feb 2000 12:35:27 -0800
   Sender: claire@diziet.ppp.cs.sfu.ca


   >>>>> "BA" == Brian Almeida <bma@debian.org> writes:

   Brian,

       BA> Eeek!  Can you comment dh_strip out of debian/rules and
       BA> rebuild (yes, I know it takes forever ;) and run gdb on
       BA> that.  When you get the segmentation fault, give me a
       BA> backtrace (bt)...thanks.  You might want to Cc the freeamp
       BA> linux author too, ijr@freeamp.org

   Done.  The weird thing about it before, though, was that gdb would
   crash too -- usually you'll just get lots of not terribly
   meaningful information back if the executable has been stripped.
   Seems to work now, though.  [On the debian one, the build-tree
   freeamp works the same as before -- keep reading.]

   So.  The freeamp in /usr/src/freeamp-2.0.1/debian/freeamp/usr/bin/
   gives:

      diziet:/usr/src/freeamp-2.0.1/debian/freeamp/usr/bin# gdb freeamp
      GNU gdb 4.18
      [deletia]
      This GDB was configured as "powerpc-unknown-linux-gnu"...
      (gdb) run ~claire/mp3/love_makes_the_world_go_round.mp3
      Starting program: /usr/src/freeamp-2.0.1/debian/freeamp/usr/bin/freeamp ~claire/mp3/love_makes_the_world_go_round.mp3
      /usr/lib/freeamp/plugins/freeampcmd.ui: undefined symbol: SetFirst__15PlayListManager
      Cannot access memory at address 0x74466972.
      (gdb) backtrace
      #0  0x3000c674 in _dl_debug_state () from /lib/ld.so.1
      #1  0xfd83868 in _dl_close () from /lib/libc.so.6
      #2  0xfd83694 in _dl_open () from /lib/libc.so.6
      #3  0xffae17c in dlopen_doit () from /lib/libdl.so.2
      #4  0x3000c244 in _dl_catch_error () from /lib/ld.so.1
      #5  0xffae8d4 in _dlerror_run () from /lib/libdl.so.2
      #6  0xffae1d0 in dlopen@@GLIBC_2.1 () from /lib/libdl.so.2
      #7  0x1003ba74 in LoadLibrary (
	  lpLibFileName=0x7fffeb78 "/usr/lib/freeamp/plugins/freeamp.ui")
	  at base/unix/src/win32impl.cpp:223
      #8  0x1002bb8c in Registrar::InitializeRegistry (this=0x10072b38, 
	  registry=0x10076e08, prefs=0x10072a48) at base/src/registrar.cpp:157
      #9  0x100390c8 in main (argc=2, argv=0x7ffffc54)
	  at base/unix/src/bootstrap.cpp:113
      (gdb) 

   I get the exact same error if I just try running it without
   specifying a file on the command line (or with run).  Backtrace is
   the same, too.

   If I zap the ~/.freeamp directory, the error is different:

      GNU gdb 4.18
      [deletia]
      This GDB was configured as "powerpc-unknown-linux-gnu"...
      (gdb) run
      Starting program: /usr/src/freeamp-2.0.1/debian/freeamp/usr/bin/freeamp 
      /usr/lib/freeamp/plugins/freeampcmd.ui: undefined symbol: SetFirst__15PlayListManager
      /usr/lib/freeamp/plugins/freeamp.ui: undefined symbol: SetFirst__15PlayListManager
      /usr/lib/freeamp/plugins/irman.ui: undefined symbol: SetFirst__15PlayListManager/usr/lib/freeamp/plugins/lcd.ui: undefined symbol: SetFirst__15PlayListManager
      /usr/lib/freeamp/plugins/mpg123.ui: undefined symbol: SetFirst__15PlayListManager
      /usr/lib/freeamp/plugins/ncurses.ui: undefined symbol: SetFirst__15PlayListManager

      Program received signal ?, Unknown signal.
      0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
      (gdb) bt
      #0  0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
      #1  0xfcd27f0 in sigsuspend () from /lib/libc.so.6
      #2  0xff52c84 in pthread_create@@GLIBC_2.1 () from /lib/libpthread.so.0
      #3  0x10038844 in linuxThread::Create (this=0xfffffffc, function=0x8, 
	  arg=0x7fffe9b8) at base/unix/linux/src/linuxthread.cpp:90
      #4  0x10030794 in DownloadManager::DownloadManager (this=0x1007b478, 
	  context=0x100729d8) at base/src/downloadmanager.cpp:134
      #5  0x10013a2c in Player::Player (this=0x1007ae28, context=0x1007b478)
	  at base/src/player.cpp:165
      #6  0x10013488 in Player::GetPlayer (context=0x100729d8)
	  at base/src/player.cpp:73
      #7  0x10039118 in main (argc=1, argv=0x7ffffc94)
	  at base/unix/src/bootstrap.cpp:120
      (gdb) 

   If i run it again, I get the same messages I did before (the first
   ones listed).  If I tell it to continue, though, I get

      (gdb) cont
      Continuing.
      /usr/lib/freeamp/plugins/freeamp.ui: undefined symbol: SetFirst__15PlayListManager
      /usr/lib/freeamp/plugins/irman.ui: undefined symbol: SetFirst__15PlayListManager/usr/lib/freeamp/plugins/lcd.ui: undefined symbol: SetFirst__15PlayListManager
      /usr/lib/freeamp/plugins/mpg123.ui: undefined symbol: SetFirst__15PlayListManager
      /usr/lib/freeamp/plugins/ncurses.ui: undefined symbol: SetFirst__15PlayListManager

      Program received signal ?, Unknown signal.
      0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
      (gdb) bt
      #0  0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
      #1  0xfcd27f0 in sigsuspend () from /lib/libc.so.6
      #2  0xff52c84 in pthread_create@@GLIBC_2.1 () from /lib/libpthread.so.0
      #3  0x10038844 in linuxThread::Create (this=0xfffffffc, function=0x8, 
	  arg=0x7fffe9b8) at base/unix/linux/src/linuxthread.cpp:90
      #4  0x10030794 in DownloadManager::DownloadManager (this=0x10079d50, 
	  context=0x100729d8) at base/src/downloadmanager.cpp:134
      #5  0x10013a2c in Player::Player (this=0x10078f80, context=0x10079d50)
	  at base/src/player.cpp:165
      #6  0x10013488 in Player::GetPlayer (context=0x100729d8)
	  at base/src/player.cpp:73
      #7  0x10039118 in main (argc=1, argv=0x7ffffc94)
	  at base/unix/src/bootstrap.cpp:120
      (gdb) cont
      Continuing.
      warning: Signal ? does not exist on this system.

   At which point it's well and truly hung.  You'll have noticed
   those are the same messages that appear when the program is run
   for the first time on a ``virgin'' system (without a ~/.freeamp
   directory).


   The one in /usr/src/freeamp-2.0.1/build-tree/freeamp/ gives, well,
   nothing (just like we saw before):

      diziet:/usr/src/freeamp-2.0.1/build-tree/freeamp# gdb freeamp
      GNU gdb 4.18
      [deletia]
      This GDB was configured as "powerpc-unknown-linux-gnu"...
      (gdb) run ~claire/home/love_makes_the_world_go_round.mp3
      Starting program: /usr/src/freeamp-2.0.1/build-tree/freeamp/freeamp ~claire/home/love_makes_the_world_go_round.mp3
      Segmentation fault

   And, sadly, exactly the same error when I try without specifying a
   file.  So there's no way to get a backtrace.  And there's no
   difference if I zap the ~/.freeamp directory, either.



Message sent on to "C.M. Connelly" <c@eskimo.com>:
Bug#56472. (full text, mbox, link).


Message sent on to "C.M. Connelly" <c@eskimo.com>:
Bug#56472. (full text, mbox, link).


Message #42 received at 56472-submitter@bugs.debian.org (full text, mbox, reply):

From: Brian Almeida <bma@master.debian.org>
To: 56472-submitter@bugs.debian.org
Subject: [ijr@freeamp.org: RE: [c@eskimo.com: Re: Bug#56472: backtraces]]
Date: Thu, 17 Feb 2000 20:13:56 -0600
----- Forwarded message from Isaac Richards <ijr@freeamp.org> -----

Delivered-To: bma@debian.org
X-Mailer: XFMail 1.4.4 on Linux
X-Priority: 3 (Normal)
In-Reply-To: <20000216174654.A13281@debian.org>
Date: Thu, 17 Feb 2000 16:04:27 -0500 (EST)
From: Isaac Richards <ijr@freeamp.org>
To: Brian Almeida <bma@debian.org>
Subject: RE: [c@eskimo.com: Re: Bug#56472: backtraces]

Erm.  There's a good reason it can't find those symbols.  They were only
present in 1.3 and removed in an early 2.0 beta.  He's got old plugins or
something lying around.  User Error. =)

Isaac

On 16-Feb-2000 Brian Almeida wrote:
> See what you can do without a machine :)
> ----- Forwarded message from "C.M. Connelly" <c@eskimo.com> -----
> 
> Delivered-To: bma@debian.org
> To: Brian Almeida <bma@debian.org>, 56472-quiet@bugs.debian.org
> cc: 56472-submitter@bugs.debian.org
> From: "C.M. Connelly" <c@eskimo.com>
> Subject: Re: Bug#56472: backtraces 
> Reply-To: "C.M. Connelly" <c@eskimo.com>
> Date: Wed, 16 Feb 2000 14:41:54 -0800
> X-UIDL: 950740899.22617.sun5mail
> 
> 
> Brian,
> 
>>>>>> "BA" == Brian Almeida <bma@debian.org> writes:
> 
>     BA> Can you send me those backtraces again? I seem to have
>     BA> lost them.
> 
> Attached.
> 
>     BA> BTW, another user using a 400Mhz G3 had no problems
>     BA> playing mp3s.
> 
> Well, a G3 machine has a completely different architecture from my
> machine (PowerCenter 132, 132 MHz 604e processor, based on
> Catalyst motherboard design, roughly similar to an Apple PowerMac
> 7200), so I'm not surprised.  There've been all sorts of annoying
> little bugs created by code for the newer PowerMacs that affect
> people with older machines.
> 
>    Claire
> 
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>  Behind the counter a boy with a shaven head stared vacantly into space, 
>  a dozen spikes of microsoft protruding from the socket behind his ear.
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>    C.M. Connelly               c@eskimo.com                   SHC, DS
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 
> 
> 
>    To: Brian Almeida <bma@debian.org>, ijr@freeamp.org
>    cc: 57421@bugs.debian.org
>    From: "C.M. Connelly" <c@eskimo.com>
>    Subject: Re: Bug#57421: esound: xmms plays scractchy audio through esd 
>    Reply-To: "C.M. Connelly" <c@eskimo.com>
>    In-reply-to: Message from Brian Almeida <bma@debian.org> 
>       of "Thu, 10 Feb 2000 08:35:18 EST." <20000210083518.A2002@debian.org> 
>    Date: Thu, 10 Feb 2000 12:35:27 -0800
>    Sender: claire@diziet.ppp.cs.sfu.ca
> 
> 
>    >>>>> "BA" == Brian Almeida <bma@debian.org> writes:
> 
>    Brian,
> 
>        BA> Eeek!  Can you comment dh_strip out of debian/rules and
>        BA> rebuild (yes, I know it takes forever ;) and run gdb on
>        BA> that.  When you get the segmentation fault, give me a
>        BA> backtrace (bt)...thanks.  You might want to Cc the freeamp
>        BA> linux author too, ijr@freeamp.org
> 
>    Done.  The weird thing about it before, though, was that gdb would
>    crash too -- usually you'll just get lots of not terribly
>    meaningful information back if the executable has been stripped.
>    Seems to work now, though.  [On the debian one, the build-tree
>    freeamp works the same as before -- keep reading.]
> 
>    So.  The freeamp in /usr/src/freeamp-2.0.1/debian/freeamp/usr/bin/
>    gives:
> 
>       diziet:/usr/src/freeamp-2.0.1/debian/freeamp/usr/bin# gdb freeamp
>       GNU gdb 4.18
>       [deletia]
>       This GDB was configured as "powerpc-unknown-linux-gnu"...
>       (gdb) run ~claire/mp3/love_makes_the_world_go_round.mp3
>       Starting program: /usr/src/freeamp-2.0.1/debian/freeamp/usr/bin/freeamp
> ~claire/mp3/love_makes_the_world_go_round.mp3
>       /usr/lib/freeamp/plugins/freeampcmd.ui: undefined symbol:
> SetFirst__15PlayListManager
>       Cannot access memory at address 0x74466972.
>       (gdb) backtrace
>       #0  0x3000c674 in _dl_debug_state () from /lib/ld.so.1
>       #1  0xfd83868 in _dl_close () from /lib/libc.so.6
>       #2  0xfd83694 in _dl_open () from /lib/libc.so.6
>       #3  0xffae17c in dlopen_doit () from /lib/libdl.so.2
>       #4  0x3000c244 in _dl_catch_error () from /lib/ld.so.1
>       #5  0xffae8d4 in _dlerror_run () from /lib/libdl.so.2
>       #6  0xffae1d0 in dlopen@@GLIBC_2.1 () from /lib/libdl.so.2
>       #7  0x1003ba74 in LoadLibrary (
>         lpLibFileName=0x7fffeb78 "/usr/lib/freeamp/plugins/freeamp.ui")
>         at base/unix/src/win32impl.cpp:223
>       #8  0x1002bb8c in Registrar::InitializeRegistry (this=0x10072b38, 
>         registry=0x10076e08, prefs=0x10072a48) at base/src/registrar.cpp:157
>       #9  0x100390c8 in main (argc=2, argv=0x7ffffc54)
>         at base/unix/src/bootstrap.cpp:113
>       (gdb) 
> 
>    I get the exact same error if I just try running it without
>    specifying a file on the command line (or with run).  Backtrace is
>    the same, too.
> 
>    If I zap the ~/.freeamp directory, the error is different:
> 
>       GNU gdb 4.18
>       [deletia]
>       This GDB was configured as "powerpc-unknown-linux-gnu"...
>       (gdb) run
>       Starting program: /usr/src/freeamp-2.0.1/debian/freeamp/usr/bin/freeamp
>       /usr/lib/freeamp/plugins/freeampcmd.ui: undefined symbol:
> SetFirst__15PlayListManager
>       /usr/lib/freeamp/plugins/freeamp.ui: undefined symbol:
> SetFirst__15PlayListManager
>       /usr/lib/freeamp/plugins/irman.ui: undefined symbol:
> SetFirst__15PlayListManager/usr/lib/freeamp/plugins/lcd.ui: undefined symbol:
> SetFirst__15PlayListManager
>       /usr/lib/freeamp/plugins/mpg123.ui: undefined symbol:
> SetFirst__15PlayListManager
>       /usr/lib/freeamp/plugins/ncurses.ui: undefined symbol:
> SetFirst__15PlayListManager
> 
>       Program received signal ?, Unknown signal.
>       0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
>       (gdb) bt
>       #0  0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
>       #1  0xfcd27f0 in sigsuspend () from /lib/libc.so.6
>       #2  0xff52c84 in pthread_create@@GLIBC_2.1 () from /lib/libpthread.so.0
>       #3  0x10038844 in linuxThread::Create (this=0xfffffffc, function=0x8, 
>         arg=0x7fffe9b8) at base/unix/linux/src/linuxthread.cpp:90
>       #4  0x10030794 in DownloadManager::DownloadManager (this=0x1007b478, 
>         context=0x100729d8) at base/src/downloadmanager.cpp:134
>       #5  0x10013a2c in Player::Player (this=0x1007ae28, context=0x1007b478)
>         at base/src/player.cpp:165
>       #6  0x10013488 in Player::GetPlayer (context=0x100729d8)
>         at base/src/player.cpp:73
>       #7  0x10039118 in main (argc=1, argv=0x7ffffc94)
>         at base/unix/src/bootstrap.cpp:120
>       (gdb) 
> 
>    If i run it again, I get the same messages I did before (the first
>    ones listed).  If I tell it to continue, though, I get
> 
>       (gdb) cont
>       Continuing.
>       /usr/lib/freeamp/plugins/freeamp.ui: undefined symbol:
> SetFirst__15PlayListManager
>       /usr/lib/freeamp/plugins/irman.ui: undefined symbol:
> SetFirst__15PlayListManager/usr/lib/freeamp/plugins/lcd.ui: undefined symbol:
> SetFirst__15PlayListManager
>       /usr/lib/freeamp/plugins/mpg123.ui: undefined symbol:
> SetFirst__15PlayListManager
>       /usr/lib/freeamp/plugins/ncurses.ui: undefined symbol:
> SetFirst__15PlayListManager
> 
>       Program received signal ?, Unknown signal.
>       0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
>       (gdb) bt
>       #0  0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
>       #1  0xfcd27f0 in sigsuspend () from /lib/libc.so.6
>       #2  0xff52c84 in pthread_create@@GLIBC_2.1 () from /lib/libpthread.so.0
>       #3  0x10038844 in linuxThread::Create (this=0xfffffffc, function=0x8, 
>         arg=0x7fffe9b8) at base/unix/linux/src/linuxthread.cpp:90
>       #4  0x10030794 in DownloadManager::DownloadManager (this=0x10079d50, 
>         context=0x100729d8) at base/src/downloadmanager.cpp:134
>       #5  0x10013a2c in Player::Player (this=0x10078f80, context=0x10079d50)
>         at base/src/player.cpp:165
>       #6  0x10013488 in Player::GetPlayer (context=0x100729d8)
>         at base/src/player.cpp:73
>       #7  0x10039118 in main (argc=1, argv=0x7ffffc94)
>         at base/unix/src/bootstrap.cpp:120
>       (gdb) cont
>       Continuing.
>       warning: Signal ? does not exist on this system.
> 
>    At which point it's well and truly hung.  You'll have noticed
>    those are the same messages that appear when the program is run
>    for the first time on a ``virgin'' system (without a ~/.freeamp
>    directory).
> 
> 
>    The one in /usr/src/freeamp-2.0.1/build-tree/freeamp/ gives, well,
>    nothing (just like we saw before):
> 
>       diziet:/usr/src/freeamp-2.0.1/build-tree/freeamp# gdb freeamp
>       GNU gdb 4.18
>       [deletia]
>       This GDB was configured as "powerpc-unknown-linux-gnu"...
>       (gdb) run ~claire/home/love_makes_the_world_go_round.mp3
>       Starting program: /usr/src/freeamp-2.0.1/build-tree/freeamp/freeamp
> ~claire/home/love_makes_the_world_go_round.mp3
>       Segmentation fault
> 
>    And, sadly, exactly the same error when I try without specifying a
>    file.  So there's no way to get a backtrace.  And there's no
>    difference if I zap the ~/.freeamp directory, either.
> 
> ----- End forwarded message -----
> 
> -- 
> Brian M. Almeida
> Linux Systems Engineer |  http://www.winstar.com | balmeida@winstar.com
> Debian Developer       |  http://www.debian.org  | bma@debian.org
> <mpav> A program is not bug free, until the last user is dead
> 

----------------------------------
E-Mail: Isaac Richards <ijr@freeamp.org>
Date: 17-Feb-2000
Time: 16:03:04

This message was sent by XFMail
----------------------------------

----- End forwarded message -----


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #47 received at 56472@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@master.debian.org>, 56472@bugs.debian.org
Cc: "Isaac Richards" <ijr@freeamp.org>
Subject: Re: Bug#56472: [ijr@freeamp.org: RE: [c@eskimo.com: Re: Bug#56472: backtraces]]
Date: Fri, 18 Feb 2000 12:55:25 -0800
>>>>> "IR" == Isaac Richards <ijr@freeamp.org>
>>>>> "BA" == Brian Almeida <bma@master.debian.org>


    IR> Erm.  There's a good reason it can't find those symbols.
    IR> They were only present in 1.3 and removed in an early 2.0
    IR> beta.  He's got old plugins or something lying around.
    IR> User Error. =)

    BA> Eeek!  Can you comment dh_strip out of debian/rules and
    BA> rebuild (yes, I know it takes forever ;) and run gdb on
    BA> that.  When you get the segmentation fault, give me a
    BA> backtrace (bt)...thanks.  You might want to Cc the freeamp
    BA> linux author too, ijr@freeamp.org

So the new version is too dumb to tell it's trying to use old
plugins, and it's also not using the stuff in the debian
pre-install tree.  Too bad there's no mention of the changes Isaac
cites in the README, README.linux, or INSTALL files.

I removed the older version of freeamp with dpkg -r (no loss, as
it didn't work anyway), and rebuilt using dpkg-buildpackage -b
-uc.  Everything seemed fine until the build process got to
dh_movefiles -a:

   [deletia]
   dh_installdirs -a usr/bin
   dh_installdocs -a
   dh_installchangelogs -a build-tree/freeamp/CHANGES
   dh_installmime -a
   dh_installmenu -a
   dh_undocumented freeamp.1 mpg123.freeamp.1 MakeTheme.1
   chmod a-x debian/tmp/usr/share/freeamp/themes/*.fat
   cp debian/mpg123.freeamp debian/tmp/usr/bin/mpg123.freeamp
   chmod 755 debian/tmp/usr/bin/mpg123.freeamp
   strip debian/tmp/usr/lib/freeamp/plugins/*
   dh_movefiles -a
   find: usr/lib/freeamp/plugins/alsa.pmo: No such file or directory
   find: usr/lib/freeamp/plugins/alsa.pmo: No such file or directory
   make: *** [freeamp] Error 1


No deb, no install.  With no ~/.freeamp/ directory, attempting to
run the freeamp binary in
/usr/src/freeamp-2.0.1/debian/freeamp/usr/bin/ (as before)
results in

   No UI plugin in '.:~/.freeamp:/usr/lib/freeamp' matched
   'plugins/' or 'plugins/.ui.' 
   FreeAmp will quit.


Running the freeamp binary in /usr/src/freeamp-2.0.1/build-tree/freeamp/ 
starts, but segfaults as soon as you try to play anything.
Running it with gdb gets you exactly what we saw before:

   diziet:/usr/src/freeamp-2.0.1/build-tree/freeamp# gdb ./freeamp
   GNU gdb 4.18
   Copyright 1998 Free Software Foundation, Inc.
   [deletia]
   This GDB was configured as "powerpc-unknown-linux-gnu"...
   (gdb) run
   Starting program: /usr/src/freeamp-2.0.1/build-tree/freeamp/./freeamp 
   Segmentation fault

In other words, no backtrace is possible, because the application
segfaults and takes gdb down with it.

Out of curiosity, I built and installed the application by going
to the build-tree directory and running ./configure, make, and
make install.  (Installed in /usr/local/.)

Running it as me (unprivileged user) resulted in

   diziet% freeamp
   No UI plugin in '.:~/.freeamp:/usr/lib/freeamp' matched
   'plugins/' or 'plugins/.ui.' 
   FreeAmp will quit.

Ahem.

   diziet% rm -rf ~/.freeamp/
   diziet% freeamp
   /usr/local/lib/freeamp/plugins/pmp300.ppp: undefined symbol: isa_io_base

Despite the error, the user interface appeared, and I was able to
add MP3s via the ``MyMusic'' button.  As soon as I tried to play
one, however (by dragging it to the play list pane and then
clicking on the play button in the main window), I got our old friend

   Segmentation fault

Starting from scratch again (deleting the ~/.freeamp/ directory),
this time with gdb, I get

   diziet% rm -rf ~/.freeamp/
   diziet% gdb freeamp
   GNU gdb 4.18
   [deletia]
   This GDB was configured as "powerpc-unknown-linux-gnu"...
   (gdb) run 
   Starting program: /usr/local/bin/freeamp 
   Segmentation fault
   diziet% 

So we're back where we started.

(By the by, I'm not a he.)

   Claire

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to Isaac Richards <ijr@freeamp.org>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #52 received at 56472@bugs.debian.org (full text, mbox, reply):

From: Isaac Richards <ijr@freeamp.org>
To: "C.M. Connelly" <c@eskimo.com>
Cc: 56472@bugs.debian.org, Brian Almeida <bma@master.debian.org>
Subject: Re: Bug#56472: [ijr@freeamp.org: RE: [c@eskimo.com: Re: Bug#5647
Date: Fri, 18 Feb 2000 16:26:15 -0500 (EST)
On 18-Feb-2000 C.M. Connelly wrote:
> So the new version is too dumb to tell it's trying to use old
> plugins, and it's also not using the stuff in the debian
> pre-install tree.  Too bad there's no mention of the changes Isaac
> cites in the README, README.linux, or INSTALL files.

Nope, since old plugins are normally overwritten with new ones, no mention is
needed.

> I removed the older version of freeamp with dpkg -r (no loss, as
> it didn't work anyway), and rebuilt using dpkg-buildpackage -b
> -uc.  Everything seemed fine until the build process got to
> dh_movefiles -a:
> 
>    [deletia]
>    dh_installdirs -a usr/bin
>    dh_installdocs -a
>    dh_installchangelogs -a build-tree/freeamp/CHANGES
>    dh_installmime -a
>    dh_installmenu -a
>    dh_undocumented freeamp.1 mpg123.freeamp.1 MakeTheme.1
>    chmod a-x debian/tmp/usr/share/freeamp/themes/*.fat
>    cp debian/mpg123.freeamp debian/tmp/usr/bin/mpg123.freeamp
>    chmod 755 debian/tmp/usr/bin/mpg123.freeamp
>    strip debian/tmp/usr/lib/freeamp/plugins/*
>    dh_movefiles -a
>    find: usr/lib/freeamp/plugins/alsa.pmo: No such file or directory
>    find: usr/lib/freeamp/plugins/alsa.pmo: No such file or directory
>    make: *** [freeamp] Error 1

Brian's problem, there, not mine.

> No deb, no install.  With no ~/.freeamp/ directory, attempting to
> run the freeamp binary in
> /usr/src/freeamp-2.0.1/debian/freeamp/usr/bin/ (as before)
> results in
> 
>    No UI plugin in '.:~/.freeamp:/usr/lib/freeamp' matched
>    'plugins/' or 'plugins/.ui.' 
>    FreeAmp will quit.

Right, since you didn't install the plugins it needs to run, well, it doesn't
run.  It's not psychic and able to figure out that they're living well outside
its install path.
 
> Out of curiosity, I built and installed the application by going
> to the build-tree directory and running ./configure, make, and
> make install.  (Installed in /usr/local/.)
> 
> Running it as me (unprivileged user) resulted in
> 
>    diziet% freeamp
>    No UI plugin in '.:~/.freeamp:/usr/lib/freeamp' matched
>    'plugins/' or 'plugins/.ui.' 
>    FreeAmp will quit.

Completely desired behavior. 

> Ahem.
> 
>    diziet% rm -rf ~/.freeamp/
>    diziet% freeamp
>    /usr/local/lib/freeamp/plugins/pmp300.ppp: undefined symbol: isa_io_base

That error's to be expected -> the rio plugin should be disabled with the
configure script if you're not using it, and hasn't been tested on anything
other than x86.  It's no longer built by default in 2.0.3, btw.

> Despite the error, the user interface appeared, and I was able to
> add MP3s via the ``MyMusic'' button.  As soon as I tried to play
> one, however (by dragging it to the play list pane and then
> clicking on the play button in the main window), I got our old friend
> 
>    Segmentation fault
> 
> Starting from scratch again (deleting the ~/.freeamp/ directory),
> this time with gdb, I get
> 
>    diziet% rm -rf ~/.freeamp/
>    diziet% gdb freeamp
>    GNU gdb 4.18
>    [deletia]
>    This GDB was configured as "powerpc-unknown-linux-gnu"...
>    (gdb) run 
>    Starting program: /usr/local/bin/freeamp 
>    Segmentation fault
>    diziet% 
> 
> So we're back where we started.

Looks like there's a gdb problem, no?  Something to do with thread support, I
would think.

Isaac

> (By the by, I'm not a he.)
> 
>    Claire
> 
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>  Behind the counter a boy with a shaven head stared vacantly into space, 
>  a dozen spikes of microsoft protruding from the socket behind his ear.
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>    C.M. Connelly               c@eskimo.com                   SHC, DS
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #57 received at 56472@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: 56472@bugs.debian.org
Cc: Isaac Richards <ijr@freeamp.org>, Brian Almeida <bma@master.debian.org>
Subject: Re: Bug#56472: [ijr@freeamp.org: RE: [c@eskimo.com: Re: Bug#5647
Date: Fri, 18 Feb 2000 18:00:07 -0800
I've just downloaded and compiled FreeAmp 2.0.2 (fresh off
FreshMeat) and it shows *exactly* the same behavior.

I have the latest version of the binary_powerpc gdb package
available (4.18-1.1).  The newest version -- which hasn't been
compiled yet -- does not compile on PPC.  I can't see any way I
can provide any additional information until a functional gdb is
available.

   Claire

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to Isaac Richards <ijr@freeamp.org>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #62 received at 56472@bugs.debian.org (full text, mbox, reply):

From: Isaac Richards <ijr@freeamp.org>
To: "C.M. Connelly" <c@eskimo.com>
Cc: Brian Almeida <bma@master.debian.org>, 56472@bugs.debian.org
Subject: Re: Bug#56472: [ijr@freeamp.org: RE: [c@eskimo.com: Re: Bug#5647
Date: Fri, 18 Feb 2000 21:22:07 -0500 (EST)
On 19-Feb-2000 C.M. Connelly wrote:
> 
> I've just downloaded and compiled FreeAmp 2.0.2 (fresh off
> FreshMeat) and it shows *exactly* the same behavior.

2.0.3's available, but it won't fix these things..
 
> I have the latest version of the binary_powerpc gdb package
> available (4.18-1.1).  The newest version -- which hasn't been
> compiled yet -- does not compile on PPC.  I can't see any way I
> can provide any additional information until a functional gdb is
> available.

Yup, I don't either..

>    Claire
> 
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>  Behind the counter a boy with a shaven head stared vacantly into space, 
>  a dozen spikes of microsoft protruding from the socket behind his ear.
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>    C.M. Connelly               c@eskimo.com                   SHC, DS
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #67 received at 56472@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@debian.org>, 56472@bugs.debian.org
Subject: Re: Bug#56472: [ijr@freeamp.org: RE: [c@eskimo.com: Re: Bug#5647
Date: Mon, 21 Feb 2000 16:11:56 -0800
Brian,

Thanks to Kevin Puetz I have a newer version of gdb that doesn't
segfault when trying to look at freeamp.  We still don't have thread
support working, so the backtraces aren't likely to be all that
useful, but you never know...


Running gdb on freeamp with no arguments:

   diziet% rm -rf ~/.freeamp/
   diziet% gdb freeamp
   GNU gdb 19990928
   [deletia]
   This GDB was configured as "powerpc-unknown-linux-gnu"...
   (gdb) run
   Starting program: /usr/local/bin/freeamp 

   Program received signal ?, Unknown signal.
   0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
   (gdb) cont
   Continuing.
   warning: Signal ? does not exist on this system.

   Terminated

Attaching to a running freeamp process:

   diziet% freeamp &
   [1] 9392
   diziet% gdb freeamp
   GNU gdb 19990928
   [deletia]
   This GDB was configured as "powerpc-unknown-linux-gnu"...

Freeamp starts, I run the MyMusic wizard to add files from a directory
within my home directory, then attach gdb to the running freeamp
process:

   (gdb) attach 9392
   Attaching to program: /usr/local/bin/freeamp, process 9392
   Reading symbols from /lib/libdl.so.2...done.
   Reading symbols from /lib/libpthread.so.0...done.
   Reading symbols from /lib/libnsl.so.1...done.
   Reading symbols from /usr/lib/libstdc++-libc6.1-2.so.3...done.
   Reading symbols from /lib/libm.so.6...done.
   Reading symbols from /lib/libc.so.6...done.
   Reading symbols from /lib/ld.so.1...done.
   Reading symbols from /lib/libnss_compat.so.2...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/xingmp3.lmc...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/httpinput.pmi...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/localfileinput.pmi...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/obsinput.pmi...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/esound.pmo...done.
   Reading symbols from /usr/lib/libesd.so.0...done.
   Reading symbols from /usr/lib/libaudiofile.so.0...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/soundcard.pmo...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/download.ui...done.
   Reading symbols from /usr/lib/libgtk-1.2.so.0...done.
   Reading symbols from /usr/lib/libgdk-1.2.so.0...done.
   Reading symbols from /usr/lib/libgmodule-1.2.so.0...done.
   Reading symbols from /usr/lib/libgthread-1.2.so.0...done.
   Reading symbols from /usr/lib/libglib-1.2.so.0...done.
   Reading symbols from /usr/X11R6/lib/libXi.so.6...done.

   Suspended (tty output)
   diziet% %
   gdb freeamp
   Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
   Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/freeamp.ui...done.
   Reading symbols from /usr/lib/libttf.so.2...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/freeampcmd.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/irman.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/lcd.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/mpg123.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/musicbrowser.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/ncurses.ui...done.
   Reading symbols from /lib/libncurses.so.5...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/m3u.plf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/pls.plf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/id3v1.mdf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/id3v2.mdf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/misc.mdf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/rmp.dlf...done.
   Reading symbols from /usr/lib/gtk/themes/engines/libstep.so...done.
   0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
   (gdb) c
   Continuing.

Now I drag a song title into the playlist panel, resulting in

   Program received signal SIGSEGV, Segmentation fault.
   0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
   (gdb) bt
   #0  0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
   #1  0xfcd27f0 in sigsuspend () from /lib/libc.so.6
   #2  0xff5017c in pthread_cond_wait () from /lib/libpthread.so.0
   #3  0x1003ae5c in Semaphore::Wait (this=0x1007bcd8)
       at base/unix/linux/src/semaphore.cpp:50
   #4  0x1003b294 in main (argc=1, argv=0x7ffffa04)
       at base/unix/src/bootstrap.cpp:132
   (gdb) c
   Continuing.

   Program terminated with signal SIGSEGV, Segmentation fault.
   The program no longer exists.
   (gdb) bt
   No stack.
   (gdb) [1]  + Segmentation fault            freeamp (core dumped)

Looking at the core file generated by that crash:

   diziet% gdb freeamp core
   GNU gdb 19990928
   [deletia]
   This GDB was configured as "powerpc-unknown-linux-gnu"...
   Core was generated by `freeamp'.
   Program terminated with signal 11, Segmentation fault.
   Reading symbols from /lib/libdl.so.2...done.
   Reading symbols from /lib/libpthread.so.0...done.
   Reading symbols from /lib/libnsl.so.1...done.
   Reading symbols from /usr/lib/libstdc++-libc6.1-2.so.3...done.
   Reading symbols from /lib/libm.so.6...done.
   Reading symbols from /lib/libc.so.6...done.
   Reading symbols from /lib/ld.so.1...done.
   Reading symbols from /lib/libnss_compat.so.2...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/xingmp3.lmc...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/httpinput.pmi...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/localfileinput.pmi...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/obsinput.pmi...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/esound.pmo...done.
   Reading symbols from /usr/lib/libesd.so.0...done.
   Reading symbols from /usr/lib/libaudiofile.so.0...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/soundcard.pmo...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/download.ui...done.
   Reading symbols from /usr/lib/libgtk-1.2.so.0...done.
   Reading symbols from /usr/lib/libgdk-1.2.so.0...done.
   Reading symbols from /usr/lib/libgmodule-1.2.so.0...done.
   Reading symbols from /usr/lib/libgthread-1.2.so.0...done.
   Reading symbols from /usr/lib/libglib-1.2.so.0...done.
   Reading symbols from /usr/X11R6/lib/libXi.so.6...done.
   Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
   Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/freeamp.ui...done.
   Reading symbols from /usr/lib/libttf.so.2...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/freeampcmd.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/irman.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/lcd.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/mpg123.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/musicbrowser.ui...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/ncurses.ui...done.
   Reading symbols from /lib/libncurses.so.5...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/m3u.plf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/pls.plf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/id3v1.mdf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/id3v2.mdf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/misc.mdf...done.
   Reading symbols from /usr/local/lib/freeamp/plugins/rmp.dlf...done.
   Reading symbols from /usr/lib/gtk/themes/engines/libstep.so...done.
   #0  0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
   (gdb) bt
   #0  0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
   #1  0xfcd27f0 in sigsuspend () from /lib/libc.so.6
   #2  0xff5017c in pthread_cond_wait () from /lib/libpthread.so.0
   #3  0x1003ae5c in Semaphore::Wait (this=0x1007bcd8)
       at base/unix/linux/src/semaphore.cpp:50
   #4  0x1003b294 in main (argc=1, argv=0x7ffffa04)
       at base/unix/src/bootstrap.cpp:132
   (gdb) quit
   diziet% 

Finally, running gdb on freeamp with an argument:

   diziet% gdb freeamp
   GNU gdb 19990928
   [deletia]
   This GDB was configured as "powerpc-unknown-linux-gnu"...
   (gdb) run mp3/love_makes_the_world_go_round.mp3
   Starting program: /usr/local/bin/freeamp mp3/love_makes_the_world_go_round.mp3

   Program received signal ?, Unknown signal.
   0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
   (gdb) bt
   #0  0xfcd3ab0 in __syscall_rt_sigsuspend () from /lib/libc.so.6
   #1  0xfcd27f0 in sigsuspend () from /lib/libc.so.6
   #2  0xff52c84 in pthread_create@@GLIBC_2.1 () from /lib/libpthread.so.0
   #3  0x1003a95c in linuxThread::Create (this=0xfffffffc, function=0x8, 
       arg=0x7fffe6a8) at base/unix/linux/src/linuxthread.cpp:90
   #4  0x10032458 in DownloadManager::DownloadManager (this=0x100826e8, 
       context=0x10075780) at base/src/downloadmanager.cpp:134
   #5  0x10013ae4 in Player::Player (this=0x1007cc80, context=0x100826e8)
       at base/src/player.cpp:165
   #6  0x10013540 in Player::GetPlayer (context=0x10075780)
       at base/src/player.cpp:73
   #7  0x1003b230 in main (argc=2, argv=0x7ffff984)
       at base/unix/src/bootstrap.cpp:121
   (gdb)

So, there you have it.  

   Claire

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Acknowledgement sent to Brian Almeida <bma@tux.org>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #70 received at 56472-quiet@bugs.debian.org (full text, mbox, reply):

From: Brian Almeida <bma@tux.org>
To: "C.M. Connelly" <c@eskimo.com>
Cc: 56472-quiet@bugs.debian.org
Subject: Re: Bug#56472: [ijr@freeamp.org: RE: [c@eskimo.com: Re: Bug#5647
Date: Tue, 22 Feb 2000 09:34:47 -0500
On Mon, Feb 21, 2000 at 04:11:56PM -0800, C.M. Connelly wrote:
> Thanks to Kevin Puetz I have a newer version of gdb that doesn't
> segfault when trying to look at freeamp.  We still don't have thread
> support working, so the backtraces aren't likely to be all that
> useful, but you never know...
I've asked one of the head powerpc people (Dan Jacobwitz, guy who
cracked crack.linuxppc.org) to help out on this, he can reproduce the problem,
so hopefully we can get somewhere with it.

-- 
Brian M. Almeida
Linux Systems Engineer |  http://www.winstar.com | balmeida@winstar.com
Debian Developer       |  http://www.debian.org  | bma@debian.org
Windows 3.1 - The best $89 solitaire game you can buy 



Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #73 received at 56472-quiet@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@tux.org>
Cc: 56472-quiet@bugs.debian.org
Subject: Re: Bug#56472: [ijr@freeamp.org: RE: [c@eskimo.com: Re: Bug#5647
Date: Tue, 22 Feb 2000 11:52:31 -0800
Brian,

BA> I've asked one of the head powerpc people (Dan Jacobwitz, guy
BA> who cracked crack.linuxppc.org) to help out on this, he can
BA> reproduce the problem, so hopefully we can get somewhere with
BA> it.

Excellent!

Please let me know if I can do anything else to help out (test
code or whatever).

   Claire


+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 


Noted your statement that Bug has been forwarded to ijr@freeamp.org. Request was from Brian M Almeida <bma@tux.org> to control@bugs.debian.org. (full text, mbox, link).


Forwarded-to-address changed from ijr@freeamp.org to ijr@freeamp.org. Request was from Brian M Almeida <bma@tux.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to Daniel Jacobowitz <dan@debian.org>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #82 received at 56472@bugs.debian.org (full text, mbox, reply):

From: Daniel Jacobowitz <dan@debian.org>
To: 56472@bugs.debian.org
Subject: More useful backtrace for freeamp/ppc
Date: Wed, 1 Mar 2000 00:21:28 -0500
I got what looks like a much more valid backtrace with a CVS gdb:


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 9406]
0xfd0f01c in unpack_huff () from /usr/lib/freeamp/plugins/xingmp3.lmc
(gdb) bt
#0  0xfd0f01c in unpack_huff () from /usr/lib/freeamp/plugins/xingmp3.lmc
#1  0xfd02398 in bitget_1bit () from /usr/lib/freeamp/plugins/xingmp3.lmc
#2  0xfd02c84 in L3audio_decode_MPEG2 () from /usr/lib/freeamp/plugins/xingmp3.lmc
#3  0xfd028f8 in L3audio_decode () from /usr/lib/freeamp/plugins/xingmp3.lmc
#4  0xfd124bc in audio_decode () from /usr/lib/freeamp/plugins/xingmp3.lmc
#5  0xfd1c95c in XingLMC::DecodeWork () from /usr/lib/freeamp/plugins/xingmp3.lmc
#6  0xfd1c5f0 in XingLMC::DecodeWorkerThreadFunc () from /usr/lib/freeamp/plugins/xingmp3.lmc
#7  0x10038804 in linuxThread::InternalThreadFunction ()
#8  0x100387cc in linuxThread::internalThreadFunction ()
#9  0xffaf23c in pthread_start_thread () from /lib/libpthread.so.0
#10 0xfe38f18 in clone () from /lib/libc.so.6


I'll try to find time to build an unstripped copy later and track this down
the rest of the way.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to Brian Almeida <bma@tux.org>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #87 received at 56472@bugs.debian.org (full text, mbox, reply):

From: Brian Almeida <bma@tux.org>
To: Daniel Jacobowitz <dan@debian.org>, 56472@bugs.debian.org
Cc: ijr@freeamp.org
Subject: Re: Bug#56472: More useful backtrace for freeamp/ppc
Date: Wed, 1 Mar 2000 12:25:40 -0500
I think I might have an idea of what's going on.  Ever since I first started
packaging freeamp, I've been getting lintian errors on xingmp3.lmc saying
shlib-with-non-pic-code.  Now, I went through and changed all the available
CFLAGS from -fpic to -fPIC, but was never able to succeed in getting it out
of that ONE plugin for some reason.  I had about given up and blamed it on
a bug in lintian...could this be causing the problem?  I haven't heard
any problems from alpha/sparc/etc...

Isaac, is there some magic location that is causing xingmp3.lmc to get 
compiled with -fpic that I haven't found? :)

On Wed, Mar 01, 2000 at 12:21:28AM -0500, Daniel Jacobowitz wrote:
> I got what looks like a much more valid backtrace with a CVS gdb:
> 
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 9406]
> 0xfd0f01c in unpack_huff () from /usr/lib/freeamp/plugins/xingmp3.lmc
> (gdb) bt
> #0  0xfd0f01c in unpack_huff () from /usr/lib/freeamp/plugins/xingmp3.lmc
> #1  0xfd02398 in bitget_1bit () from /usr/lib/freeamp/plugins/xingmp3.lmc
> #2  0xfd02c84 in L3audio_decode_MPEG2 () from /usr/lib/freeamp/plugins/xingmp3.lmc
> #3  0xfd028f8 in L3audio_decode () from /usr/lib/freeamp/plugins/xingmp3.lmc
> #4  0xfd124bc in audio_decode () from /usr/lib/freeamp/plugins/xingmp3.lmc
> #5  0xfd1c95c in XingLMC::DecodeWork () from /usr/lib/freeamp/plugins/xingmp3.lmc
> #6  0xfd1c5f0 in XingLMC::DecodeWorkerThreadFunc () from /usr/lib/freeamp/plugins/xingmp3.lmc
> #7  0x10038804 in linuxThread::InternalThreadFunction ()
> #8  0x100387cc in linuxThread::internalThreadFunction ()
> #9  0xffaf23c in pthread_start_thread () from /lib/libpthread.so.0
> #10 0xfe38f18 in clone () from /lib/libc.so.6
> 
> 
> I'll try to find time to build an unstripped copy later and track this down
> the rest of the way.
> 
> Dan
> 
> /--------------------------------\  /--------------------------------\
> |       Daniel Jacobowitz        |__|        SCS Class of 2002       |
> |   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
> |         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
> \--------------------------------/  \--------------------------------/

-- 
Brian Almeida                      | http://www.debian.org/~bma
Debian Developer                   | bma@debian.org
Linux Systems Engineeer @ Winstar  | balmeida@winstar.com
PGP/GPG public keys                | finger bma@debian.org
When you open Windows, bugs get in! 



Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to Daniel Jacobowitz <dan@debian.org>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #92 received at 56472@bugs.debian.org (full text, mbox, reply):

From: Daniel Jacobowitz <dan@debian.org>
To: Brian Almeida <bma@tux.org>
Cc: 56472@bugs.debian.org, ijr@freeamp.org
Subject: Re: Bug#56472: More useful backtrace for freeamp/ppc
Date: Wed, 1 Mar 2000 14:51:11 -0500
[Message part 1 (text/plain, inline)]
Well now, is not this interesting?

I rebuilt freeamp locally, and now I crash somewhere quite different,
and much earlier, regardless of whether it is given an argument.  This
seems to be a new bug.

Gdb says:
Program received signal SIGSEGV, Segmentation fault.
0xfe39b00 in semctl (semid=65537, semnum=0, cmd=12) at ../sysdeps/unix/sysv/linux/semctl.c:49
49        arg = va_arg (ap, union semun);

semctl() -really- wants to be called with an argument of size
sizeof(union semun), but it seems that you're doing just that - I'm
confused about this crash.  I'm minded to blame gcc, but what you are
doing may not be legal.

<pause>

Ah, right, it's freeamp's fault.  Unions are NOT passed on powerpc in
the same way as integers, regardless of their size.  Passing 0 as the
last argument where a union semun is expected is invalid.  Patch
attached.


Interesting things to note: when run under gdb I get the errors:
Gdk-CRITICAL **: file gdkgc.c: line 662 (gdk_gc_set_clip_mask): assertion `gc != NULL' failed.

Gdk-CRITICAL **: file gdkgc.c: line 648 (gdk_gc_set_clip_origin): assertion `gc != NULL' failed.

Gdk-CRITICAL **: file gdkdraw.c: line 381 (gdk_draw_pixmap): assertion `gc != NULL' failed.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 11779]
unpack_huff (xy=0xfd51f7c, n=234, ntable=265625480) at lmc/xingmp3/src/uph.c:293
293                    bits = t[0].b.signbits;
Current language:  auto; currently c
(gdb) list
288              {
289                 t = t0;
290                 for (;;)
291                 {
292                    mac_bitget_check((MAXBITS + 2));
293                    bits = t[0].b.signbits;
294                    code = mac_bitget2(bits);
295                    if (t[1 + code].b.purgebits)
296                       break;
297                    t += t[1 + code].ptr;    /* ptr include 1+code */
(gdb) p t
$1 = (HUFF_ELEMENT *) 0x13d37aa8
(gdb) p t[0]
Cannot access memory at address 0x13d37aa8


Obviously something is wrong here. Do not rely on that value of ntable
being correct; gdb does not save argument stacks terribly well on
powerpc, for a couple of reasons.  Once I have time to make it break
successfully on unpack_huff I will try to figure out why t0 is wrong.




On Wed, Mar 01, 2000 at 12:25:40PM -0500, Brian Almeida wrote:
> I think I might have an idea of what's going on.  Ever since I first started
> packaging freeamp, I've been getting lintian errors on xingmp3.lmc saying
> shlib-with-non-pic-code.  Now, I went through and changed all the available
> CFLAGS from -fpic to -fPIC, but was never able to succeed in getting it out
> of that ONE plugin for some reason.  I had about given up and blamed it on
> a bug in lintian...could this be causing the problem?  I haven't heard
> any problems from alpha/sparc/etc...
> 
> Isaac, is there some magic location that is causing xingmp3.lmc to get 
> compiled with -fpic that I haven't found? :)
> 
> On Wed, Mar 01, 2000 at 12:21:28AM -0500, Daniel Jacobowitz wrote:
> > I got what looks like a much more valid backtrace with a CVS gdb:
> > 
> > 
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 9406]
> > 0xfd0f01c in unpack_huff () from /usr/lib/freeamp/plugins/xingmp3.lmc
> > (gdb) bt
> > #0  0xfd0f01c in unpack_huff () from /usr/lib/freeamp/plugins/xingmp3.lmc
> > #1  0xfd02398 in bitget_1bit () from /usr/lib/freeamp/plugins/xingmp3.lmc
> > #2  0xfd02c84 in L3audio_decode_MPEG2 () from /usr/lib/freeamp/plugins/xingmp3.lmc
> > #3  0xfd028f8 in L3audio_decode () from /usr/lib/freeamp/plugins/xingmp3.lmc
> > #4  0xfd124bc in audio_decode () from /usr/lib/freeamp/plugins/xingmp3.lmc
> > #5  0xfd1c95c in XingLMC::DecodeWork () from /usr/lib/freeamp/plugins/xingmp3.lmc
> > #6  0xfd1c5f0 in XingLMC::DecodeWorkerThreadFunc () from /usr/lib/freeamp/plugins/xingmp3.lmc
> > #7  0x10038804 in linuxThread::InternalThreadFunction ()
> > #8  0x100387cc in linuxThread::internalThreadFunction ()
> > #9  0xffaf23c in pthread_start_thread () from /lib/libpthread.so.0
> > #10 0xfe38f18 in clone () from /lib/libc.so.6
> > 
> > 
> > I'll try to find time to build an unstripped copy later and track this down
> > the rest of the way.
> > 
> > Dan
> > 
> > /--------------------------------\  /--------------------------------\
> > |       Daniel Jacobowitz        |__|        SCS Class of 2002       |
> > |   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
> > |         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
> > \--------------------------------/  \--------------------------------/
> 
> -- 
> Brian Almeida                      | http://www.debian.org/~bma
> Debian Developer                   | bma@debian.org
> Linux Systems Engineeer @ Winstar  | balmeida@winstar.com
> PGP/GPG public keys                | finger bma@debian.org
> When you open Windows, bugs get in! 
> 
> 


Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/
[bootstrap.diff (text/plain, attachment)]

Severity set to `grave'. Request was from "C.M. Connelly" <c@eskimo.com> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `grave'. Request was from "C.M. Connelly" <c@eskimo.com> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Jacobowitz <dan@debian.org>, Brian Almeida <bma@debian.org>, Isaac Richards <ijr@freeamp.org>, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and forwarded to list. Copy sent to Daniel Jacobowitz <dan@debian.org>, Brian Almeida <bma@debian.org>, Isaac Richards <ijr@freeamp.org>, bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #101 received at 56472@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: 56472@bugs.debian.org
Cc: "C.M. Connelly" <c@eskimo.com>
Subject: Debian Bug #56472: freeamp won't run on PowerPC
Date: Wed, 24 May 2000 02:07:22 -0700
So.  In hopes of helping out the gdb maintainer, I built gdb 5.0,
which compiled just fine on PowerPC and also includes support for
threads.  To test it, I went back to our old friend, freeamp.

In the process of compiling the packages, I came across several
warnings:

base/src/downloadmanager.cpp:634: warning: comparison between signed and unsigned
lib/gdbm/gdbmopen.c:69: warning: `lock_val' might be used uninitialized in this function
plm/metadata/id3v1/id3v1.cpp:319: warning: comparison is always true due to limited range of data type
ui/freeamp/src/Headlines.cpp:147: warning: comparison between signed and unsigned
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
base/src/downloadmanager.cpp:634: warning: comparison between signed and unsigned
lib/gdbm/gdbmopen.c:69: warning: `lock_val' might be used uninitialized in this function
plm/metadata/id3v1/id3v1.cpp:319: warning: comparison is always true due to limited range of data type
ui/freeamp/src/Headlines.cpp:147: warning: comparison between signed and unsigned
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}

The following patch fixes the code in downloadmanager.cpp,
id3v1.cpp, and Headlines.cpp to eliminate the warnings:

--- ./base/src/downloadmanager.cpp.orig	Fri Mar 17 15:54:11 2000
+++ ./base/src/downloadmanager.cpp	Wed May 24 00:18:00 2000
@@ -631,7 +631,7 @@
         
         if(-1 != stat(destPath, &st))
         {
-            if (st.st_size >= item->GetTotalBytes())
+            if (((uint32)st.st_size) >= item->GetTotalBytes())
             {
                if(destPath)
                    delete [] destPath;
--- ./plm/metadata/id3v1/id3v1.cpp.orig	Thu Oct 21 10:45:40 1999
+++ ./plm/metadata/id3v1/id3v1.cpp	Wed May 24 00:30:00 2000
@@ -40,7 +40,7 @@
     char album[30];
     char year[4];
     char comment[30];
-    char genre;
+    signed char genre;
 
 } id3v1_0;
 
@@ -53,7 +53,7 @@
     char comment[28];
     char zero;
     char track;
-    char genre;
+    signed char genre;
 
 } id3v1_1;
 
--- ./ui/freeamp/src/Headlines.cpp.orig	Tue Mar  7 14:49:05 2000
+++ ./ui/freeamp/src/Headlines.cpp	Wed May 24 00:31:47 2000
@@ -144,7 +144,7 @@
             m_iIndex = m_iIndex % m_oHeadlines.size();
             m_pContext->target->AcceptEvent(new HeadlineMessageEvent(
                     m_oHeadlines[m_iIndex].c_str(),
-                    (m_iIndex >= m_oHeadlineURLs.size()) ? "" : 
+                    (m_iIndex >= ((int)m_oHeadlineURLs.size())) ? "" : 
                      m_oHeadlineURLs[m_iIndex].c_str()));
                                        
             m_iIndex++;


Once that was done, I found I was getting the same errors that
Daniel Jacobowitz reported in his last message on this bug.  I can
provide additional information on request, but I think that
Daniel's report pretty much covers everything I was able to figure
out.  Isaac, who knows the code, is more likely to have some
useful insights.


Note that I raised the severity of the bug back to grave.  The
definition of a grave bug is

   makes the package in question unuseable or mostly so, or causes
   data loss, or introduces a security hold allowing access to the
   accounts of users who use the package

(from <http://www.debian.org/Bugs/Developer#severities>)

That's a perfect description of the problems with freeamp: the
program is *unusable on PowerPC* as it now stands.  It either
needs to be fixed or removed from (at least) the PowerPC potato
distribution.

Also, please note that the current binary package in potato for
PowerPC is 1.3.1-5, which also doesn't work (and was the cause of
my original bug report).

   CMC

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Severity set to `grave'. Request was from "C.M. Connelly" <c@eskimo.com> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to Brian Almeida <bma@debian.org>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #108 received at 56472@bugs.debian.org (full text, mbox, reply):

From: Brian Almeida <bma@debian.org>
To: "C.M. Connelly" <c@eskimo.com>, 56472@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#56472: Debian Bug #56472: freeamp won't run on PowerPC
Date: Wed, 24 May 2000 06:30:47 -0400
severity 56472 important
thanks

<quibble>In general, architecture-specific bugs are severity important.
</quibble>
It's perfectly usable on anything but powerpc :)

Are you using the latest freeamp?  2.0.7 came out a little while ago,
the build daemons may not have picked it up.  If that doesn't work,
you could try the 2.1 betas available on the freeamp.org website, while
this won't fix it for potato, at least it might get you a working program :)

I'll try to work up a patch for you to try later today, Friday at the latest.
Unfortunately, upstream's response is basically "Send me a powerpc that has
the problem and I'll fix it", since working on a problem like this without
a test platform is very difficult, and they have other things they are 
working on (like the upcoming 2.1 release).

Hope we can work this out.

Brian

On Wed, May 24, 2000 at 02:07:22AM -0700, C.M. Connelly wrote:
> 
> So.  In hopes of helping out the gdb maintainer, I built gdb 5.0,
> which compiled just fine on PowerPC and also includes support for
> threads.  To test it, I went back to our old friend, freeamp.
> 
> In the process of compiling the packages, I came across several
> warnings:
> 
> base/src/downloadmanager.cpp:634: warning: comparison between signed and unsigned
> lib/gdbm/gdbmopen.c:69: warning: `lock_val' might be used uninitialized in this function
> plm/metadata/id3v1/id3v1.cpp:319: warning: comparison is always true due to limited range of data type
> ui/freeamp/src/Headlines.cpp:147: warning: comparison between signed and unsigned
> dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
> base/src/downloadmanager.cpp:634: warning: comparison between signed and unsigned
> lib/gdbm/gdbmopen.c:69: warning: `lock_val' might be used uninitialized in this function
> plm/metadata/id3v1/id3v1.cpp:319: warning: comparison is always true due to limited range of data type
> ui/freeamp/src/Headlines.cpp:147: warning: comparison between signed and unsigned
> dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
> 
> The following patch fixes the code in downloadmanager.cpp,
> id3v1.cpp, and Headlines.cpp to eliminate the warnings:
> 
> --- ./base/src/downloadmanager.cpp.orig	Fri Mar 17 15:54:11 2000
> +++ ./base/src/downloadmanager.cpp	Wed May 24 00:18:00 2000
> @@ -631,7 +631,7 @@
>          
>          if(-1 != stat(destPath, &st))
>          {
> -            if (st.st_size >= item->GetTotalBytes())
> +            if (((uint32)st.st_size) >= item->GetTotalBytes())
>              {
>                 if(destPath)
>                     delete [] destPath;
> --- ./plm/metadata/id3v1/id3v1.cpp.orig	Thu Oct 21 10:45:40 1999
> +++ ./plm/metadata/id3v1/id3v1.cpp	Wed May 24 00:30:00 2000
> @@ -40,7 +40,7 @@
>      char album[30];
>      char year[4];
>      char comment[30];
> -    char genre;
> +    signed char genre;
>  
>  } id3v1_0;
>  
> @@ -53,7 +53,7 @@
>      char comment[28];
>      char zero;
>      char track;
> -    char genre;
> +    signed char genre;
>  
>  } id3v1_1;
>  
> --- ./ui/freeamp/src/Headlines.cpp.orig	Tue Mar  7 14:49:05 2000
> +++ ./ui/freeamp/src/Headlines.cpp	Wed May 24 00:31:47 2000
> @@ -144,7 +144,7 @@
>              m_iIndex = m_iIndex % m_oHeadlines.size();
>              m_pContext->target->AcceptEvent(new HeadlineMessageEvent(
>                      m_oHeadlines[m_iIndex].c_str(),
> -                    (m_iIndex >= m_oHeadlineURLs.size()) ? "" : 
> +                    (m_iIndex >= ((int)m_oHeadlineURLs.size())) ? "" : 
>                       m_oHeadlineURLs[m_iIndex].c_str()));
>                                         
>              m_iIndex++;
> 
> 
> Once that was done, I found I was getting the same errors that
> Daniel Jacobowitz reported in his last message on this bug.  I can
> provide additional information on request, but I think that
> Daniel's report pretty much covers everything I was able to figure
> out.  Isaac, who knows the code, is more likely to have some
> useful insights.
> 
> 
> Note that I raised the severity of the bug back to grave.  The
> definition of a grave bug is
> 
>    makes the package in question unuseable or mostly so, or causes
>    data loss, or introduces a security hold allowing access to the
>    accounts of users who use the package
> 
> (from <http://www.debian.org/Bugs/Developer#severities>)
> 
> That's a perfect description of the problems with freeamp: the
> program is *unusable on PowerPC* as it now stands.  It either
> needs to be fixed or removed from (at least) the PowerPC potato
> distribution.
> 
> Also, please note that the current binary package in potato for
> PowerPC is 1.3.1-5, which also doesn't work (and was the cause of
> my original bug report).



Severity set to `important'. Request was from Brian Almeida <bma@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #115 received at 56472@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@debian.org>
Cc: 56472@bugs.debian.org, "C.M. Connelly" <c@eskimo.com>
Subject: Re: Bug#56472: Debian Bug #56472: freeamp won't run on PowerPC
Date: Wed, 24 May 2000 13:53:42 -0700
"BA" == Brian Almeida <bma@debian.org> writes:

Brian,


   BA> severity 56472 important thanks

   BA> <quibble>In general, architecture-specific bugs are
   BA> severity important.  </quibble> It's perfectly usable on
   BA> anything but powerpc :)

Yes, well, that's not what the definition says.  Maybe it's time
to add some categories?  Important is okay, though.


   BA> Are you using the latest freeamp?  2.0.7 came out a little
   BA> while ago, the build daemons may not have picked it up.  If
   BA> that doesn't work, you could try the 2.1 betas available on
   BA> the freeamp.org website, while this won't fix it for
   BA> potato, at least it might get you a working program :)

No, I grabbed 2.0.6, which is the source package in frozen (as of
the time I'm writing this message -- there was finally an update
of the package lists, but 2.0.6 is still the newest source
package).  I've just grabbed 2.0.7 from woody, and I'm compiling
it now.


   BA> I'll try to work up a patch for you to try later today,
   BA> Friday at the latest.  Unfortunately, upstream's response
   BA> is basically "Send me a powerpc that has the problem and
   BA> I'll fix it", since working on a problem like this without
   BA> a test platform is very difficult, and they have other
   BA> things they are working on (like the upcoming 2.1 release).

I can see where they're coming from, although I thought they had
Daniel Jacobwitz working with them (probably that fell apart when
he started devoting most of his time to getting the boot floppies
to work, unquestionably a more important goal).  

In any case, we have ADSL now, and I'm done with the project I was
working on, so I can be fairly responsive in terms of trying out
new code.


   BA> Hope we can work this out.

Me, too.  All I want is for it to either work or not be included
with the PowerPC distribution.  I originally installed LinuxPPC
(in June of last year), mostly because it was the only Linux for
PPC available and installable.  After about three days of
wrestling with various broken bits, however, we were ready to jump
through the hoops that installing Debian required at the time.
I'd hate to see people try to install Debian, find it broken in
various small but annoying ways, and go back to LinuxPPC.

   CMC

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to Brian Almeida <bma@tux.org>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #120 received at 56472@bugs.debian.org (full text, mbox, reply):

From: Brian Almeida <bma@tux.org>
To: "C.M. Connelly" <c@eskimo.com>
Cc: 56472@bugs.debian.org
Subject: Re: Bug#56472: Debian Bug #56472: freeamp won't run on PowerPC
Date: Wed, 24 May 2000 16:57:49 -0400
On Wed, May 24, 2000 at 01:53:42PM -0700, C.M. Connelly wrote:
>    BA> <quibble>In general, architecture-specific bugs are
>    BA> severity important.  </quibble> It's perfectly usable on
>    BA> anything but powerpc :)
> Yes, well, that's not what the definition says.  Maybe it's time
> to add some categories?  Important is okay, though.
I'm of the belief that the bug severity descriptions (especially for
important) need a good revising.

> the time I'm writing this message -- there was finally an update
> of the package lists, but 2.0.6 is still the newest source
> package).  I've just grabbed 2.0.7 from woody, and I'm compiling
> it now.
Let me know how it goes.  I doubt it will fix things, though :)

> I can see where they're coming from, although I thought they had
> Daniel Jacobwitz working with them (probably that fell apart when
> he started devoting most of his time to getting the boot floppies
> to work, unquestionably a more important goal).  
To my knowledge Dan wasn't working very closely with the author I talk to,
Isaac Richards, who is in charge of most of the Linux port.  He's perfectly
willing to fix it if someone sent him a box that had the problem :)

> Me, too.  All I want is for it to either work or not be included
> with the PowerPC distribution.  I originally installed LinuxPPC
> (in June of last year), mostly because it was the only Linux for
> PPC available and installable.  After about three days of
> wrestling with various broken bits, however, we were ready to jump
> through the hoops that installing Debian required at the time.
> I'd hate to see people try to install Debian, find it broken in
> various small but annoying ways, and go back to LinuxPPC.
It might take some time, but we'll probably nail it :)



Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #125 received at 56472@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@tux.org>
Cc: 56472@bugs.debian.org, "C.M. Connelly" <c@eskimo.com>
Subject: Re: Bug#56472: Debian Bug #56472: freeamp won't run on PowerPC
Date: Wed, 24 May 2000 15:08:08 -0700
"BA" == Brian Almeida <bma@tux.org> writes:

Brian,

   Me> I've just grabbed 2.0.7 from woody, and I'm compiling it
   Me> now.

   BA> Let me know how it goes.  I doubt it will fix things,
   BA> though :)

Nope.  Same crash, same place, but (maybe) more interesting
backtrace (there's more information here than on previous runs, I
think).  Actions were:

   * Start gdb with freeamp

   * Click on the play button, which popped up a MyMusic dialog
     box (which was already configured on a previous run)

   * Choose an MP3 file

   * Boom during decode

GNU gdb 5.0
[...]
This GDB was configured as "powerpc-unknown-linux-gnu"...
(gdb) run
Starting program: /usr/src/freeamp-2.0.7/./freeamp 
[New Thread 24679 (manager thread)]
[New Thread 24678 (initial thread)]
[New Thread 24680]
[New Thread 24681]
[New Thread 24682]
[New Thread 24685]
[New Thread 24686]
[New Thread 24687]
[New Thread 24688]
[New Thread 24689]
[New Thread 24690]
[New Thread 24691]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 24691]
unpack_huff (xy=0xfd81608, n=103, ntable=265819700)
    at lmc/xingmp3/src/uph.c:293
293		       bits = t[0].b.signbits;
Current language:  auto; currently c
(gdb) bt
#0  unpack_huff (xy=0xfd81608, n=103, ntable=265819700)
    at lmc/xingmp3/src/uph.c:293
#1  0xfd38a80 in unpack_main (pcm=0x3016ea88 "", igr=1)
    at lmc/xingmp3/src/cupl3.c:669
#2  0xfd39160 in L3audio_decode_MPEG1 (
    bs=0x302098d2 "��R��\200\f\2253[�\214k�C��4�\035y��׺��\220�һ\236]?.\035\"����]A\021\025\202�&O�\036^e&\215�\013�Qf�\027_�-/�\020���w����R\031%$�n^\230l\006i�\024'b>�vd(B�\216D�II�A��\202o�\"\"�o�6\205��\226k\017<�<\210���Nf��;�1\231�!u+�g!!E6�\217\220^�al{\030#\026K2Z7�4�&E!\"II9\214\b�T\025�E:^u\0236�q\024$Q+�����Jd"..., pcm=0x3016e608 "�f�\004�\006x\002\237�g������5�\212�\035��")
    at lmc/xingmp3/src/cupl3.c:824
#3  0xfd38fc8 in L3audio_decode (bs=0x28 <Address 0x28 out of bounds>, 
    pcm=0xfd81634 "�\f\2367A��\237��\027�������\233�B\222�\"C hY°���+\034$B�\220��\n�\017C\032o\t�i�bC\016��C\002���3t*B��1�\220Z\023B\t���W�\222�\234�\bA���@MI�B��_C~�3� \221TB9�z�4Y~�\021e�B\225(\237�q�C�COC\223�/�\214�-B>\f\224�\227`��\225h\017Ajc8�\016cTB\006Dw@\201�\tB����\005�\a�\t6<B�56�tH_�ap�\030Eܿ�\213C�") at lmc/xingmp3/src/cupl3.c:766
#4  0xfd48b90 in audio_decode (bs=0x28 <Address 0x28 out of bounds>, 
    pcm=0xfd81634) at lmc/xingmp3/src/cup.c:497
#5  0xfd53058 in XingLMC::DecodeWork (this=0x10350c98)
    at lmc/xingmp3/src/xinglmc.cpp:836
#6  0xfd52c54 in XingLMC::DecodeWorkerThreadFunc (pxlmc=0x22)
    at lmc/xingmp3/src/xinglmc.cpp:691
---Type <return> to continue, or q <return> to quit---
#7  0x10042468 in linuxThread::InternalThreadFunction (this=0x22)
    at base/unix/linux/src/linuxthread.cpp:77
#8  0x10042430 in linuxThread::internalThreadFunction (arg=0x22)
    at base/unix/linux/src/linuxthread.cpp:63
#9  0xffaf224 in pthread_start_thread () from /lib/libpthread.so.0
#10 0xfe3d1c0 in clone () from /lib/libc.so.6
(gdb) 



   BA> To my knowledge Dan wasn't working very closely with the
   BA> author I talk to, Isaac Richards, who is in charge of most
   BA> of the Linux port.  He's perfectly willing to fix it if
   BA> someone sent him a box that had the problem :)

Aha.  I had thought that Dan was working with Isaac, based on the
messages in the thread for this bug.  I guess he was just
coordinating with you.

I think I was hoping that Dan had offered Isaac a login on his PPC
machine, although I'm not at all sure it's any more accessible
than mine.  (And it's probably pretty bogged down, since I think
it's the main PowerPC build-daemon host these days.)


   BA> It might take some time, but we'll probably nail it :)

Hope so....

By the way, good job on cleaning up the source package -- the last
version was pretty confusing.  I still see two of the warnings I
sent patches for, along with the gdbm one I didn't address and one
from dpkg-gencontrol:

   lib/gdbm/gdbmopen.c:69: warning: `lock_val' might be used
      uninitialized in this function
   plm/metadata/id3v1/id3v1.cpp:319: warning: comparison is always
      true due to limited range of data type
   ui/freeamp/src/Headlines.cpp:147: warning: comparison between
      signed and unsigned
   dpkg-gencontrol: warning: unknown substitution variable
      ${shlibs:Depends}


   CMC

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #130 received at 56472@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@tux.org>
Cc: "C.M. Connelly" <c@eskimo.com>, 56472@bugs.debian.org
Subject: Re: #56472: freeamp won't run on PowerPC
Date: Tue, 05 Sep 2000 10:23:05 -0700
"BA" == Brian Almeida <bma@tux.org>

   BA> Try the beta8 .debs I just compiled, up at
   BA> www.tux.org/~bma/freeamp/powerpc/.

Nope.  Now I get:

   diziet% rm -rf ~/.freeamp/
   diziet% rehash
   diziet% freeamp
   /usr/lib/freeamp/plugins/freeamp.ui: undefined symbol:
      Show__16GTKMessageDialogPCcT117MessageDialogEnumbT4T1 
   No UI plugin in '.:~/.freeamp:/usr/lib/freeamp' matched
      'plugins/' or 'plugins/.ui.' 
   FreeAmp will quit.
   Segmentation fault

There is a plugins directory in /usr/lib/freeamp, and it has all
the files I'd expect to see there.

Trying with the mpg123 frontend, as you suggested with the last
set of debs, I got much the same result

   diziet% rm -rf .freeamp/
   diziet% freeamp -ui mpg123
      mp3/PowerPuff_Girls/love_makes_the_world_go_round.mp3  
   /usr/lib/freeamp/plugins/freeamp.ui: undefined symbol:
      Show__16GTKMessageDialogPCcT117MessageDialogEnumbT4T1 
   High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3
   Version 2.1.0 (2000/Feb/04).  
   Copyrights EMusic, XingTech. See 'README' for more!
   This software is distributed under the GNU GPL.

   Directory: /home/claire/mp3/PowerPuff_Girls/
   Playing MPEG stream from love_makes_the_world_go_round.mp3 ...
   MPEG 1.0 layer III, 64 KBit/s, 44100 Hz mono
   Segmentation fault
   diziet% 

One difference here, however, is that this method actually
resulted in some sound!  Unfortunately, the sound is gibberish --
something like a stick splashing through water very quickly.

I did some experimentation and discovered that stereo MP3s don't
play at all, but monophonic MP3s will play, albeit really sped-up
and distorted.  (And the program still segfaults.)

It definitely looks like the same GTK error message, though.

For your information, I currently have the following packages
installed (based on the Build-Depends line for freeamp 2.0.8-1 and
the Depends line from the apt-cache record for 2.1-0beta8):

ii  freetype2-dev  1.3.1-1        FreeType development files (static library a
ii  libglib1.2-dev 1.2.8-1        Development files for GLib library
ii  libgtk1.2-dev  1.2.8-1        Development files for the GIMP Toolkit
ii  libncurses5-de 5.0-7          Developer's libraries and docs for ncurses
ii  xlib6g-dev     3.3.6-10       include files and libraries for X client dev
ii  libesd0-dev    0.2.19-5       Enlightened Sound Daemon - Development files
No packages found matching libesd-alsa0-dev.
pn  libasound0.4-d <none>         (no description available)
ii  debhelper      2.1.8          helper programs for debian/rules
ii  xlib6g-dev     3.3.6-10       include files and libraries for X client dev
ii  freetype2      1.3.1-1        The FREE TrueType Font Engine, shared librar
ii  libc6          2.1.3-13       GNU C Library: Shared libraries and Timezone
ii  libglib1.2     1.2.8-1        The GLib library of C routines
ii  libgtk1.2      1.2.8-1        The GIMP Toolkit set of widgets for X
ii  libncurses5    5.0-7          Shared libraries for terminal handling
ii  libstdc++2.10  2.95.2-13      The GNU stdc++ library
ii  xlib6g         3.3.6-10       shared libraries required by X clients      


Plus the following esound-related packages:

un  libesd-alsa0   <none>         (no description available)
un  libesd-dev     <none>         (no description available)
ii  libesd0        0.2.19-5       Enlightened Sound Daemon - Shared libraries
ii  libesd0-dev    0.2.19-5       Enlightened Sound Daemon - Development files
ii  esound         0.2.19-5       Enlightened Sound Daemon - Support binaries
ii  esound-common  0.2.19-5       Enlightened Sound Daemon - Common files
ii  libfreeamp-eso 2.1-0beta8     EsounD plugins for FreeAmp


And here's a gdb run, which points some fingers, even if not in
precisely the right directions:

diziet% rm -rf .freeamp/
diziet% gdb freeamp
GNU gdb 5.0
Copyright 2000 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 "powerpc-unknown-linux-gnu"...
(gdb) run
Starting program: /usr/bin/freeamp 
/usr/lib/freeamp/plugins/freeamp.ui: undefined symbol: Show__16GTKMessageDialogPCcT117MessageDialogEnumbT4T1
[New Thread 15492 (manager thread)]
[New Thread 15483 (initial thread)]
[New Thread 15494]
[New Thread 15495]
No UI plugin in '.:~/.freeamp:/usr/lib/freeamp' matched 'plugins/' or 'plugins/.ui.'
FreeAmp will quit.
[New Thread 15497]
[New Thread 15498]

Program received signal SIGSEGV, Segmentation fault.
TimerManager::StopTimer (this=0x10106218, timer=0x0) at base/src/timer.cpp:95
95	base/src/timer.cpp: No such file or directory.
(gdb) bt
#0  TimerManager::StopTimer (this=0x10106218, timer=0x0)
    at base/src/timer.cpp:95
#1  0x1001e3e8 in Player::~Player (this=0x101028b8, __in_chrg=3)
    at base/src/player.cpp:221
#2  0x1005abb4 in main (argc=1, argv=0x7ffff984)
    at base/unix/src/bootstrap.cpp:286
#3  0xfdb775c in __libc_start_main (argc=1, argv=0x7ffff984, envp=0x7ffff98c, 
    auxvec=0x7ffffa38, rtld_fini=0x10106218, stinfo=0x100c4360, 
    stack_on_entry=0x100ec400) at ../sysdeps/powerpc/elf/libc-start.c:106
(gdb) 


   BA> Thanks!

Thank *you* for continuing to work on this problem!

   CMC

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Information forwarded to debian-bugs-dist@lists.debian.org, bma@debian.org (Brian M. Almeida):
Bug#56472; Package freeamp. (full text, mbox, link).


Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and forwarded to list. Copy sent to bma@debian.org (Brian M. Almeida). (full text, mbox, link).


Message #135 received at 56472@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: 56472@bugs.debian.org, Brian Almeida <bma@tux.org>
Cc: "C.M. Connelly" <c@eskimo.com>
Subject: Re: #56472: freeamp won't run on PowerPC
Date: Wed, 04 Oct 2000 15:40:36 -0700
Brian,

Just to keep you up to speed, running freeamp 2.1-0beta9 with no
~/.freeamp or ~/MyMusic directories on PowerPC results in the
following messages:


   diziet% freeamp
   /usr/lib/freeamp/plugins/freeamp.ui: undefined symbol:
     Show__16GTKMessageDialogPCcT117MessageDialogEnumbT4T1 
   No UI plugin in '.:~/.freeamp:/usr/lib/freeamp' matched
     'plugins/' or 'plugins/.ui.' 
   FreeAmp will quit.
   diziet% 

*sigh*

   CMC

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Message sent on to "C.M. Connelly" <c@eskimo.com>:
Bug#56472. (full text, mbox, link).


Message #138 received at 56472-submitter@bugs.debian.org (full text, mbox, reply):

From: Brian Almeida <bma@tux.org>
To: 56472-submitter@bugs.debian.org
Subject: Re: #56742: freeamp won't run on PowerPC
Date: Fri, 17 Aug 2001 16:25:25 -0400
Hi Claire,

Mind trying to see if this bug is still reproducible (and if
so give me a current backtrace) with freeamp 2.1.final-2 or 
later? 

Thanks,

Brian

-- 
Brian Almeida                      | http://tynian.net
Debian Developer                   | bma@debian.org



Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #141 received at 56472-quiet@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@tux.org>, 56472-quiet@bugs.debian.org
Cc: "C.M. Connelly" <c@eskimo.com>
Subject: Re: Bug#56472: #56742: freeamp won't run on PowerPC
Date: Sat, 18 Aug 2001 01:17:06 -0700
Brian,

    BA> Mind trying to see if this bug is still reproducible (and
    BA> if so give me a current backtrace) with freeamp
    BA> 2.1.final-2 or later?

I'll see what I can do.  I'm on a 28.8 line at the moment, and
I've been having really crappy connectivity to the archive.  If
necessary, I'll get my SO to sneakernet it for me.

BTW, freeamp doesn't seem to be built for PowerPC at all.  I'll
try building it from source.

More when I know it....

   Claire

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Acknowledgement sent to "C.M. Connelly" <c@eskimo.com>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #144 received at 56472-quiet@bugs.debian.org (full text, mbox, reply):

From: "C.M. Connelly" <c@eskimo.com>
To: Brian Almeida <bma@tux.org>, 56472-quiet@bugs.debian.org
Cc: "C.M. Connelly" <c@eskimo.com>
Subject: Re: Bug#56472: #56742: freeamp won't run on PowerPC
Date: Mon, 20 Aug 2001 11:02:31 -0700
Brian,

Yes, still crashes as soon as you try to play an MP3 file.

Backtrace:
diziet% gdb freeamp
GNU gdb 5.0
Copyright 2000 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 "powerpc-unknown-linux-gnu"...
(gdb) run
Starting program: /home/claire/src/LocalBuilds/freeamp-2.1.final/freeamp 
[New Thread 14183 (manager thread)]
[New Thread 14181 (initial thread)]
[New Thread 14184]
[New Thread 14185]
[New Thread 14186]
[New Thread 14188]
[New Thread 14189]
[New Thread 14190]
[New Thread 14192]
[New Thread 14193]
[New Thread 14194]
[New Thread 14195]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 14195]
0x6fc2b298 in unpack_huff () at eval.c:88
88	eval.c: No such file or directory.
Current language:  auto; currently c
(gdb) bt
#0  0x6fc2b298 in unpack_huff () at eval.c:88
#1  0x6fc1ebfc in unpack_main () at eval.c:88
#2  0x6fc1f280 in L3audio_decode_MPEG1 () at eval.c:88
#3  0x6fc1f124 in L3audio_decode () at eval.c:88
#4  0x6fc2e54c in audio_decode () at eval.c:88
#5  0x6fc39444 in XingLMC::DecodeWork () at eval.c:88
#6  0x6fc38dc0 in XingLMC::DecodeWorkerThreadFunc () at eval.c:88

#7  0x10062964 in pthreadThread::InternalThreadFunction (this=0x10599678)
    at base/unix/src/pthreadthread.cpp:73
#8  0x10062918 in pthreadThread::internalThreadFunction (arg=0x1056cf7c)
    at base/unix/src/pthreadthread.cpp:62
#9  0x6ffad310 in pthread_start_thread () at eval.c:88
#10 0x6fd46690 in clone () at eval.c:88
(gdb) quit
The program is running.  Exit anyway? (y or n) y

That was with a VBR file.  A non-VBR file produces the following,
accompanied by loud scrambled sound:

diziet% gdb freeamp
GNU gdb 5.0
Copyright 2000 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 "powerpc-unknown-linux-gnu"...
(gdb) run
Starting program: /home/claire/src/LocalBuilds/freeamp-2.1.final/freeamp 
[New Thread 14220 (manager thread)]
[New Thread 14218 (initial thread)]
[New Thread 14221]
[New Thread 14222]
[New Thread 14223]
[New Thread 14225]
[New Thread 14226]
[New Thread 14227]
[New Thread 14228]
[New Thread 14230]
[New Thread 14231]
[New Thread 14236]
[New Thread 14237]
[New Thread 14238]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 14237]
0x6fc2b298 in unpack_huff () at eval.c:88
88	eval.c: No such file or directory.
Current language:  auto; currently c
(gdb) bt
#0  0x6fc2b298 in unpack_huff () at eval.c:88
#1  0x6fc1ec34 in unpack_main () at eval.c:88
#2  0x6fc1f294 in L3audio_decode_MPEG1 () at eval.c:88
#3  0x6fc1f124 in L3audio_decode () at eval.c:88
#4  0x6fc2e54c in audio_decode () at eval.c:88
#5  0x6fc39444 in XingLMC::DecodeWork () at eval.c:88
#6  0x6fc38dc0 in XingLMC::DecodeWorkerThreadFunc () at eval.c:88
#7  0x10062964 in pthreadThread::InternalThreadFunction (this=0x105a3100)
    at base/unix/src/pthreadthread.cpp:73
#8  0x10062918 in pthreadThread::internalThreadFunction (arg=0x10576a0c)
    at base/unix/src/pthreadthread.cpp:62
#9  0x6ffad310 in pthread_start_thread () at eval.c:88
#10 0x6fd46690 in clone () at eval.c:88
(gdb) 

It sounds like an endianness issue to me.  Let me know if I can
try anything else to help out -- would getting a non-stripped
version of whatever package provides the unpack_huff function be
useful?  If so, let me know what package that is -- it's not
freeamp.


For your reference, here's a current list of packages and support
packages for freeamp that I have installed:


System information
==================

Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux diziet 2.2.19-fal #2 Mon Apr 30 18:15:17 PDT 2001 ppc

Versions of packages freeamp depends on:

libc6 (>= 2.2.3-1), libgdk-pixbuf2 (>= 0.11.0-2), libglib1.2 (>= 1.2.0), libgtk1.2 (>= 1.2.10-1), libmusicbrainz1 (>= 1.0.0.final-1), libstdc++2.10-glibc2.2, libttf2, libvorbis0 (>= 1.0rc1-1), xlibs (>> 4.0.3), zlib1g (>= 1:1.1.3)
ii  libc6          2.2.3-6        GNU C Library: Shared libraries and Timezone
ii  libgdk-pixbuf2 0.11.0-2       The GdkPixBuf library.
ii  libglib1.2     1.2.10-1.2     The GLib library of C routines
ii  libgtk1.2      1.2.10-1       The GIMP Toolkit set of widgets for X
ii  libmusicbrainz 1.0.0.final-2  Second generation incarnation of the CD Inde
ii  libstdc++2.10- 2.95.4-0.01042 The GNU stdc++ library
ii  libttf2        1.4pre.2001032 FreeType 1, The FREE TrueType Font Engine, s
ii  libvorbis0     1.0rc1-1       The OGG Vorbis lossy audio compression codec
ii  xlibs          4.0.3-4        X Window System client libraries
ii  zlib1g         1.1.3-15       compression library - runtime

Suggested packages:

ii  freeamp-extras 2.1.final-2    Additional ncurses and command line user int
ii  freeamp-doc    2.1.final-2    FreeAmp documentation and help files
ii  libfreeamp-eso 2.1.final-2    EsounD plugin for FreeAmp
un  libfreeamp-als <none>         (no description available)

   Claire

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Bug reassigned from package `freeamp' to `zinf'. Request was from Andreas Rottmann <a.rottmann@gmx.at> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `grave'. Request was from Daniel Stone <dstone@trinity.unimelb.edu.au> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug title. Request was from Daniel Stone <dstone@trinity.unimelb.edu.au> to control@bugs.debian.org. (full text, mbox, link).


Merged 56472 176619. Request was from Daniel Stone <dstone@trinity.unimelb.edu.au> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Andreas Rottmann <rotty@debian.org>, zinf@packages.qa.debian.org:
Bug#56472; Package zinf. (full text, mbox, link).


Acknowledgement sent to Neil Schemenauer <nas@python.ca>:
Extra info received and forwarded to list. Copy sent to Andreas Rottmann <rotty@debian.org>, zinf@packages.qa.debian.org. (full text, mbox, link).


Message #157 received at 56472@bugs.debian.org (full text, mbox, reply):

From: Neil Schemenauer <nas@python.ca>
To: 56472@bugs.debian.org
Subject: Patch to fix endian detection in L3.h
Date: Sat, 29 Mar 2003 12:14:03 -0800
I think the attached patch fixes the reported bug.  I had trouble
testing it because I don't have physical access to root access to a
PowerPC machine and had to use one of the Debian build machines.

It looks like the L3.h header doesn't know that the PowerPC is big
endian.  The fix is taken from the mq3 package (which also uses the Xing
MP3 decoder).

  Neil


--- lmc/xingmp3/include/L3.h	2002-06-28 05:49:13.000000000 -0400
+++ lmc/xingmp3/include/L3.h	2003-03-29 14:51:58.000000000 -0500
@@ -39,27 +39,14 @@
 #define GLOBAL_GAIN_SCALE (4*15)
 /* #define GLOBAL_GAIN_SCALE 0 */
 
-
-#ifdef _M_IX86
-#define LITTLE_ENDIAN 1
-#endif
-
-#ifdef _M_ALPHA
-#define LITTLE_ENDIAN 1
-#endif
-
-#ifdef sparc
-#define LITTLE_ENDIAN 0
-#endif
-
-#ifndef LITTLE_ENDIAN
-#error Layer III LITTLE_ENDIAN must be defined 0 or 1
+#if ((BYTE_ORDER != LITTLE_ENDIAN) && (BYTE_ORDER != BIG_ENDIAN))
+#error Layer III BYTE_ORDER must be defined as BIG_ENDIAN or LITTLE_ENDIAN
 #endif
 
 /*-----------------------------------------------------------*/
 /*---- huffman lookup tables ---*/
 /* endian dependent !!! */
-#if LITTLE_ENDIAN
+#if (BYTE_ORDER == LITTLE_ENDIAN)
 typedef union
 {
    int ptr;



Tags added: patch Request was from Neil Schemenauer <nas@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Andreas Rottmann <rotty@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to "C.M. Connelly" <c@eskimo.com>:
Bug acknowledged by developer. (full text, mbox, link).


Message #164 received at 56472-close@bugs.debian.org (full text, mbox, reply):

From: Andreas Rottmann <rotty@debian.org>
To: 56472-close@bugs.debian.org
Subject: Bug#56472: fixed in zinf 2.2.2+cvs20030131+dp1-4
Date: Thu, 03 Apr 2003 12:02:40 -0500
We believe that the bug you reported is fixed in the latest version of
zinf, which is due to be installed in the Debian FTP archive:

zinf-extras_2.2.2+cvs20030131+dp1-4_i386.deb
  to pool/main/z/zinf/zinf-extras_2.2.2+cvs20030131+dp1-4_i386.deb
zinf-plugin-alsa_2.2.2+cvs20030131+dp1-4_i386.deb
  to pool/main/z/zinf/zinf-plugin-alsa_2.2.2+cvs20030131+dp1-4_i386.deb
zinf-plugin-arts_2.2.2+cvs20030131+dp1-4_i386.deb
  to pool/main/z/zinf/zinf-plugin-arts_2.2.2+cvs20030131+dp1-4_i386.deb
zinf-plugin-esound_2.2.2+cvs20030131+dp1-4_i386.deb
  to pool/main/z/zinf/zinf-plugin-esound_2.2.2+cvs20030131+dp1-4_i386.deb
zinf_2.2.2+cvs20030131+dp1-4.diff.gz
  to pool/main/z/zinf/zinf_2.2.2+cvs20030131+dp1-4.diff.gz
zinf_2.2.2+cvs20030131+dp1-4.dsc
  to pool/main/z/zinf/zinf_2.2.2+cvs20030131+dp1-4.dsc
zinf_2.2.2+cvs20030131+dp1-4_i386.deb
  to pool/main/z/zinf/zinf_2.2.2+cvs20030131+dp1-4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 56472@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Rottmann <rotty@debian.org> (supplier of updated zinf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu,  3 Apr 2003 18:43:11 +0200
Source: zinf
Binary: zinf-plugin-alsa zinf-plugin-arts zinf-extras zinf-plugin-esound zinf
Architecture: source i386
Version: 2.2.2+cvs20030131+dp1-4
Distribution: unstable
Urgency: low
Maintainer: Andreas Rottmann <rotty@debian.org>
Changed-By: Andreas Rottmann <rotty@debian.org>
Description: 
 zinf       - Extensible, cross-platform audio player
 zinf-extras - Additional ncurses and command line user interfaces
 zinf-plugin-alsa - ALSA plugin for ZINF
 zinf-plugin-arts - aRts plugin for ZINF
 zinf-plugin-esound - EsounD plugin for ZINF
Closes: 56472
Changes: 
 zinf (2.2.2+cvs20030131+dp1-4) unstable; urgency=low
 .
   * New patch: 03_xingmp3-bigendian.dpatch - thanks to Neil Schemenauer
     (closes: #56472).
Files: 
 b35808b86914ac1d21e4956a761f182f 1015 sound optional zinf_2.2.2+cvs20030131+dp1-4.dsc
 139bc7973963142481897979a8129020 13147 sound optional zinf_2.2.2+cvs20030131+dp1-4.diff.gz
 816e7b24b002b2882956d623bbe6b464 1471918 sound optional zinf_2.2.2+cvs20030131+dp1-4_i386.deb
 5a8a982d356ee227fa66a0c708f28b68 39220 sound extra zinf-extras_2.2.2+cvs20030131+dp1-4_i386.deb
 879431c0d61d358ec7aae981974e4416 11926 sound optional zinf-plugin-esound_2.2.2+cvs20030131+dp1-4_i386.deb
 dc7a4743984270d7ddb11a8d84784231 14976 sound extra zinf-plugin-alsa_2.2.2+cvs20030131+dp1-4_i386.deb
 0e3df7cf9d45dfda4b3998e2dcac0260 11464 sound extra zinf-plugin-arts_2.2.2+cvs20030131+dp1-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+jGWx+S/PxQH9W2IRAp71AJ0Sx+YGUC/Coi3jYLqyrdgfI1yxYgCdGIf0
wciq0+Sdh2hxVNonlQjnE98=
=aMex
-----END PGP SIGNATURE-----




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 13:20:14 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.