Skip to content
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

AMD Segmentation fault #7

Open
powturns opened this issue Apr 11, 2023 · 1 comment
Open

AMD Segmentation fault #7

powturns opened this issue Apr 11, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@powturns
Copy link

On AMD, while processing a particularly large dataset, I'm experiencing a segfault during the edge collapse phase. This doesn't appear to occur on intel.

Eg:

./dem2mesh -inputFile mesh_dsm.tif -outputFile odm_25dmesh.dirty.ply -maxTileLength 2000 -maxVertexCount 200000 -edgeSwapThreshold 0.15 -verbose

... snip ...

iteration 90 - triangles 5391543 threshold 6.95688
iteration 95 - triangles 4981377 threshold 9.03921
Performing edge collapses...
[1]    438838 segmentation fault (core dumped)  ./dem2mesh -inputFile mesh_dsm.tif -outputFile odm_25dmesh.dirty.ply  2000  

I'm experiencing this crash when using opendronemap/nodeodm image as well as building dem2mesh manually.

lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  32
  On-line CPU(s) list:   0-31
Vendor ID:               AuthenticAMD
  Model name:            AMD Ryzen 9 7950X 16-Core Processor
    CPU family:          25
    Model:               97
    Thread(s) per core:  2
    Core(s) per socket:  16
    Socket(s):           1
    Stepping:            2
    Frequency boost:     enabled
    CPU(s) scaling MHz:  52%
    CPU max MHz:         5879.8818
    CPU min MHz:         3000.0000
    BogoMIPS:            8983.39
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe
                         1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 s
                         se4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch os
                         vw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba perfmon_v2 ibrs 
                         ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb a
                         vx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local avx512_bf16 clzero
                          irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter p
                         fthreshold avic v_vmsave_vmload vgif v_spec_ctrl avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bita
                         lg avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d
Virtualization features: 
  Virtualization:        AMD-V
Caches (sum of all):     
  L1d:                   512 KiB (16 instances)
  L1i:                   512 KiB (16 instances)
  L2:                    16 MiB (16 instances)
  L3:                    64 MiB (2 instances)
NUMA:                    
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-31
@powturns
Copy link
Author

Core dump info:

warning: Section `.reg-xstate/457825' in core file too small.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `./dem2mesh -inputFile mesh_dsm.tif -outputFile odm_25dmesh.dirty.ply -maxTileLe'.
Program terminated with signal SIGSEGV, Segmentation fault.
warning: Section `.reg-xstate/457825' in core file too small.
#0  0x000055bbd086d5f8 in Vertex::VT() const ()
[Current thread is 1 (Thread 0x7f28f91a3640 (LWP 457825))]

@pierotofy pierotofy added bug Something isn't working help wanted Extra attention is needed labels Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants