[arm-gnu] Application crashes in vsprintf . build with arm-none-linux-gnueabi

Kalpesh Bafna kalpesh.bafna at einfochips.com
Fri Jun 8 07:01:56 UTC 2012


Hi Wesołowski,

Thanks for the reply.

I am able to solve the crash. I just increased the stack size of that thread 
(thread created using ptherad_create) while compiling with -O2 option.

It was working with  -O1 without increasing the stack size.

Regards,
Kalpesh B.


----- Original Message ----- 
From: "Krzysztof Wesołowski" <krzysztof.wesolowski at rainlabs.pl>
To: "Ricardo Anguiano" <ricardo_anguiano at mentor.com>
Cc: "Kalpesh Bafna" <kalpesh.bafna at einfochips.com>; 
<arm-gnu at codesourcery.com>
Sent: Wednesday, May 30, 2012 12:10 AM
Subject: Re: [arm-gnu] Application crashes in vsprintf . build with 
arm-none-linux-gnueabi


Reporting bugs without event checking what "crash" means? Usually
compiler bug is not the first thing too look at ;)

First check if nothing more obvious happens, for example different
optimization levels use different amount of stack space.

Regards,
Krzysztof Wesołowski,
tel. +48 721 337 238


On Tue, May 29, 2012 at 8:24 PM, Ricardo Anguiano
<ricardo_anguiano at mentor.com> wrote:
> Kalpesh Bafna <kalpesh.bafna at einfochips.com> writes:
>> I am using arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q1-203)
>> 4.3.3 compiler to build the application.
>
> Sourcerh G++ was rebranded to Sourcery CodeBench. The most recent
> Sourcery CodeBench Lite ARM GNU/Linux release (2011.09-70) is two years
> newer than what you are using. You can register and download the newest
> version here:
>
> http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/
>
>> When i build the application with -O2 optimization it crashes in
>> vsprintf. But when i build with -O1 it does not crashes. Does
>> anybody have idea on this?
>
> Sourcery CodeBench Lite is unsupported but someone on this list maybe
> able to help if you submit a more detailed bug report. You may find
> these pages helpful in generating such a report to this list.
>
> https://sourcery.mentor.com/GNUToolchain/kbentry216
> http://gcc.gnu.org/bugs/
>
> Thanks,
> --
> Ricardo Anguiano
> Mentor Graphics
> +1-510-354-6774
> _______________________________________________
> arm-gnu mailing list
> arm-gnu at codesourcery.com
> http://sourcerytools.com/cgi-bin/mailman/listinfo/arm-gnu
*************************************************************************************************************************************************************
einfochips Business Disclaimer : This e-mail message and all attachments 
transmitted with it are intended solely for the use of the addressee and may 
contain legally privileged and confidential information. If the reader of 
this message is not the intended recipient, or an employee or agent 
responsible for delivering this message to the intended recipient, you are 
hereby notified that any dissemination, distribution, copying, or other use 
of this message or its attachments is strictly prohibited. If you have 
received this message in error, please notify the sender immediately by 
replying to this message and please delete it from your computer. Any views 
expressed in this message are those of the individual sender unless 
otherwise stated. Company has taken enough precautions to prevent the spread 
of viruses. However the company accepts no liability for any damage caused 
by any virus transmitted by this email.
*************************************************************************************************************************************************************




More information about the arm-gnu mailing list