I have perl 5.14.2 and libsdl-perl 2.540-1 installed.
Here's the gdb session:
gdb /usr/bin/perl core
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /usr/bin/perl...(no debugging symbols found)...done.
warning: core file may not match specified executable file.
[New LWP 32317]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/perl ./yup_change.pl'.
Program terminated with signal 11, Segmentation fault.
#0 0xb697a315 in XS_SDL__Surface_set_pixels ()