Opened 11 years ago

Last modified 8 years ago

#1051 new defect

MPlayer receives SIGBUS

Reported by: andras.barna@… Owned by: reimar
Priority: important Component: vo
Version: HEAD Severity: blocker
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:


$ uname -a
NetBSD 4.0 NetBSD 4.0 (GENERIC) #0: Sun Dec 16 02:17:35 PST 2007 builds@wb26:/home/builds/ab/netbsd-4-0-RELEASE/sparc64/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/sparc64/compile/GENERIC sparc64

$ ls -l /lib/libc[.-]*
lrwxr-xr-x 1 root wheel 14 Dec 16 10:25 /lib/ ->
lrwxr-xr-x 1 root wheel 14 Dec 16 10:25 /lib/ ->
-r--r--r-- 1 root wheel 1342250 Dec 16 10:24 /lib/

$ gcc -v
Using built-in specs.
Target: sparc64--netbsd
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf4.99.3 --host=sparc64--netbsd --target=sparc64--netbsd
Thread model: posix
gcc version 4.1.2 20061021 prerelease (NetBSD nb3 20061125)

$ ld -v
GNU ld version 2.16.1

$ as --version
GNU assembler 2.16.1
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `sparc64--netbsd'.

$ gdb mplayer
GNU gdb 6.5
Copyright (C) 2006 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 "sparc64--netbsd"...
(gdb) run -v "/home/sartek/vidz/asd.mpg"
Starting program: /usr/local/bin/mplayer -v "/home/sartek/vidz/asd.mpg"
MPlayer dev-SVN-r26320-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Sun Sparc
get_path('codecs.conf') -> '/home/sartek/.mplayer/codecs.conf'
Reading /home/sartek/.mplayer/codecs.conf: Can't open '/home/sartek/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-debug=3 --disable-ass --disable-freetype
CommandLine?: '-v' '/home/sartek/vidz/asd.mpg'
get_path('font/font.desc') -> '/home/sartek/.mplayer/font/font.desc'
font: can't open file: /home/sartek/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using Unoptimized OnScreenDisplay?
Using nanosleep() timing
get_path('input.conf') -> '/home/sartek/.mplayer/input.conf'
Can't open input config file /home/sartek/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('asd.mpg.conf') -> '/home/sartek/.mplayer/asd.mpg.conf'

Playing /home/sartek/vidz/asd.mpg.
get_path('sub/') -> '/home/sartek/.mplayer/sub/'
[file] File size is 40828532 bytes
STREAM: [file] /home/sartek/vidz/asd.mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: MPEG PS format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo?
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename /home/sartek/vidz/asd.mpg ext: .mpg
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 0
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 66106, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=553648913
LMLM4 Stream Format not found
system stream synced at 0xB (11)!
==> Found audio stream: 0
==> Found video stream: 0
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO: MPEG1 352x240 (aspect 12) 29.970 fps 1150.0 kbps (143.8 kbyte/s)
[V] filefmt:2 fourcc:0x10000001 size:352x240 fps:29.97 ftime:=0.0334
get_path('sub/') -> '/home/sartek/.mplayer/sub/'
X11 opening display: :0.0
Xlib: extension "XFree86-VidModeExtension?" missing on display ":0.0".
vo: X11 color mask: FFFF (R:F800 G:7E0 B:1F)
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local display)
[x11] Unknown wm type...
[x11] Current fstype setting doesn't honour any X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x000c41).
[xv common] Maximum source image dimensions: 720x2048
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 240 (preferred colorspace: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale? params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using generic C decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 44100 Hz 224 kbit Stereo, BPF: 731
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16be, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
Building audio filter chain for 44100Hz/2ch/s16be -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16be
[dummy] Was reinitialized: 44100Hz/2ch/s16be
ao2: 44100 Hz 2 chans s16be
audio_setup: using '/dev/sound' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16be (requested: s16be)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags: 4/4 (16384 bytes/frag) free: 65536
AO: [oss] 44100Hz 2ch s16be (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16be -> 44100Hz/2ch/s16be...
[dummy] Was reinitialized: 44100Hz/2ch/s16be
[dummy] Was reinitialized: 44100Hz/2ch/s16be
Starting playback...
Increasing filtered audio buffer size from 0 to 65536
[ffmpeg] aspect_ratio: 1.339422
VDec: vo config request - 352 x 240 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.34:1 - prescaling to correct movie aspect.
VO Config (352x240->352x262,flags=0,'MPlayer',0x32315659)
VO: [xv] 352x240 => 352x262 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@…> and others
Xvideo image format: 0x32595559 (2YUY) packed
Xvideo image format: 0x59565955 (YVYU) packed
Xvideo image format: 0x32315659 (21VY) planar
Xvideo image format: 0x30323449 (024I) planar

Program received signal SIGBUS, Bus error.
0x0000000040d6a1ac in _XData32 () from /usr/X11R6/lib/
(gdb) bt
#0 0x0000000040d6a1ac in _XData32 () from /usr/X11R6/lib/
#1 0x0000000040d90ae4 in XChangeProperty () from /usr/X11R6/lib/
#2 0x0000000000163be0 in vo_x11_classhint (display=0x9a9000, window=14680065, name=0x10b <Address 0x10b out of bounds>) at x11_common.c:950
#3 0x000000000016566c in vo_x11_create_vo_window (vis=<value optimized out>, x=14680065, y=6314576, width=<value optimized out>, height=381, flags=352, col_map=0, classname=0x605a50 "xv",

title=0x163b8c "&#65533;w&#65533;&#65533;\003") at x11_common.c:1307

#4 0x000000000016899c in config (width=<value optimized out>, height=<value optimized out>, d_width=381, d_height=352, flags=262, title=0x0, format=1457036) at vo_xv.c:302
#5 0x000000000015e640 in config_video_out (vo=0x81f400, width=8621056, height=352, d_width=3620741219, d_height=294653952, flags=6311072, title=0x604ca0 "MPlayer", format=842094169) at video_out.c:318
#6 0x00000000001acd70 in config (vf=<value optimized out>, width=1457036, height=1457036, d_width=1457036, d_height=1457036, flags=0, outfmt=4152628512) at vf_vo.c:65
#7 0x0000000000183d84 in vf_config_wrapper (vf=0x0, width=1457036, height=1457036, d_width=1457036, d_height=262, flags=0, outfmt=10141840) at vf.c:617
#8 0x0000000000181b5c in mpcodecs_config_vo (sh=0x97a800, w=<value optimized out>, h=<value optimized out>, preferred_outfmt=352) at vd.c:309
#9 0x00000000001b8b70 in init_vo (sh=0x163b8c, pix_fmt=PIX_FMT_YUV420P) at vd_ffmpeg.c:535
#10 0x00000000001b94d4 in get_buffer (avctx=0x163b8c, pic=0x0) at vd_ffmpeg.c:583
#11 0x000000000034eb70 in alloc_picture (s=0x9a6000, pic=0xb0a010, shared=-8) at mpegvideo.c:180
#12 0x000000000034ef60 in MPV_frame_start (s=0x9b0010, avctx=0xb0a010) at mpegvideo.c:881
#13 0x000000000048c864 in mpeg_decode_frame (avctx=0xdea815200180a220, data=0xf344fffdba81520, data_size=0x10300207d106fff, buf=0x3 <Address 0x3 out of bounds>, buf_size=294653952) at mpeg12.c:1617
#14 0x000000000031f20c in avcodec_decode_video (avctx=0x163b8c, picture=0x163b8c, got_picture_ptr=0x163b8c, buf=0x163b8c "&#65533;w&#65533;&#65533;\003", buf_size=2917) at utils.c:945
#15 0x00000000001b8e70 in decode (sh=0x978810, data=0x9a6810, len=-18628, flags=10199040) at vd_ffmpeg.c:773
#16 0x0000000000180764 in decode_video (sh_video=0x163b8c, start=0x9ba000 "", in_size=2917, drop_frame=0, pts=4.3394672433584387e-224) at dec_video.c:369
#17 0x0000000000136ec8 in main (argc=<value optimized out>, argv=0x9ba000) at mplayer.c:2287
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x40d6a18c to 0x40d6a1cc:
0x0000000040d6a18c <_XData32+44>: srax %g1, 2, %g5
0x0000000040d6a190 <_XData32+48>: sub %i2, %g1, %i2
0x0000000040d6a194 <_XData32+52>: add %g5, -1, %g2
0x0000000040d6a198 <_XData32+56>: add %g3, %g1, %g1
0x0000000040d6a19c <_XData32+60>: brlz,pn %g2, 0x40d6a164 <_XData32+4>
0x0000000040d6a1a0 <_XData32+64>: stx %g1, [ %i0 + 0xb0 ]
0x0000000040d6a1a4 <_XData32+68>: mov %i1, %g2
0x0000000040d6a1a8 <_XData32+72>: clr %g4
0x0000000040d6a1ac <_XData32+76>: ldx [ %g2 ], %g1
0x0000000040d6a1b0 <_XData32+80>: inc %g4
0x0000000040d6a1b4 <_XData32+84>: add %g2, 8, %g2
0x0000000040d6a1b8 <_XData32+88>: cmp %g4, %g5
0x0000000040d6a1bc <_XData32+92>: st %g1, [ %g3 ]
0x0000000040d6a1c0 <_XData32+96>: bne %xcc, 0x40d6a1ac <_XData32+76>
0x0000000040d6a1c4 <_XData32+100>: add %g3, 4, %g3
0x0000000040d6a1c8 <_XData32+104>: sllx %g4, 3, %g1
End of assembler dump.
(gdb) info all-registers
g0 0x0 0
g1 0x9ac094 10141844
g2 0xffffffffffffa8cc -22324
g3 0x9ac090 10141840
g4 0x0 0
g5 0x1 1
g6 0x0 0
g7 0x163b8c 1457036
o0 0x40d908e0 1087965408
o1 0x40822000 1082269696
o2 0xffffffffffffa728 -22744
o3 0x1 1
o4 0x81d0a0 8507552
o5 0x400 1024
sp 0xffffffffffff9e61 0xffffffffffff9e61
o7 0x40904780 1083197312
l0 0x81d0a0 8507552
l1 0x0 0
l2 0xffffffff 4294967295
l3 0xffffffffffffffff -1
l4 0x9734d0 9909456
l5 0x0 0
l6 0x0 0
l7 0x42b01c30 1118837808
i0 0x9a9000 10129408
i1 0xffffffffffffa8cc -22324
i2 0x0 0
i3 0x1f 31
i4 0xb 11
i5 0x3 3
fp 0xffffffffffff9f21 0xffffffffffff9f21
i7 0x40d90adc 1087965916
f0 0 (raw 0x00000000)
f1 0 (raw 0x00000000)
f2 0 (raw 0x00000000)
f3 0 (raw 0x00000000)
f4 0 (raw 0x00000000)
f5 0 (raw 0x00000000)
f6 0 (raw 0x00000000)
f7 0 (raw 0x00000000)
f8 0 (raw 0x00000000)
f9 0 (raw 0x00000000)
f10 0 (raw 0x00000000)
f11 0 (raw 0x00000000)
f12 0 (raw 0x00000000)
f13 0 (raw 0x00000000)
f14 0 (raw 0x00000000)
f15 0 (raw 0x00000000)
f16 1.25 (raw 0x3fa00000)
f17 -5.37264211e-24 (raw 0x98cfd812)
---Type <return> to continue, or q <return> to quit---
f18 352 (raw 0x43b00000)
f19 3.67140198e-43 (raw 0x00000106)
f20 1.79366203e-42 (raw 0x00000500)
f21 -8795017 (raw 0xcb063389)
f22 0 (raw 0x00000000)
f23 0 (raw 0x00000000)
f24 0.000604776375 (raw 0x3a1e89db)
f25 -2.84400763e+25 (raw 0xe9bc335d)
f26 -3.77222955e-31 (raw 0x8cf4d4ea)
f27 -1.64402612e-18 (raw 0xa1f29d8d)
f28 1.56094669e+09 (raw 0x4eba1450)
f29 -1.96030339e+13 (raw 0xd58ea17f)
f30 2.76891561e+20 (raw 0x61702a47)
f31 1.57217192e+17 (raw 0x5c0ba30d)
f32 2.4284742377387822e+201 (raw 0x69bfb9e035cf68bb)
f34 2.473407835528619e+35 (raw 0x4747d16bcb984d13)
f36 -3.5182637123892708e+195 (raw 0xe88819173407d343)
f38 -8.2958733326402939e-258 (raw 0x8a8fe3594aa3a095)
f40 -3.3227249413652743e+26 (raw 0xc5712d9700000001)
f42 4.5151843018251181e-310 (raw 0x0000531e02000000)
f44 7.8077931340657591e-304 (raw 0x010122414a0bd11f)
f46 -4.7204396450868852e+38 (raw 0xc7f63205c5257d0a)
f48 4.5151843018251181e-310 (raw 0x0000531e02000000)
f50 1.0315098833914284e-187 (raw 0x191cb97109293d50)
f52 3.9873550779152504e-113 (raw 0x28988c643e8dade8)
f54 -3.06512576164873e-13 (raw 0xbd5591a3c31093e0)
f56 3.916832394488631e+215 (raw 0x6cb22de9200548f3)
f58 -2.1636714077469743e-132 (raw 0xa498928f879fb91e)
f60 -1.2215496470199716e-259 (raw 0x8a2e0d0746f6454a)
f62 -7.5195734822056332e+96 (raw 0xd40c29d273c1281d)
pc 0x40d6a1ac 0x40d6a1ac <_XData32+76>
npc 0x40d6a1b0 0x40d6a1b0 <_XData32+80>
state 0x82009203 2181075459
fsr 0x2a00000020 180388626464
fprs 0x0 0
y 0x0 0
cwp 0x3 3
pstate 0x92 146
asi 0x82 130
ccr 0x0 0
d0 0 (raw 0x0000000000000000)
d2 0 (raw 0x0000000000000000)
d4 0 (raw 0x0000000000000000)
d6 0 (raw 0x0000000000000000)
d8 0 (raw 0x0000000000000000)
d10 0 (raw 0x0000000000000000)
d12 0 (raw 0x0000000000000000)
d14 0 (raw 0x0000000000000000)
d16 0.031250017789645437 (raw 0x3fa0000098cfd812)
d18 1.152921504606914e+18 (raw 0x43b0000000000106)
---Type <return> to continue, or q <return> to quit---
d20 2.7178374895781406e-311 (raw 0x00000500cb063389)
d22 0 (raw 0x0000000000000000)
d24 9.6362552428903055e-29 (raw 0x3a1e89dbe9bc335d)
d26 -2.9793970041909491e-246 (raw 0x8cf4d4eaa1f29d8d)
d28 1.7999311678554776e+71 (raw 0x4eba1450d58ea17f)
d30 2.2726757014375989e+161 (raw 0x61702a475c0ba30d)
d32 2.4284742377387822e+201 (raw 0x69bfb9e035cf68bb)
d34 2.473407835528619e+35 (raw 0x4747d16bcb984d13)
d36 -3.5182637123892708e+195 (raw 0xe88819173407d343)
d38 -8.2958733326402939e-258 (raw 0x8a8fe3594aa3a095)
d40 -3.3227249413652743e+26 (raw 0xc5712d9700000001)
d42 4.5151843018251181e-310 (raw 0x0000531e02000000)
d44 7.8077931340657591e-304 (raw 0x010122414a0bd11f)
d46 -4.7204396450868852e+38 (raw 0xc7f63205c5257d0a)
d48 4.5151843018251181e-310 (raw 0x0000531e02000000)
d50 1.0315098833914284e-187 (raw 0x191cb97109293d50)
d52 3.9873550779152504e-113 (raw 0x28988c643e8dade8)
d54 -3.06512576164873e-13 (raw 0xbd5591a3c31093e0)
d56 3.916832394488631e+215 (raw 0x6cb22de9200548f3)
d58 -2.1636714077469743e-132 (raw 0xa498928f879fb91e)
d60 -1.2215496470199716e-259 (raw 0x8a2e0d0746f6454a)
d62 -7.5195734822056332e+96 (raw 0xd40c29d273c1281d)
q0 0 (raw 0x00000000000000000000000000000000)
q4 0 (raw 0x00000000000000000000000000000000)
q8 0 (raw 0x00000000000000000000000000000000)
q12 0 (raw 0x00000000000000000000000000000000)
q16 2.524377889285068e-29 (raw 0x3fa0000098cfd81243b0000000000106)
q20 0 (raw 0x00000500cb0633890000000000000000)
q24 0 (raw 0x3a1e89dbe9bc335d8cf4d4eaa1f29d8d)
q28 inf (raw 0x4eba1450d58ea17f61702a475c0ba30d)
q32 inf (raw 0x69bfb9e035cf68bb4747d16bcb984d13)
q36 -inf (raw 0xe88819173407d3438a8fe3594aa3a095)
q40 -inf (raw 0xc5712d97000000010000531e02000000)
q44 0 (raw 0x010122414a0bd11fc7f63205c5257d0a)
q48 0 (raw 0x0000531e02000000191cb97109293d50)
q52 0 (raw 0x28988c643e8dade8bd5591a3c31093e0)
q56 inf (raw 0x6cb22de9200548f3a498928f879fb91e)
q60 -0 (raw 0x8a2e0d0746f6454ad40c29d273c1281d)

Attachments (1)

37057.diff (410 bytes) - added by svs@… 10 years ago.
From NetBSD PR 37057

Download all attachments as: .zip

Change History (4)

comment:1 Changed 10 years ago by svs@…

This looks like a duplicate of bug 250. There's also a NetBSD PR 37057 with patch that fixes the problem.

Changed 10 years ago by svs@…

From NetBSD PR 37057

comment:3 Changed 8 years ago by compn

  • Owner changed from beastd to reimar
Note: See TracTickets for help on using tickets.