Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#365 closed defect (fixed)

mplayer crashes on Solaris playing a realaudio file

Reported by: egger@… Owned by: r_togni@…
Priority: important Component: streaming
Version: 1.0pre7 Severity: major
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

I compiled the new 1.0pre7 with gcc 3.4.2 on Solaris 8
(on an ultra 5)
Playing mp3 and mpg files
works but playing a realaudio file crashes mplayer
MPlayer 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Sun Sparc

Playing /export/home/roland/sappada.ra.
REALAUDIO file format detected.

MPlayer interrupted by signal 10 in module: demux_open
gdb showed the call stack
#0 0x001a4810 in demux_open_ra ()
#1 0x00171700 in ds_get_next_pts ()
#2 0x00171ecc in demux_open ()
#3 0x0006557c in main ()
With a few fprintf I found the problematic line
./libmpdemux/demux_realaud.c line 148
*((unsigned int *)(ra_priv->genr)) = stream_read_dword(demuxer->stream);
(The same line is in the cvs version, too)
In this line mplayer crashes. Because the cast look strange
I tried
*((unsigned int *)(ra_priv->genr)) = stream_read_dword(demuxer->stream);

long lDWordRoland = stream_read_dword(demuxer->stream);
fprintf(stderr,"lDWordRoland = %d \n", lDWordRoland);
fflush(stderr);

afterwards playing the file worked and
lDWordRoland = 1231975472

I hope this help to analyse the problem.

The problem was with another realaudio file, too. After my
changes the mplayer -v output was:
###########################################################

mplayer -v ~roland/sappada.ra

MPlayer 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Sun Sparc

CommandLine: '-v' '/export/home/roland/sappada.ra'
init_freetype
get_path('font/font.desc') -> '/export/home/admin/.mplayer/font/font.desc'
font: can't open file: /export/home/admin/.mplayer/font/font.desc
font: can't open file: /export/home/admin/opt/sound/mplayer/share/mplayer/font/
font.desc
Using Unoptimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/export/home/admin/.mplayer/input.conf'
Can't open input config file /export/home/admin/.mplayer/input.conf: No such
file or directory
Can't open input config file /export/home/admin/opt/sound/mplayer/etc/mplayer/
input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('sappada.ra.conf') -> '/export/home/admin/.mplayer/sappada.ra.conf'
Playing /export/home/roland/sappada.ra.
[file] File size is 32464 bytes
STREAM: [file] /export/home/roland/sappada.ra
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
REALAUDIO file format detected.
==> Found audio stream: 0
[RealAudio] File version: 4
[RealAudio] Frame size: 348
[RealAudio] Sub packet size: 0
[RealAudio] 1 channel, 16 bit, 22050Hz
lDWordRoland = 1231975472
Audio: DNET -> AC3
======= WAVE Format =======
Format Tag: 28260 (0x6E64)
Channels: 1
Samplerate: 22050
avg byte/sec: 44100
Block align: 348
bits/sample: 16
cbSize: 0
===========================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
No accelerated IMDCT transform found
AC3: 1.0 (mono) 22050 Hz 40.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
No accelerated resampler found
AUDIO: 22050 Hz, 2 ch, s16be, 40.0 kbit/5.67% (ratio: 5000->88200)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
Checking audio filter chain for 22050Hz/2ch/s16be -> 22050Hz/2ch/s16be...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 22050Hz/2ch/s16be
AF_pre: 22050Hz/2ch/s16be
ao_sun: sample counter increment: 1760
ao_sun: minimum sample counter increment per 10msec interval: 1760

using sample counter based timing code

ao2: 22050 Hz 2 chans s16be [0x8]
AO: [sun] 22050Hz 2ch s16be (2 bps)
AO: Description: Sun audio output
AO: Author: Juergen Keil
Building audio filter chain for 22050Hz/2ch/s16be -> 22050Hz/2ch/s16be...
[dummy] Was reinitialized: 22050Hz/2ch/s16be
[dummy] Was reinitialized: 22050Hz/2ch/s16be
Video: no video
Freeing 0 unused video chunks.
Starting playback...
ds_fill_buffer: EOF reached (stream: audio)

EOF code: 1 2) 0.9%

Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: liba52
vo: x11 uninit called but X11 not inited..

Exiting... (End of file)
##########################################################
Kind regards

Roland

Change History (3)

comment:1 by reimar, 19 years ago

Unaligned access... We x86 guys will never get used to it *g*
Should be fixed in CVS.

comment:2 by reimar, 19 years ago

Resolution: fixed
Status: newclosed

comment:3 by egger@…, 19 years ago

Thank you very much. I'll try it as soon as possible.

Note: See TracTickets for help on using tickets.