Hi all, 

        i have 1 problem while using rte_malloc

        Every time I use this function and use the memory it returns, it shows 
segmentation fault(core dump)

        Is something wrong?

        thanks.


        rte init …
        ………...
        unsigned char *str1;
        printf("str1 addr = %x\n", str1);
        str1 = rte_malloc(NULL,2,RTE_CACHE_LINE_SIZE);
        printf("str1 addr = %x\n", str1);
        str1[0] = 'a’; //segmentation fault here
        str1[1] = '\0';

Reply via email to