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

PDL::all segfaults under Strawberry perl 5.36 current dev version #432

Closed
shawnlaffan opened this issue Apr 25, 2023 · 5 comments
Closed

Comments

@shawnlaffan
Copy link
Contributor

More details in StrawberryPerl/Perl-Dist-Strawberry#93
Link to the perl used is https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/tag/dev_20230420

The segfault manifests in the niceslice tests but can be reduced to the all call. I have not tested other utilities.

The issue spans 2.079 to 2.082.

gdb perl
(gdb) set args -Mblib -MPDL -E"my $p = pdl [6,6]; say all $p == 6;"
(gdb) run
Starting program: C:\strawberry\perl\bin\perl.exe -Mblib -MPDL -E"my $p = pdl [6,6]; say all $p == 6;"
[New Thread 25772.0x8778]
[New Thread 25772.0x7d98]
[New Thread 25772.0x65f0]

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff8c880927b in boot_PDL__Core ()
   from C:\STRAWB~2\data\.cpanm\work\1681992025.28280\PDL-2.082\blib\arch\auto\PDL\Core\Core.xs.dll
@mohawk2
Copy link
Member

mohawk2 commented Apr 25, 2023

As noted on StrawberryPerl/Perl-Dist-Strawberry#93, I need more information than this, especially a stack-trace and line-number.

And if it's being reported as caused in the boot, are you sure it's even caused by all?

@shawnlaffan
Copy link
Contributor Author

shawnlaffan commented Apr 25, 2023

Will rebuild freeglut PDL and report back.

As for all, that is just where it first manifests in the tests. I would not be surprised that other subs are similarly affected.

@HaraldJoerg
Copy link
Contributor

There is a workaround @mohawk2 and I discussed in IRC:
Compiling one single file Basic/Core/pdlapi.c without optimization gets rid of the SIGSEGV. Of this SIGSEGV, to be precise ;-)

@mohawk2
Copy link
Member

mohawk2 commented Apr 26, 2023

Since this isn't a PDL bug per se, can we keep discussion on StrawberryPerl/Perl-Dist-Strawberry#93 ? Also, @shawnlaffan if you agree, you could close this?

@shawnlaffan
Copy link
Contributor Author

I'll close this so discussion is in one place. We can always re-open if the best option turns out to be patching one file in PDL (and that might be a very large "if").

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

3 participants