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

fix unitialized usage issues - part 1 #37

Merged

Conversation

jeffhammond
Copy link
Member

@jeffhammond jeffhammond commented Feb 28, 2022

the alloc_nproc issue causes the following error, which is now fixed.

jehammond@Jeffs-NVIDIA-MacBook-Air build % mpirun -n 2 ./tests/test_malloc
Starting ARMCI memory allocation test with 2 processes
 + allocation 0
 + allocation 1
 + allocation 2
 + allocation 3
 + allocation 4
 + allocation 5
 + allocation 6
 + allocation 7
 + allocation 8
 + allocation 9
 + allocation 10
 + allocation 11
 + allocation 12
 + allocation 13
 + allocation 14
 + allocation 15
 + allocation 16
 + allocation 17
 + allocation 18
 + allocation 19
 + allocation 20
 + allocation 21
 + allocation 22
 + allocation 23
 + allocation 24
 + allocation 25
 + allocation 26
 + allocation 27
 + allocation 28
 + allocation 29
 + allocation 30
 + allocation 31
 + allocation 32
 + allocation 33
 + allocation 34
 + allocation 35
 + allocation 36
 + allocation 37
 + allocation 38
 + allocation 39
 + allocation 40
 + allocation 41
 + allocation 42
 + allocation 43
 + allocation 44
 + allocation 45
 + allocation 46
 + allocation 47
 + allocation 48
 + allocation 49
 + allocation 50
 + allocation 51
 + allocation 52
 + allocation 53
 + allocation 54
 + allocation 55
 + allocation 56
 + allocation 57
 + allocation 58
 + allocation 59
 + allocation 60
 + allocation 61
 + allocation 62
 + allocation 63
 + allocation 64
 + allocation 65
 + allocation 66
 + allocation 67
 + allocation 68
 + allocation 69
 + allocation 70
 + allocation 71
 + allocation 72
 + allocation 73
 + allocation 74
 + allocation 75
 + allocation 76
 + allocation 77
 + allocation 78
 + allocation 79
 + allocation 80
 + allocation 81
 + allocation 82
 + allocation 83
 + allocation 84
 + allocation 85
 + allocation 86
 + allocation 87
 + allocation 88
 + allocation 89
 + allocation 90
 + allocation 91
 + allocation 92
 + allocation 93
 + allocation 94
 + allocation 95
 + allocation 96
 + allocation 97
 + allocation 98
 + allocation 99
 + free 0
[0] ARMCI assert fail in ARMCI_Free_group() [../src/malloc.c:102]: "mreg != NULL"
[0] Message: "Invalid shared pointer"
[1] ARMCI assert fail in ARMCI_Free_group() [../src/malloc.c:102]: "mreg != NULL"
[1] Message: "Invalid shared pointer"
[0] Backtrace:
[0]   5 - 0   test_malloc                         0x000000010429ed5c ARMCII_Assert_fail + 304
[0]   4 - 1   test_malloc                         0x00000001042a017c ARMCI_Free_group + 116
[0]   3 - 2   test_malloc                         0x00000001042a00fc PARMCI_Free + 32
[0]   2 - 3   test_malloc                         0x00000001042ace64 ARMCI_Free + 24
[0]   1 - 4   test_malloc                         0x000000010429dd18 main + 400
[0]   0 - 5   libdyld.dylib                       0x0000000190875430 start + 4
[1] Backtrace:
[1]   5 - 0   test_malloc                         0x0000000102cb6d5c ARMCII_Assert_fail + 304
[1]   4 - 1   test_malloc                         0x0000000102cb817c ARMCI_Free_group + 116
[1]   3 - 2   test_malloc                         0x0000000102cb80fc PARMCI_Free + 32
[1]   2 - 3   test_malloc                         0x0000000102cc4e64 ARMCI_Free + 24
[1]   1 - 4   test_malloc                         0x0000000102cb5d18 main + 400
[1]   0 - 5   libdyld.dylib                       0x0000000190875430 start + 4
Abort(-1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -1) - process 0
Abort(-1) on node 1 (rank 1 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -1) - process 1

@jeffhammond jeffhammond merged commit 4ebcae0 into pmodels:master Feb 28, 2022
@jeffhammond jeffhammond deleted the unused_fix_gmr_create_unified branch February 28, 2022 11:21
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

Successfully merging this pull request may close these issues.

1 participant