gdb_dubug

survey@SURVEY-C11:~/WORK/ESKA/ESCA_YXz/bin_pcd$ gdb pcl_convert_pcd_ascii_binary
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type “show copying”
and “show warranty” for details.
This GDB was configured as “x86_64-linux-gnu”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from pcl_convert_pcd_ascii_binary…done.
(gdb) run output.pcd output_lzh.pcd 2
Starting program: /usr/local/bin/pcl_convert_pcd_ascii_binary output.pcd output_lzh.pcd 2
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/x86_64-linux-gnu/libthread_db.so.1″.
Loaded a point cloud with 707404057 points (total size is 2728530320) and the following channels: x y z rgb
Saving file output_lzh.pcd as binary_compressed.
data_size=11318464912 in pcd_io.cpp 1570
only_valid_data=
only_valid_data= in pcd_io.cpp 1580

pcd_io.cpp 1604 ok
temp_buf=  1615
before error
only_valid_data=
only_valid_data : 0x2aab5433d010
*** Error in `/usr/local/bin/pcl_convert_pcd_ascii_binary’: free(): invalid pointer: 0x00002aab5433d010 ***

Program received signal SIGABRT, Aborted.
0x00002aaaab791267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00002aaaab791267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#1  0x00002aaaab792eca in __GI_abort () at abort.c:89
#2  0x00002aaaab7d4c53 in __libc_message (do_abort=1, fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:175
#3  0x00002aaaab7dc1da in malloc_printerr (ptr=<optimized out>, str=<optimized out>, action=<optimized out>) at malloc.c:4965
#4  free_check (mem=0x2141, caller=0x2141) at hooks.c:298
#5  0x00002aaaab7e0947 in __GI___libc_free (mem=<optimized out>) at malloc.c:2924
#6  0x00002aaaaaf682dd in pcl::PCDWriter::writeBinaryCompressed (this=this@entry=0x7fffffffd810, file_name=”output_lzh.pcd”, cloud=…, origin=…,
orientation=…) at /home/survey/applications/pcl-trunk/io/src/pcd_io.cpp:1720
#7  0x00000000004058c8 in main (argc=4, argv=0x7fffffffd9a8) at /home/survey/applications/pcl-trunk/io/tools/convert_pcd_ascii_binary.cpp:91
(gdb) frame 6
#6  0x00002aaaaaf682dd in pcl::PCDWriter::writeBinaryCompressed (this=this@entry=0x7fffffffd810, file_name=”output_lzh.pcd”, cloud=…, origin=…,
orientation=…) at /home/survey/applications/pcl-trunk/io/src/pcd_io.cpp:1720
1720                delete[]only_valid_data;