wp,i am sorry for the delayed answer(I had an accident, from which i now try to recover).
Indeed in the example, above, the reason for the sigsegv there lies in the wrong setlenght of the arrays ,and that is not what i was aiming to demonstrate
i wil come back when i am in a better mood
frederic