-
Notifications
You must be signed in to change notification settings - Fork 33
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
Tests crash on Strawberry Perl 5.38 #92
Comments
Yes. I think the 5.32.1 build produces the same warnings as the 5.38.0 build - but I haven't checked on that properly. So, I guess that if you want to run Tk-804.036 on Strawberry Perl, then one workaround is to use Strawberry Perl 5.32.1. Cheers, |
I would suggest putting |
I am not familiar with the proper way to get debugging symbols for the Strawberry Perl build environment, so I run
In this example crash, perl-tk/pTk/mTk/generic/tkBitmap.c Lines 410 to 413 in 71fb7bb
RootWindowOfScreen() had retrieved the .root member of a Screen :perl-tk/pTk/mTk/xlib/X11/Xlib.h Line 115 in 71fb7bb
but .root is defined as type Window a.k.a. XID :perl-tk/pTk/mTk/xlib/X11/Xlib.h Line 236 in 71fb7bb
Line 49 in 71fb7bb
|
@chrstphrchvz, thanks so much for this information. Your suggestion to use unsigned long long for XID has fixed the problem. All the Tk tests pass now. Thanks also for the debugging tips. I was trying to figure out the best way to add debugging information to the Tk build but your solution is perfect. Your documentation of the gdb session is very helpful, but honestly I hope I don't need it in the future! |
Nice work @chrstphrchvz. Cheers, |
I manually built Tk-804.036 in an MSYS2 environment using Strawberry Perl SP 5.38.0.1-64bit-portable on a Windows 10 Enterprise v21H2 machine. The tests in the PNG directory fail:
The actual failure is a segfault that is reproducible in gdb. This is not a debug build so the stack trace doesn't tell me much:
I submitted an issue to the Strawberry Perl tracker (StrawberryPerl/Perl-Dist-Strawberry#122) and it was suggested to submit an issue to this tracker as well. One of the suggestions was pointer incompatibilities, and in the build output I see around 150 occurrences of "warning: cast from pointer to integer of different size" (I can post the full build output if that would be helpful). For example,
Has anyone else encountered this? Is there a workaround or patch available to fix it?
The text was updated successfully, but these errors were encountered: