On Ubuntu 11.04, compiling software from source and then running it sometimes results in a stack overflow of repeated calls to sincos() before the app even starts. Sometimes I can work around this issue by defining my own version of sincos(). Sometimes this does not work.
Is anyone else encountering this and is there a solution?
Edit:
The code is non-trivial. I don’t have access to the Ubuntu 11.04 machine at the moment either. This problem drives me nuts, was hoping it was a known issue.
@sehe: I am not sure, but this could be possible.
There’s a reported gcc bug related to
sincos:http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46926
Can you change the name to, for example,
sin_cos?