Bug#289884: bug cause found (not fixed by now)

Marc Pignat marc at pignat.org
Fri May 21 09:27:04 UTC 2010


Hi all!

I have found the problem: alignment!

I have tried your md5.pl test on an arm machine:

pooky:/tmp# perl md5.pl 
1..14
ok 1
ok 2
ok 4
not ok 10
not ok 11

fails test 10 and 11, but when asked to fix alignment, the test performs well!

pooky:/tmp# echo 2 > /proc/cpu/alignment 
pooky:/tmp# perl md5.pl 
1..14
ok 1
ok 2
ok 4
ok 10
ok 11



Now the same, inside gdb and alignment set to 'signal+warn'

pooky:/tmp# gdb /usr/bin/perl
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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 "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/perl...Reading symbols from /usr/lib/debug/usr/bin/perl...done.
(no debugging symbols found)...done.
(gdb) run /tmp/md5.pl 
Starting program: /usr/bin/perl /tmp/md5.pl
[Thread debugging using libthread_db enabled]
1..14
ok 1
ok 2
ok 4

Program received signal SIGBUS, Bus error.
MD5Transform (ctx=<value optimized out>, buf=0x659ca "(It may become useful if the test is moved to ./t subdirectory.)\n", blocks=1) at MD5.xs:289
289     MD5.xs: No such file or directory.
        in MD5.xs
(gdb) 







More information about the Perl-maintainers mailing list