Opened 15 years ago

Last modified 13 years ago

#1370 new defect

Uninit() causes malloc error when buffer_name is unset

Reported by: acoolie@… Owned by: reimar
Priority: normal Component: vo
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

System:
OS X Leopard 10.5.6
Darwin MacBook-Pro 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386
gcc version 4.0.1 (Apple Inc. build 5465)
@(#)PROGRAM:ld PROJECT:ld64-77
Apple Computer, Inc. version cctools-667.3~21, GNU assembler version 1.38
MacBook Pro, Nvidia 8600M GT

Introduced by vo_macosx_buffer_name.patch.
Does not occur with options: -vo macosx:buffer_name=mybuffer

Full error:
mplayer(61208,0xa043d720) malloc: * error for object 0x5b1cc2: Non-aligned
pointer being freed
* set a breakpoint in malloc_error_break to debug

Backtrace:
#0 0x938374a6 in malloc_error_break ()
#1 0x93832497 in szone_error ()
#2 0x9375c463 in szone_free ()
#3 0x9375c2cd in free ()
#4 0x0001b3e4 in uninit () at libvo/vo_macosx.m:323
#5 0x0000340c in uninit_player (mask=3787) at mplayer.c:630
#6 0x0000346d in exit_player_with_rc (how=3787, rc=0) at mplayer.c:691
#7 0x000109df in run_command (mpctx=0x6c5760, cmd=0xdf5dd0) at command.c:2508
#8 0x00007acf in main (argc=3, argv=0xbffff764) at mplayer.c:3865

Attachments (1)

vo_mac_osx_buffer_name-free.patch (359 bytes ) - added by acoolie@… 15 years ago.
Only frees buffer_name if shared_buffer is set.

Download all attachments as: .zip

Change History (3)

by acoolie@…, 15 years ago

Only frees buffer_name if shared_buffer is set.

comment:1 by acoolie@…, 15 years ago

comment:2 by compn, 13 years ago

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