Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56024 - mpg321 segfault on exit on amd64
Summary: mpg321 segfault on exit on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 All
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-04 02:36 UTC by Jeremy Huddleston (RETIRED)
Modified: 2005-01-03 03:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-04 02:36:19 UTC
(02:33:29 Sun Jul 04 2004 jeremy@cid x86_64)
~ $ mpg123 /home/jeremy/gentoo/sounds/xmms_segfault.mp3 
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title  : Un Attimo Di Pace               Artist: Eros Ramazzotti - [EMG]       
Album  : 9                               Year  : 2003
Comment: www.elitemusic.es.vg            Genre : Pop                           

Directory: /home/jeremy/gentoo/sounds/
Playing MPEG stream from xmms_segfault.mp3 ...
MPEG 1.0 layer III, 192 kbit/s, 44100 Hz stereo

[0:02] Decoding of xmms_segfault.mp3 finished.
Segmentation fault

(02:34:41 Sun Jul 04 2004 jeremy@cid x86_64)
~ $ qpkg -I -v -f /usr/bin/mpg123 
media-sound/mpg321-0.2.10-r1 *
Comment 1 Benjamin Schindler (RETIRED) gentoo-dev 2004-07-08 14:25:37 UTC
Heh - that's odd. On my system, it does not crash, however, it produces plain weird sound - the old sound is recognizable, but sounds totally different (Sorry, can't be more specific)
Comment 2 Benjamin Schindler (RETIRED) gentoo-dev 2004-07-08 14:26:11 UTC
Oh, and I'm on amd64 too - sorry, forgot that
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-10 11:03:57 UTC
odd... it happens as a normal user, but not as root:

Program received signal SIGSEGV, Segmentation fault.
0x0000002a9555d145 in _dl_rtld_di_serinfo () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x0000002a9555d145 in _dl_rtld_di_serinfo () from /lib64/ld-linux-x86-64.so.2
#1  0x0000002a9555d7d1 in _dl_rtld_di_serinfo () from /lib64/ld-linux-x86-64.so.2
#2  0x0000002a95561454 in _dl_rtld_di_serinfo () from /lib64/ld-linux-x86-64.so.2
#3  0x0000002a95561682 in _dl_rtld_di_serinfo () from /lib64/ld-linux-x86-64.so.2
#4  0x0000002a95bd8c75 in exit () from /lib/libc.so.6
#5  0x0000002a95bc42ef in __libc_start_main () from /lib/libc.so.6
#6  0x000000000040272a in _start ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y
Comment 4 Danny van Dyk (RETIRED) gentoo-dev 2004-09-13 16:55:43 UTC
Jeremy: Can't reproduce this. Can you provide the mp3 file you used to trigger this bug ?
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-13 23:40:58 UTC
Kugelfang: http://dev.gentoo.org/~eradicator/segfault.mp3 will do it for me... 
Comment 6 Danny van Dyk (RETIRED) gentoo-dev 2004-09-14 04:04:09 UTC
[ebuild   R   ] media-sound/mpg321-0.2.10-r1  0 kB

Segfault only show up, when i do

mpg321 segfault.mp3

It does _not_ show up when i do

mpg321 --test segfault.mp3

I'll have a look at the source.
Comment 7 Danny van Dyk (RETIRED) gentoo-dev 2004-09-14 06:18:18 UTC
It segfaulted once, but won't do it again. Strange...

dvandyk@phi ~ $ gdb mpg321
GNU gdb 6.2
Copyright 2004 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 "x86_64-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run segfault.mp3
Starting program: /usr/bin/mpg321 segfault.mp3
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title  : Another Brick in the Wall (Par  Artist: Pink Floyd
Album  : Us And Them Symphonic           Year  :
Comment: Ripped by Eradicator            Genre : Pop

Playing MPEG stream from segfault.mp3 ...
MPEG 1.0 layer III, 48 kbit/s, 44100 Hz joint-stereo

[8:28] Decoding of segfault.mp3 finished.

Program exited normally.
(gdb) q
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-14 19:21:15 UTC
yeah... I kinda put this on the back burner... It hurts my head too much...
Comment 9 Simon Stelling (RETIRED) gentoo-dev 2004-10-28 05:27:49 UTC
works for me, feel free to reopen ;)
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-29 17:48:50 UTC
blubb: Please don't close bugs that are assigned to me
Comment 11 Simon Stelling (RETIRED) gentoo-dev 2004-10-30 01:07:20 UTC
uh sorry, didn't notice that :S
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-03 03:42:10 UTC
fixed in cvs