Greetings:

> Hi,
>   I'm getting a floating point exception when I run the mp4enc algorithm.
A back trace of the core
> dump shows:
>
> Program terminated with signal 8, Arithmetic exception.
> #0  0x403e631c in raise () from /lib/libpthread.so.0
> (gdb) bt
> #0  0x403e631c in raise () from /lib/libpthread.so.0
> #1  0x000cc4ec in __aeabi_ldiv0 ()
> #2  0x000938dc in MP4VENC_TI_DM350_SequenceReset ()
> #3  0x000238c0 in Get_Avi_Streams_Info ()
> #4  0x00000000 in ?? ()

Hmm, we've seen this on DM644x from libsmbclient,
and from our experience it's not really a floating point exception.

In fact, when we ran it in different scenarios, sometimes we would just
segfault,
other times we would get an exception backtrace of almost exactly what you
describe.

I even went as far as putting dummy arithmetic operations in and I would
sometimes
segfault on something silly like 'a = 20.0f / 2.0f'.

The fact that it is an EABI call kind of points toward an incompatible
kernel build
or something like a function pointer that wasn't initialized and caused the
code
to jump into space.

I can't say for certain, but for libsmbclient, our problems went away
when we statically linked the library and only had one thread using
it exclusively, so it was leaning toward the latter of the cases.

Maybe you can try running the codec in a simple 'main()' program without
the
threading libraries linked? If it works as expected, then maybe you're
looking
at a race condition or thread local storage  and/or thread stack problems.

Hope that helps out a little bit,
David

--

DAVID A. KONDRAD
Software Design Engineer
Legrand Home Systems Division
http://www.legrand.us/onq

This email, and any document attached hereto, may contain
confidential and/or privileged information.  If you are not the
intended recipient (or have received this email in error) please
notify the sender immediately and destroy this email.  Any
unauthorized, direct or indirect, copying, disclosure, distribution
or other use of the material or parts thereof is strictly
forbidden.
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to