Run-time error while executing opencv_createsamples in ROS [closed]
I was trying to use opencv_createsamples to create training samples for object detection. I used the following command:
/opt/ros/fuerte/bin/opencv_createsamples -vec lab_object.vec -img symbol.jpg -bg bg_lab.txt -num 300 -maxidev 30 -maxxangle 0.2616 -maxyangle 0.2616 -maxzangle 3.1417 -w 24 -h 24 -show
The execution stopped with the following console output:
Info file name: (NULL)
Img file name: symbol.jpg
Vec file name: lab_object.vec
BG file name: bg_lab.txt
Num: 300
BG color: 0
BG threshold: 80
Invert: FALSE
Max intensity deviation: 30
Max x angle: 0.2616
Max y angle: 0.2616
Max z angle: 3.1417
Show samples: TRUE
Scale: 4
Width: 24
Height: 24
Create training samples from single image applying distortions...
*** glibc detected *** /opt/ros/fuerte/bin/opencv_createsamples: free(): corrupted unsorted chunks: 0x082229d8 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb6f1cee2]
/lib/i386-linux-gnu/libc.so.6(fclose+0x154)[0xb6f0c424]
/opt/ros/fuerte/bin/opencv_createsamples[0x804bf08]
/opt/ros/fuerte/bin/opencv_createsamples[0x804bfcb]
/opt/ros/fuerte/bin/opencv_createsamples(_Z23cvCreateTrainingSamplesPKcS0_iiS0_iiidddiii+0x119)[0x8054439]
/opt/ros/fuerte/bin/opencv_createsamples(main+0x839)[0x804b799]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb6ec04d3]
/opt/ros/fuerte/bin/opencv_createsamples[0x804bb71]
======= Memory map: ========
08048000-08076000 r-xp 00000000 08:05 2364138 /opt/ros/fuerte/bin/opencv_createsamples
08076000-08077000 r--p 0002e000 08:05 2364138 /opt/ros/fuerte/bin/opencv_createsamples
08077000-08078000 rw-p 0002f000 08:05 2364138 /opt/ros/fuerte/bin/opencv_createsamples
0821e000-082a7000 rw-p 00000000 00:00 0 [heap]
b4b79000-b4c7d000 rw-p 00000000 00:00 0
b4c7d000-b4c82000 r-xp 00000000 08:05 658641 /usr/lib/i386-linux-gnu/libXdmcp.so.6.0.0
b4c82000-b4c83000 r--p 00004000 08:05 658641 /usr/lib/i386-linux-gnu/libXdmcp.so.6.0.0
b4c83000-b4c84000 rw-p 00005000 08:05 658641 /usr/lib/i386-linux-gnu/libXdmcp.so.6.0.0
b4c84000-b4c86000 r-xp 00000000 08:05 658630 /usr/lib/i386-linux-gnu/libXau.so.6.0.0
b4c86000-b4c87000 r--p 00001000 08:05 658630 /usr/lib/i386-linux-gnu/libXau.so.6.0.0
b4c87000-b4c88000 rw-p 00002000 08:05 658630 /usr/lib/i386-linux-gnu/libXau.so.6.0.0
b4c88000-b4c89000 rw-p 00000000 00:00 0
b4c89000-b4d14000 r-xp 00000000 08:05 659042 /usr/lib/i386-linux-gnu/liborc-0.4.so.0.16.0
b4d14000-b4d15000 r--p 0008a000 08:05 659042 /usr/lib/i386-linux-gnu/liborc-0.4.so.0.16.0
b4d15000-b4d19000 rw-p 0008b000 08:05 659042 /usr/lib/i386-linux-gnu/liborc-0.4.so.0.16.0
b4d19000-b4d1f000 r-xp 00000000 08:05 659040 /usr/lib/i386-linux-gnu/libogg.so.0.7.1
b4d1f000-b4d20000 r--p 00005000 08:05 659040 /usr/lib/i386-linux-gnu/libogg.so.0.7.1
b4d20000-b4d21000 rw-p 00006000 08:05 659040 /usr/lib/i386-linux-gnu/libogg.so.0.7.1
b4d21000-b4d42000 r-xp 00000000 08:05 659194 /usr/lib/i386-linux-gnu/libv4lconvert.so.0
b4d42000-b4d43000 r--p 00021000 08:05 659194 /usr/lib/i386-linux-gnu/libv4lconvert.so.0
b4d43000-b4d44000 rw-p 00022000 08:05 659194 /usr/lib/i386-linux-gnu/libv4lconvert.so.0
b4d44000-b4d96000 rw-p 00000000 00:00 0
b4d96000-b4dbc000 r-xp 00000000 08:05 2617265 /lib/i386-linux-gnu/libexpat.so.1.5.2
b4dbc000-b4dbd000 ---p 00026000 08:05 2617265 /lib/i386-linux-gnu/libexpat.so.1.5.2
b4dbd000-b4dbf000 r--p 00026000 08:05 2617265 /lib/i386-linux-gnu/libexpat.so.1.5.2
b4dbf000-b4dc0000 ...