Skip to content

double free or corruption (out),Aborted (core dumped) #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1329938644 opened this issue Mar 27, 2025 · 2 comments
Open

double free or corruption (out),Aborted (core dumped) #20

1329938644 opened this issue Mar 27, 2025 · 2 comments

Comments

@1329938644
Copy link

Hello, I have successfully installed key libraries such as PCL 1.10 and GTSAM-4.2a9, and the compilation passed. However, when running the program, I keep encountering the following error:

double free or corruption (out)
Aborted (core dumped)

What could be the reason for this?

@qiaozhijian
Copy link
Member

Could you print some messages in your code and find where this error occur?

@1329938644
Copy link
Author

Could you print some messages in your code and find where this error occur?

Issue Report: Heap-buffer-overflow in sphericalProjection() with Apollo Dataset

Environment Details

  • OS: Ubuntu 18.04
  • PCL Version: 1.10.0 (compiled from source)
  • GTSAM Version: 4.2a9 (commit 4f66a491)
  • Compiler: GCC 8.4.0
  • Build Flags:
    -DGTSAM_DIR=/usr/local/gtsam-fixed/lib/cmake/GTSAM \
    -DPCL_DIR=/usr/local/pcl-1.10/share/pcl-1.10 \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DCMAKE_CXX_FLAGS="-DEIGEN_MAX_ALIGN_BYTES=64 -fsanitize=address"
    

When processing Apollo dataset with Velodyne64 configuration:
./bin/demo_seg configs/apollo_lc_bm/gem_pagor.yaml examples/data/velodyne/source.pcd
AddressSanitizer reports:
==7530==ERROR: AddressSanitizer: heap-buffer-overflow
READ of size 4 at 0x611000034800 (256-byte region ends at 0x611000034800)
Call Stack:
#0 in travel::ObjectClusterpcl::PointXYZ::sphericalProjection()
#1 in travel::Clusterpcl::PointXYZ()
#2 in g3reg::PLCExtractor::ExtractFeature()
HIT Dataset configs/hit_ms/gem_pagor.yaml ✅ Works
Apollo Dataset configs/apollo_lc_bm/gem_pagor.yaml ❌ Fails
Debugging Attempts:
1、Verified input PCD files are valid using pcl_viewer

2、Confirmed no mixed library versions via:
ldd ./bin/demo_seg | grep -E 'pcl|gtsam'
3、Checked memory initialization in related classes

Error Context
Occurs during spherical projection of Velodyne64 point cloud
Full error log shows memory was allocated at:
0x611000034700-0x611000034800 (256 bytes)
Shadow memory indicates overflow at end of this region
Could you help identify:
Why this occurs specifically with Apollo+Velodyne64 configuration?
Whether this is a configuration issue or code bug in sphericalProjection()?
Recommended fixes for the memory boundary issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants