This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIGSEGV after infinite recursion in __vfprintf_chk?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]