Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108662 - mplayer segfaults when playing mythtv nuv files on ppc
Summary: mplayer segfaults when playing mythtv nuv files on ppc
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: media-video herd
: 108708 (view as bug list)
Depends on:
Reported: 2005-10-09 14:24 UTC by Miles Lubin
Modified: 2006-05-04 19:42 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Miles Lubin 2005-10-09 14:24:46 UTC
When attempting to play any nuv files from mythtv, mplayer segfaults.

Reproducible: Always
Steps to Reproduce:
1. mplayer (nuv file from mythtv)

Actual Results:  
$ gdb /usr/bin/mplayer
GNU gdb 6.3
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 "powerpc-unknown-linux-gnu"...Using host libthread_db
library "/lib 

(gdb) run 1002_20051001233500_20051002003500.nuv
Starting program: /usr/bin/mplayer 1002_20051001233500_20051002003500.nuv
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 21371)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team
AltiVec found
CPU: PowerPC

85 audio & 196 video codecs
Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup
Playing 1002_20051001233500_20051002003500.nuv.
Cache fill:  0.00% (0 bytes)    NuppelVideo file format detected.
NUV extended frame does not have expected length, ignoring
No NUV extended frame, using defaults
FPS not specified in the header or invalid, use the -fps option.
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
alsa-init: 1 soundcard found, using: default
alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Video: no video
Starting playback...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 21371)]
0x1012098c in ds_read_packet (ds=0x1068fc88, stream=0x1068fe60, len=-1840522808, 
    pts=674348.188, pos=The value of variable 'pos' is distributed across several
locations, and GDB cannot access its value.

) at demuxer.h:159
159     demuxer.h: No such file or directory.
        in demuxer.h
(gdb) bt
#0  0x1012098c in ds_read_packet (ds=0x1068fc88, stream=0x1068fe60,
    pts=674348.188, pos=The value of variable 'pos' is distributed across several
locations, and GDB cannot access its value.

) at demuxer.h:159
#1  0x10139680 in demux_nuv_fill_buffer (demuxer=0x106907f8) at demux_nuv.c:253
#2  0x10120cd8 in demux_fill_buffer (demux=0x0, ds=0x21000) at demuxer.c:378
#3  0x10120e50 in ds_fill_buffer (ds=0x1068fc88) at demuxer.c:464
#4  0x101210dc in demux_read_data (ds=0x1068fc88, mem=0x10693ac0 "", len=67584)
    at demuxer.c:483
#5  0x100c8ddc in decode_audio (sh_audio=0x0, buf=0x20000 <Address 0x20000 out
of bounds>, 
    minlen=1, maxlen=50) at ad_pcm.c:101
#6  0x100c6c44 in decode_audio (sh_audio=0x10691160, buf=0x106afe80 "",
    maxlen=65536) at dec_audio.c:398
#7  0x100575a8 in main (argc=272564224, argv=0x103e9fe0) at mplayer.c:2267

Expected Results:  
Vidio should be played.

Portage (default-linux/ppc/2005.0, gcc-3.4.4,
glibc-, ppc)
System uname: ppc 7447A, altivec supported
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
CFLAGS="-O2 -mtune=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe
FEATURES="autoconfig distlocks sandbox sfperms strict"
USE="ppc X aac alsa altivec bash-completion berkdb bitmap-fonts browserplugin
cdr crypt cups curl dvd dvdr dvdread emboss encode esd fam fbcon flac fortran
frontendonly gd gif gnome gpm gtk gtk2 imlib ipv6 java javascript jpeg jpeg2k
kde kdeenablefinal libwww live logitech-mouse mad motif mozilla mp3 mpeg mysql
mythtv ncurses network nls objc ogg oggvorbis opengl pam pcmcia pdflib perl png
python qt readline rtc samba sdl sheep spell ssl tcpd tiff truetype
truetype-fonts type1-fonts unicode usb vnc vorbis xine xinerama xml2 xv xvid
zeroconf zlib userland_GNU kernel_linux elibc_glibc"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-10 05:38:36 UTC
*** Bug 108708 has been marked as a duplicate of this bug. ***
Comment 2 Luca Barbato gentoo-dev 2005-10-10 06:06:22 UTC
I need a sample file, could you please report the issue upstream if it does
apply to the curren cvs version?
Comment 3 Miles Lubin 2005-10-10 13:25:41 UTC
I can't give you a sample file, as it would be a copyright violation, and I
don't know how to encode video into this format. This is not an upstream issue,
mplayer doesn't support mythtv nuv files, the mythtv USE flag applies a gentoo
Comment 4 Reimar Döffinger 2005-10-11 01:02:42 UTC
Please try upstream CVS. About half of gentoos mythtv patch was cleaned up and 
applied. The rest was too much of a mess to be integrated cleanly.
Comment 5 Reimar Döffinger 2005-10-11 03:46:22 UTC
Forgot to say: you can also use dd to extract only a small part of the file, 
that contains just a few frames (but check if it still shows the same problem).
When this works, it is always preferable to a full file.
My understanding is that this should also fall under some kind of fair-use rule 
and not cause a problem copyright wise. Depends of course on the country you're 
in etc.
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2006-03-09 23:08:20 UTC
Please test latest.
Comment 7 Miles Lubin 2006-05-04 19:42:36 UTC
Sorry for the long delay. I tested it with the latest mplayer and it seems to be working fine.