Skip to content

stack smashing #10

@JINXER000

Description

@JINXER000

Hi, I am running into this problem when constructing cuttPlan:

cuttPlan(&m_rot_plan[0], 3, dim_0, permu_0, sizeof(int), nullptr);

and I also used vigrind to test it. The relevant msg is:
`==8915== Process terminating with default action of signal 6 (SIGABRT)
==8915== at 0x69D9FB7: raise (raise.c:51)
==8915== by 0x69DB920: abort (abort.c:79)
==8915== by 0x6A24966: __libc_message (libc_fatal.c:181)
==8915== by 0x6ACFB60: __fortify_fail_abort (fortify_fail.c:33)
==8915== by 0x6ACFB21: __stack_chk_fail (stack_chk_fail.c:29)
==8915== by 0x21B386: cuttPlan(unsigned int*, int, int*, int*, unsigned long, CUstream_st*) (in /home/joseph/yzchen_ws/UAV/cpc_ws/devel/lib/cpc_aux_mapping/cpc_aux_mapping_node)
==8915== by 0x18C140: AuxMapper::AuxMapper() (aux_mapper.cpp:67)
==8915== by 0x184201: main (aux_mapping_node.cpp:7)
==8915==
==8915== HEAP SUMMARY:
==8915== in use at exit: 15,351,186 bytes in 16,317 blocks
==8915== total heap usage: 23,410 allocs, 7,093 frees, 62,269,008 bytes allocated

==8915== 104 bytes in 1 blocks are possibly lost in loss record 1,715 of 3,065
==8915== at 0x4C33B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8915== by 0xE4B53C2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.460.73.01)
==8915== by 0xE4B5B90: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.460.73.01)
==8915== by 0xE4B6690: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.460.73.01)
==8915== by 0xE3520E4: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.460.73.01)
==8915== by 0xE40C1B6: cuMemAlloc_v2 (in /usr/lib/x86_64-linux-gnu/libcuda.so.460.73.01)
==8915== by 0x1E9CAD: __cudart602 (in /home/joseph/yzchen_ws/UAV/cpc_ws/devel/lib/cpc_aux_mapping/cpc_aux_mapping_node)
==8915== by 0x1BFFAA: __cudart607 (in /home/joseph/yzchen_ws/UAV/cpc_ws/devel/lib/cpc_aux_mapping/cpc_aux_mapping_node)
==8915== by 0x1F577A: cudaMalloc (in /home/joseph/yzchen_ws/UAV/cpc_ws/devel/lib/cpc_aux_mapping/cpc_aux_mapping_node)
==8915== by 0x23BA69: allocate_device_T(void**, unsigned long, unsigned long) (in /home/joseph/yzchen_ws/UAV/cpc_ws/devel/lib/cpc_aux_mapping/cpc_aux_mapping_node)
==8915== by 0x21C430: cuttPlan_t::activate() (in /home/joseph/yzchen_ws/UAV/cpc_ws/devel/lib/cpc_aux_mapping/cpc_aux_mapping_node)
==8915== by 0x21B204: cuttPlan(unsigned int*, int, int*, int*, unsigned long, CUstream_st*) (in /home/joseph/yzchen_ws/UAV/cpc_ws/devel/lib/cpc_aux_mapping/cpc_aux_mapping_node)
==8915== by 0x18C140: AuxMapper::AuxMapper() (aux_mapper.cpp:67)
==8915== by 0x184201: main (aux_mapping_node.cpp:7)

`
Anyone has similar problems?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions