View Issue Details

IDProjectCategoryView StatusLast Update
0000347JVT JM H.264/AVC reference softwareencoderpublic2015-04-13 15:06
ReporterEymen Kurdoglu Assigned ToKarsten Suehring  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64 GNU/LinuxOSUbuntuOS Version14.04
Product VersionJM 18.6 
Fixed in VersionJM 19.0 
Summary0000347: "double free" crash in the low-delay mode
DescriptionThe encoder crashes after encoding the first IDR frame when I'm trying to implement a low-delay hierarchical-P coding structure. The configuration file I'm using is attached. Below is the terminal output:

00000(IDR) 47904 168 0 28 6 39.002 43.168 42.430 52 0 FRM 396 0 0 0 0 3
*** Error in `./lencod.exe': double free or corruption (fasttop): 0x0000000002dc7260 ***
Aborted (core dumped)

Steps To ReproduceI'm using the CREW_352x288_30_orig_01.yuv test file.
Additional Information$ uname -a

Linux eymen-iMac 3.13.0-49-generic 0000081-Ubuntu SMP Tue Mar 24 19:29:48 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ gcc -version

gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
TagsNo tags attached.

Activities

Eymen Kurdoglu

2015-03-23 22:55

reporter  

encoder_hPP.cfg (25,009 bytes)

Karsten Suehring

2015-04-13 15:06

administrator   ~0000620

The free_pointer() function tries to set the pointer to NULL, but since the pointer is no reference, only the local copy is set to NULL.

I have modified the code on my branch to use free() and set the pointer to NULL after the free() call.

Another workaround is to set MVC_EXTENSION_ENABLE to zero (unless you need stereo).

C++ with references would be nice here...

I'm a bit concerned about other uses of free_pointer().

Issue History

Date Modified Username Field Change
2015-03-23 22:55 Eymen Kurdoglu New Issue
2015-03-23 22:55 Eymen Kurdoglu File Added: encoder_hPP.cfg
2015-04-12 21:23 Eymen Kurdoglu Platform iMac => x86_64 GNU/Linux
2015-04-12 21:23 Eymen Kurdoglu Additional Information Updated
2015-04-13 15:06 Karsten Suehring Note Added: 0000620
2015-04-13 15:06 Karsten Suehring Status new => resolved
2015-04-13 15:06 Karsten Suehring Fixed in Version => JM 19.0
2015-04-13 15:06 Karsten Suehring Resolution open => fixed
2015-04-13 15:06 Karsten Suehring Assigned To => Karsten Suehring