SIGSEGV after infinite recursion in __vfprintf_chk?
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Thu Feb 25 20:46:00 GMT 2010
Luca, All,
On Thursday 25 February 2010 18:48:22 Luca Ceresoli wrote:
> So I wrote a minimal C program and run it through CT-NG's gdb (which luckily
> does not segfault!), and it seems it infinitely recurses in
> __vfprintf_chk(). SIGSEGV comes immediately after.
Also, here is the purpose of __vfprintf_chk:
http://refspecs.freestandards.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/libc---vfprintf-chk-1.html
Basically, __vfprintf_chk is called in place of vfprintf. That's a linker
trick, where vfprintf is in fact an alias to __vfprintf_chk. Its purpose
is to check for stack overflow (I don't dare look at how it does so).
The gst-doc package has had the same issue, and they fixed their code:
https://bugs.launchpad.net/ubuntu/+source/gnu-smalltalk/+bug/410263
BTW, please also provide your build.log file.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
`------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list