iron261 / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

r2872 fails to compile due to "attempt to use poisoned malloc" error in j2k.c #368

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Checkout revision 2872 on Ubuntu 14.04 LTS
2.cmake .
3.make -j5

What is the expected output? What do you see instead?
No error during compiling. Instead got:

[ 20%] Building C object src/lib/openjp2/CMakeFiles/openjp2.dir/j2k.c.o
/home/igierlach/openjpeg-read-only/src/lib/openjp2/j2k.c: In function 
‘opj_j2k_setup_encoder’:
/home/igierlach/openjpeg-read-only/src/lib/openjp2/j2k.c:6137:45: error: 
attempt to use poisoned "malloc"
             parameters->cp_comment = (char*)malloc(clen+strlen(version)+1);
                                             ^
make[2]: *** [src/lib/openjp2/CMakeFiles/openjp2.dir/j2k.c.o] Error 1
make[1]: *** [src/lib/openjp2/CMakeFiles/openjp2.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?
revision 2872 on Ubuntu 14.04 LTS

Please provide any additional information below.
Everything compiles fine on revision 2871.

Original issue reported on code.google.com by irek.gie...@gmail.com on 2 Jul 2014 at 7:56

GoogleCodeExporter commented 9 years ago
Should have added that this is on x86_64 architecture.

Original comment by irek.gie...@gmail.com on 2 Jul 2014 at 7:59

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2874.

Original comment by antonin on 3 Jul 2014 at 4:06