[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Segfault from call through a function pointer in assert_int_equal()


Hi Lukas,
I'm 5 minutes away from heading out for a week of vacation (and trying to get somethings worked out before I leave.)

I can take a look at that when I return. It should be pretty easy.

Thanks,
hank

-----Original Message-----
From: Lukas Slebodnik [mailto:lslebodn@xxxxxxxxxx]
Sent: Friday, October 14, 2016 1:49 PM
To: Barta, Hank <hank.barta@xxxxxxxxx>
Cc: cmocka@xxxxxxxxxxxxxx
Subject: Re: Segfault from call through a function pointer in assert_int_equal()

On (14/10/16 15:56), Barta, Hank wrote:
>Hi all,
>I find I get a segfault in the following code:
>    assert_int_equal(0, run_fft(dbl_data, cplx_result, sample_count));
Does it help if you call it with explicit dereferencing?
"(*run_fft)(dbl_data, cplx_result, sample_count)"

Did you try write a minimal reproducer with ANSI C?

LS
________________________________
NOTICE OF CONFIDENTIALITY:
This message may contain information that is considered confidential and which may be prohibited from disclosure under applicable law or by contractual agreement. The information is intended solely for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the information contained in or attached to this message is strictly prohibited. If you have received this email transmission in error, please notify the sender by replying to this email and then delete it from your system.