Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Cc: Warp_7@×××.de
Subject: Re: [gentoo-user] mplayer: glibc detected memory corruption
Date: Thu, 13 Sep 2012 09:14:51
Message-Id: 20120913111152.6a3ce707@khamul.example.com
In Reply to: Re: [gentoo-user] mplayer: glibc detected memory corruption by Frank Steinmetzger
1 On Thu, 13 Sep 2012 01:05:23 +0200
2 Frank Steinmetzger <Warp_7@×××.de> wrote:
3
4 > On Wed, Sep 12, 2012 at 12:51:02PM +0200, Alan McKinnon wrote:
5 > > On Wed, 12 Sep 2012 12:41:20 +0200
6 > > Frank Steinmetzger <Warp_7@×××.de> wrote:
7 > >
8 > > > Hi List
9 > > >
10 > > > Every once in a while, my mplayer can't play a video from the
11 > > > intertubes. It just crashes on load, it really drives me mad
12 > > > sometimes. I then need to x-kill the window, and if I started
13 > > > from the console, I can't even get back its prompt with Ctrl+C.
14 > > >
15 > > > It happens with videos from Wikipedia, some formats from YouTube,
16 > > > NASA and now also with this example:
17 > > > http://archive.org/details/LowEndCo1985 I wanted to watch the 256k
18 > > > MPeg4 video;
19 > > > - mplayer crashes (see output below)
20 > > > - VLC plays it way too slow with chunky audio
21 > > > - thankfully, my only other installed video player, Kaffeine, was
22 > > > able to play it, but it's crap as a video player
23 > > >
24 > > > Strangely enough, the 64k and the 512k versions play. Do you have
25 > > > any idea what's the problem here? If you need more info, just ask
26 > > > for it. I'm running 64 bit, mplayer 1.1-r1 and ffmpeg 0.10.2-r1.
27 > > >
28 > > >
29 > > > $ mplayer LowEndCo1985_256kb.mp4
30 > > > [normal MPlayer output snipped]
31 > > > *** glibc detected *** mplayer: malloc(): memory corruption:
32 > > > 0x0000000001957a60 ***
33 > >
34 > > Obviously that last line must not happen. You likely tripped over a
35 > > bug.
36 > >
37 > > How is your mplayer built (output of eix)?
38 >
39 > I'm not sure how that would help you, except for the list of enabled
40 > useflags: X a52 aalib alsa cdio dga dts dv dvb dvd dvdnav enca encode
41 > faad fbcon ftp gif iconv ipv6 jack joystick jpeg jpeg2k kernel_linux
42 > ladspa libass libcaca lirc live mad mmx mmxext mng mp3 network openal
43 > opengl osdmenu png pvr quicktime rar real rtc samba sdl shm speex sse
44 > sse2 ssse3 theora toolame tremor truetype twolame unicode v4l vorbis
45 > x264 xinerama xscreensaver xv xvid
46 >
47 > > Do you use mplayer or mplayer2?
48 >
49 > mplayer (I tried mplayer2 a longer while ago, but went back very
50 > quickly).
51 >
52 > > Do you use ffmpeg or libav?
53 >
54 > According to the output, it's libav.
55 >
56 > I asked a friend with Gentoo to play the video -- it works fine for
57 > him. Because he is using Core i5 graphics, I got a hunch that nvidia
58 > might be the culprit, so I booted my nouveau setup (kernel.org
59 > sources version 3.5.3). Now I'm getting some more output (and a
60 > different error). It's not really helpful, but here goes:
61
62
63 All your settings look pretty normal to me.
64
65 All three videos play fine here with AMD graphics (and no
66 mplayer messages about issues at all) so I doubt the video itself is to
67 blame, but I think you already know that.
68
69 You'll probably need to talk to the mplayer devs directly to get to the
70 bottom of this one. I assume you did all the obvious things already
71 like nvidia vs nouveau drivers, test with all GL types you have,
72 compare released mplayer with latest from svn, etc etc etc ?
73
74
75
76
77
78 >
79 >
80 > *** glibc detected *** mplayer: free(): invalid next size (normal):
81 > 0x000000000150a3d0 *** ======= Backtrace: =========
82 > /lib64/libc.so.6(+0x7a305)[0x7f6a8811e305]
83 > /usr/lib64/libdrm_nouveau.so.1(nouveau_bo_emit_buffer+0x163)[0x7f6a808a8c03]
84 > /usr/lib64/libdrm_nouveau.so.1(nouveau_reloc_emit+0x73)[0x7f6a808a8e83]
85 > /usr/lib64/libdrm_nouveau.so.1(nouveau_pushbuf_emit_reloc+0x4c)[0x7f6a808a7bac]
86 > /usr/lib64/dri/nouveau_dri.so(+0x1e2707)[0x7f6a80cc9707]
87 > /usr/lib64/dri/nouveau_dri.so(+0x1db745)[0x7f6a80cc2745]
88 > /usr/lib64/dri/nouveau_dri.so(+0x43b316)[0x7f6a80f22316]
89 > /usr/lib64/dri/nouveau_dri.so(+0x2014d6)[0x7f6a80ce84d6]
90 > /usr/lib64/dri/nouveau_dri.so(+0x30808f)[0x7f6a80def08f]
91 > /usr/lib64/dri/nouveau_dri.so(+0x2f6162)[0x7f6a80ddd162]
92 > /usr/lib64/dri/nouveau_dri.so(+0x2f668b)[0x7f6a80ddd68b]
93 > /usr/lib64/dri/nouveau_dri.so(+0x2e57df)[0x7f6a80dcc7df]
94 > /usr/lib64/dri/nouveau_dri.so(+0x2e857c)[0x7f6a80dcf57c]
95 > mplayer(glUploadTex+0x102)[0x452642]
96 > mplayer[0x457914]
97 > mplayer[0x4c7d69]
98 > mplayer(filter_video+0x3b)[0x498cab]
99 > mplayer[0x43abac]
100 > mplayer(main+0x22f8)[0x43ea38]
101 > /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f6a880c64bd]
102 > mplayer[0x430799]
103 > ======= Memory map: ========
104 > 00400000-006c3000 r-xp 00000000 08:03
105 > 870885 /usr/bin/mplayer 008c3000-008c4000 r--p 002c3000
106 > 08:03 870885 /usr/bin/mplayer 008c4000-008c9000 rw-p
107 > 002c4000 08:03 870885 /usr/bin/mplayer 008c9000-008ee000
108 > rw-p 00000000 00:00 0 00982000-015d0000 rw-p 00000000 00:00
109 > 0 [heap] 7f6a7f51a000-7f6a7ff1a000 rwxp 00000000 00:00
110 > 0 7f6a7ff1a000-7f6a7ff24000 r-xp 00000000 08:03
111 > 880932 /usr/lib64/libXcursor.so.1.0.2 7f6a7ff24000-7f6a80123000
112 > ---p 0000a000 08:03 880932 /usr/lib64/libXcursor.so.1.0.2
113 > 7f6a80123000-7f6a80124000 r--p 00009000 08:03
114 > 880932 /usr/lib64/libXcursor.so.1.0.2 7f6a80124000-7f6a80125000
115 > rw-p 0000a000 08:03 880932 /usr/lib64/libXcursor.so.1.0.2
116 > 7f6a80125000-7f6a80203000 r--p 00000000 08:03
117 > 952450 /usr/share/fonts/libertine-ttf/LinLibertine_R.ttf
118 > 7f6a80203000-7f6a8020f000 r-xp 00000000 08:03
119 > 812199 /lib64/libnss_files-2.15.so 7f6a8020f000-7f6a8040e000 ---p
120 > 0000c000 08:03 812199 /lib64/libnss_files-2.15.so
121 > 7f6a8040e000-7f6a8040f000 r--p 0000b000 08:03
122 > 812199 /lib64/libnss_files-2.15.so 7f6a8040f000-7f6a80410000 rw-p
123 > 0000c000 08:03 812199 /lib64/libnss_files-2.15.so
124 > 7f6a80410000-7f6a8041a000 r-xp 00000000 08:03
125 > 812193 /lib64/libnss_nis-2.15.so 7f6a8041a000-7f6a8061a000 ---p
126 > 0000a000 08:03 812193 /lib64/libnss_nis-2.15.so
127 > 7f6a8061a000-7f6a8061b000 r--p 0000a000 08:03
128 > 812193 /lib64/libnss_nis-2.15.so 7f6a8061b000-7f6a8061c000 rw-p
129 > 0000b000 08:03 812193 /lib64/libnss_nis-2.15.so
130 > 7f6a8061c000-7f6a80623000 r-xp 00000000 08:03
131 > 812191 /lib64/libnss_compat-2.15.so 7f6a80623000-7f6a80823000 ---p
132 > 00007000 08:03 812191 /lib64/libnss_compat-2.15.so
133 > 7f6a80823000-7f6a80824000 r--p 00007000 08:03
134 > 812191 /lib64/libnss_compat-2.15.so 7f6a80824000-7f6a80825000 rw-p
135 > 00008000 08:03 812191 /lib64/libnss_compat-2.15.so
136 > 7f6a80825000-7f6a808a5000 rw-s 1056b5000 00:05 1549 /dev/dri/card0
137 > 7f6a808a5000-7f6a808aa000 r-xp 00000000 08:03
138 > 881153 /usr/lib64/libdrm_nouveau.so.1.0.0 7f6a808aa000-7f6a80aa9000
139 > ---p 00005000 08:03 881153 /usr/lib64/libdrm_nouveau.so.1.0.0
140 > 7f6a80aa9000-7f6a80aaa000 r--p 00004000 08:03
141 > 881153 /usr/lib64/libdrm_nouveau.so.1.0.0 7f6a80aaa000-7f6a80aab000
142 > rw-p 00005000 08:03 881153 /usr/lib64/libdrm_nouveau.so.1.0.0
143 > 7f6a80ae6000-7f6a80ae7000 rw-s 105068000 00:05 1549 /dev/dri/card0
144 > 7f6a80ae7000-7f6a819c5000 r-xp 00000000 08:03
145 > 243828 /usr/lib64/mesa/nouveau_dri.so 7f6a819c5000-7f6a81bc4000
146 > ---p 00ede000 08:03 243828 /usr/lib64/mesa/nouveau_dri.so
147 > 7f6a81bc4000-7f6a81bff000 r--p 00edd000 08:03
148 > 243828 /usr/lib64/mesa/nouveau_dri.so 7f6a81bff000-7f6a81c48000
149 > rw-p 00f18000 08:03 243828 /usr/lib64/mesa/nouveau_dri.so
150 > 7f6a81c48000-7f6a81e2e000 rw-p 00000000 00:00 0
151 > 7f6a81e2e000-7f6a82127000 r--p 00000000 08:03
152 > 236605 /usr/lib64/locale/locale-archive 7f6a82127000-7f6a82130000
153 > r-xp 00000000 08:03 880946 /usr/lib64/libXrender.so.1.3.0
154 > 7f6a82130000-7f6a8232f000 ---p 00009000 08:03
155 > 880946 /usr/lib64/libXrender.so.1.3.0 7f6a8232f000-7f6a82330000
156 > r--p 00008000 08:03 880946 /usr/lib64/libXrender.so.1.3.0
157 > 7f6a82330000-7f6a82331000 rw-p 00009000 08:03
158 > 880946 /usr/lib64/libXrender.so.1.3.0 7f6a82331000-7f6a82339000
159 > r-xp 00000000 08:03 880945 /usr/lib64/libXrandr.so.2.2.0
160 > 7f6a82339000-7f6a82538000 ---p 00008000 08:03
161 > 880945 /usr/lib64/libXrandr.so.2.2.0 7f6a82538000-7f6a82539000 r--p
162 > 00007000 08:03 880945 /usr/lib64/libXrandr.so.2.2.0
163 > 7f6a82539000-7f6a8253a000 rw-p 00008000 08:03
164 > 880945 /usr/lib64/libXrandr.so.2.2.0 7f6a8253a000-7f6a82549000 r-xp
165 > 00000000 08:03 880939 /usr/lib64/libXi.so.6.1.0
166 > 7f6a82549000-7f6a82748000 ---p 0000f000 08:03
167 > 880939 /usr/lib64/libXi.so.6.1.0 7f6a82748000-7f6a82749000 r--p
168 > 0000e000 08:03 880939 /usr/lib64/libXi.so.6.1.0
169 > 7f6a82749000-7f6a8274a000 rw-p 0000f000 08:03
170 > 880939 /usr/lib64/libXi.so.6.1.0 7f6a8274a000-7f6a8274f000 r-xp
171 > 00000000 08:03 880934 /usr/lib64/libXdmcp.so.6.0.0
172 > 7f6a8274f000-7f6a8294e000 ---p 00005000 08:03
173 > 880934 /usr/lib64/libXdmcp.so.6.0.0 7f6a8294e000-7f6a8294f000 r--p
174 > 00004000 08:03 880934 /usr/lib64/libXdmcp.so.6.0.0
175 > 7f6a8294f000-7f6a82950000 rw-p 00005000 08:03
176 > 880934 /usr/lib64/libXdmcp.so.6.0.0 7f6a82950000-7f6a82952000 r-xp
177 > 00000000 08:03 880928 /usr/lib64/libXau.so.6.0.0
178 > 7f6a82952000-7f6a82b52000 ---p 00002000 08:03
179 > 880928 /usr/lib64/libXau.so.6.0.0 7f6a82b52000-7f6a82b53000 r--p
180 > 00002000 08:03 880928 /usr/lib64/libXau.so.6.0.0
181 > 7f6a82b53000-7f6a82b54000 rw-p 00003000 08:03
182 > 880928 /usr/lib64/libXau.so.6.0.0 7f6a82b54000-7f6a82b5a000 r-xp
183 > 00000000 08:03 881789 /usr/lib64/libogg.so.0.8.0
184 > 7f6a82b5a000-7f6a82d59000 ---p 00006000 08:03
185 > 881789 /usr/lib64/libogg.so.0.8.0 7f6a82d59000-7f6a82d5a000 r--p
186 > 00005000 08:03 881789 /usr/lib64/libogg.so.0.8.0
187 > 7f6a82d5a000-7f6a82d5b000 rw-p 00006000 08:03
188 > 881789 /usr/lib64/libogg.so.0.8.0 7f6a82d5b000-7f6a82ee5000 r-xp
189 > 00000000 08:03 881117 /usr/lib64/libcrypto.so.1.0.0
190 > 7f6a82ee5000-7f6a830e5000 ---p 0018a000 08:03
191 > 881117 /usr/lib64/libcrypto.so.1.0.0 7f6a830e5000-7f6a830fe000 r--p
192 > 0018a000 08:03 881117 /usr/lib64/libcrypto.so.1.0.0
193 > 7f6a830fe000-7f6a83108000 rw-p 001a3000 08:03
194 > 881117 /usr/lib64/libcrypto.so.1.0.0 7f6a83108000-7f6a8310c000 rw-p
195 > 00000000 00:00 0 7f6a8310c000-7f6a83162000 r-xp 00000000 08:03
196 > 881984 /usr/lib64/libssl.so.1.0.0 7f6a83162000-7f6a83361000 ---p
197 > 00056000 08:03 881984 /usr/lib64/libssl.so.1.0.0
198 > 7f6a83361000-7f6a83364000 r--p 00055000 08:03
199 > 881984 /usr/lib64/libssl.so.1.0.0 7f6a83364000-7f6a83369000 rw-p
200 > 00058000 08:03 881984 /usr/lib64/libssl.so.1.0.0
201 > 7f6a83369000-7f6a8336e000 r-xp 00000000 08:03
202 > 882140 /usr/lib64/libxcb-xfixes.so.0.0.0 7f6a8336e000-7f6a8356e000
203 > ---p 00005000 08:03 882140 /usr/lib64/libxcb-xfixes.so.0.0.0
204 > 7f6a8356e000-7f6a8356f000 r--p 00005000 08:03
205 > 882140 /usr/lib64/libxcb-xfixes.so.0.0.0 7f6a8356f000-7f6a83570000
206 > rw-p 00006000 08:03 882140 /usr/lib64/libxcb-xfixes.so.0.0.0
207 > 7f6a83570000-7f6a83571000 rw-p 00000000 00:00 0
208 > 7f6a83571000-7f6a83574000 r-xp 00000000 08:03
209 > 882122 /usr/lib64/libxcb-dri2.so.0.0.0 7f6a83574000-7f6a83774000
210 > ---p 00003000 08:03 882122 /usr/lib64/libxcb-dri2.so.0.0.0
211 > 7f6a83774000-7f6a83775000 r--p 00003000 08:03
212 > 882122 /usr/lib64/libxcb-dri2.so.0.0.0 7f6a83775000-7f6a83776000
213 > rw-p 00004000 08:03 882122 /usr/lib64/libxcb-dri2.so.0.0.0
214 > 7f6a83776000-7f6a83781000 r-xp 00000000 08:03
215 > 881152 /usr/lib64/libdrm.so.2.4.0 7f6a83781000-7f6a83980000 ---p
216 > 0000b000 08:03 881152 /usr/lib64/libdrm.so.2.4.0
217 > 7f6a83980000-7f6a83981000 r--p 0000a000 08:03
218 > 881152 /usr/lib64/libdrm.so.2.4.0 7f6a83981000-7f6a83982000 rw-p
219 > 0000b000 08:03 881152 /usr/lib64/libdrm.so.2.4.0
220 > 7f6a83982000-7f6a83999000 r-xp 00000000 08:03
221 > 882124 /usr/lib64/libxcb-glx.so.0.0.0 7f6a83999000-7f6a83b98000
222 > ---p 00017000 08:03 882124 /usr/lib64/libxcb-glx.so.0.0.0
223 > 7f6a83b98000-7f6a83b9a000 r--p 00016000 08:03
224 > 882124 /usr/lib64/libxcb-glx.so.0.0.0 7f6a83b9a000-7f6a83b9b000
225 > rw-p 00018000 08:03 882124 /usr/lib64/libxcb-glx.so.0.0.0
226 > 7f6a83b9b000-7f6a83b9c000 r-xp 00000000 08:03
227 > 880925 /usr/lib64/libX11-xcb.so.1.0.0 7f6a83b9c000-7f6a83d9b000
228 > ---p 00001000 08:03 880925 /usr/lib64/libX11-xcb.so.1.0.0
229 > 7f6a83d9b000-7f6a83d9c000 r--p 00000000 08:03
230 > 880925 /usr/lib64/libX11-xcb.so.1.0.0 7f6a83d9c000-7f6a83d9d000
231 > rw-p 00001000 08:03 880925 /usr/lib64/libX11-xcb.so.1.0.0
232 > 7f6a83d9d000-7f6a83da2000 r-xp 00000000 08:03
233 > 880936 /usr/lib64/libXfixes.so.3.1.0 7f6a83da2000-7f6a83fa1000 ---p
234 > 00005000 08:03 880936 /usr/lib64/libXfixes.so.3.1.0
235 > 7f6a83fa1000-7f6a83fa2000 r--p 00004000 08:03
236 > 880936 /usr/lib64/libXfixes.so.3.1.0 7f6a83fa2000-7f6a83fa3000 rw-p
237 > 00005000 08:03 880936 /usr/lib64/libXfixes.so.3.1.0
238 >
239 > MPlayer wurde durch Signal 6 im Modul filter video unterbrochen.
240 >
241 >
242
243
244
245 --
246 Alan McKinnon
247 alan.mckinnon@×××××.com