Subject: | Possible segfault/memory corruption |
Hard to pin down specifics but a test case in my new Device-Chip-CC1101 driver:
$ perl -Mblib cc1101.pl
D1
D2
corrupted double-linked list
Aborted
leo@shy:~/src/perl/Device-Chip-CC1101
$ perl -Mblib cc1101.pl
D1
D2
corrupted double-linked list
Aborted
leo@shy:~/src/perl/Device-Chip-CC1101
$ perl -Mblib cc1101.pl
D1
malloc(): unsorted double linked list corrupted
Aborted
leo@shy:~/src/perl/Device-Chip-CC1101
$ perl -Mblib cc1101.pl
D1
D2
Register 0x00: value=29
Register 0x01: value=2E
Register 0x02: value=3F
...
(runs fine)
D1 and D2 are prints to STDERR either side of a $chip->change_config call on an SPI adapter running via Device::BusPirate.
--
Paul Evans