[etherlab-users] "Invalid mailbox configuration", how to configure?

Florian Pose fp at igh-essen.com
Mon Mar 17 15:26:40 CET 2008


On Mon, Mar 17, 2008 at 12:39:44PM +0100, Stefan Löfgren wrote:
> More info on that seg-fault:
> 
> The number of SMs seems to be ok.
> The segmentation fault is in here somewhere (I don't know exactly where yet):
> 
> Row 833-848 (approx. in file "master/slave.c")
> 
>             list_for_each_entry(pdo, &sync->mapping.pdos, list) {
>                 buf += sprintf(buf, "    %s 0x%04X \"%s\"\n",
>                         pdo->dir == EC_DIR_OUTPUT ? "RxPdo" : "TxPdo",
>                         pdo->index, pdo->name ? pdo->name : "???");
> 
>                 list_for_each_entry(pdo_entry, &pdo->entries, list) {
>                     buf += sprintf(buf,
>                             "      0x%04X:%X \"%s\", %u bit\n",
>                             pdo_entry->index, pdo_entry->subindex,
>                             pdo_entry->name ? pdo_entry->name : "???",
>                             pdo_entry->bit_length);

Oh, I can see the reason. The internal sync manager structure is not
a flat one. I should have made a deep copy... ;-)

Sorry for the inconvenience. This one should fix the bug:

http://etherlab.org/download/ethercat-1.4.0-pre-trunk-r1088.tar.bz2

Could you please have another try?

-- 
Best regards,
Florian Pose

http://etherlab.org



More information about the Etherlab-users mailing list