- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I'm not 100% sure this is where the problem lies, but it seems that way. I'm trying to implement a 2-sided communication library using teams and co_broadcast, but I get a segfault in a weird place.
The example can be found here: https://gitlab.com/everythingfunctional/communicator
but running it I get:
```
$ fpm run --example --compiler ifx --profile debug --flag -coarray (main)
communicator.f90 done.
libcommunicator.a done.
hello_world.f90 done.
hello_world done.
[100%] Project compiled successfully.
On image 4 received: Hello, from image 4
forrtl: severe (174): SIGSEGV, segmentation fault occurred
In coarray image 3
Image PC Routine Line Source
libc.so.6 00007F97DC362AB0 Unknown Unknown Unknown
libc.so.6 00007F97DC47FB62 Unknown Unknown Unknown
hello_world 0000000000405F8E hello_world 19 hello_world.f90
hello_world 000000000040533D Unknown Unknown Unknown
libc.so.6 00007F97DC34C850 Unknown Unknown Unknown
libc.so.6 00007F97DC34C90A __libc_start_main Unknown Unknown
hello_world 0000000000405255 Unknown Unknown Unknown
```
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
The issue you reported using coarrays is fixed in the 2024.1 release of ifx and ifort. It was made available last week.
Please try it out!
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Please attach your reproducer here. I'm not sure how to use what's on your GitLab site or what fpm is.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
fpm is the Fortran Package Manger. It's a build and dependency management system (https://fpm.fortran-lang.org/). But at any rate, the example's not so complicated to do manually.
$ ifx -c -coarray communicator.f90 -o communicator.o $ ifx -c -coarray hello_world.f90 -o hello_world.o $ ifx -coarray communicator.o hello_world.o -o hello_world $ ./hello_world On image 4 received: Hello, from image 4
forrtl: severe (174): SIGSEGV, segmentation fault occurred
In coarray image 3
Image PC Routine Line Source
libc.so.6 00007F1B9813BAB0 Unknown Unknown Unknown
libc.so.6 00007F1B98258B62 Unknown Unknown Unknown
hello_world 00000000004061F4 Unknown Unknown Unknown
hello_world 000000000040531D Unknown Unknown Unknown
libc.so.6 00007F1B98125850 Unknown Unknown Unknown
libc.so.6 00007F1B9812590A __libc_start_main Unknown Unknown
hello_world 0000000000405235 Unknown Unknown Unknown
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
With that simple reproducer, I am able to reproduce the issue. I filed a bug report, CMPLRLLVM-49827. I'll post here when there's a fix.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
The issue you reported using coarrays is fixed in the 2024.1 release of ifx and ifort. It was made available last week.
Please try it out!
