Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - ldrel -S on QNX 6.5.0 causes crash: (11 Items)
   
ldrel -S on QNX 6.5.0 causes crash  
When ldrel is invoked when I specify a stack size, my application won't start.  It crashes.

Using 6.5 Momentics  installation.  

I had this issue with 6.3.2 when I was updating compilers.  I reinstalled bin utils (2.18 at the time) as well as QNX 
and the compiler I was using, and it fixed it that time.  But this time I'm using a fresh QNX 6.5 install.

Any ideas?

Thanks
Kevin
Re: ldrel -S on QNX 6.5.0 causes crash  
On 11-02-28 08:09 AM, Kevin Stallard wrote:
> When ldrel is invoked when I specify a stack size, my application won't
> start. It crashes.
>
> Using 6.5 Momentics installation.
>
> I had this issue with 6.3.2 when I was updating compilers. I reinstalled
> bin utils (2.18 at the time) as well as QNX and the compiler I was
> using, and it fixed it that time. But this time I'm using a fresh QNX
> 6.5 install.
>
> Any ideas?

Is the binary you're ldrel'ing built with the 6.5.0 toolchain or is this 
an older binary? What options to ldrel are you specifying?

Regards,

Ryan Mansfield
Re: ldrel -S on QNX 6.5.0 causes crash  
Yes, it's with the 6.5.0 tool chain.  I'm using the stack size entry on the linker tab.  If I add -vv as other options I
 see:

C:/QNX650/host/win32/x86/usr/bin/ldrel -L -S 8192 C:\DOCUME~1\Kevin\LOCALS~1\Temp\1\2qccuzCF29\tmp_qcc_6904 C:/home/
Kevin/Projects/ACS/StackTest/x86/o-g/StackTest_g
Re: ldrel -S on QNX 6.5.0 causes crash  
Ldd will need more than 8k
Sent from my BB 

----- Original Message -----
From: Kevin Stallard [mailto:community-noreply@qnx.com]
Sent: Monday, February 28, 2011 10:47 AM
To: general-toolchain <post83577@community.qnx.com>
Subject: Re: ldrel -S on QNX 6.5.0 causes crash

Yes, it's with the 6.5.0 tool chain.  I'm using the stack size entry on the linker tab.  If I add -vv as other options I
 see:

C:/QNX650/host/win32/x86/usr/bin/ldrel -L -S 8192 C:\DOCUME~1\Kevin\LOCALS~1\Temp\1\2qccuzCF29\tmp_qcc_6904 C:/home/
Kevin/Projects/ACS/StackTest/x86/o-g/StackTest_g



_______________________________________________

General
http://community.qnx.com/sf/go/post83577
Re: ldrel -S on QNX 6.5.0 causes crash  
Really?  I thought the default stack size was something along the order 4k.  I just tried 16k with no go...but 32K seems
 to work.

Wow...I thought 8k was getting kind of big for a stack size?   Can you point me to some reading on this subject?  When I
 was using 6.3.2, a 4k stack size was fine (or at least that is my recollection).

Thanks
Kevin
Re: ldrel -S on QNX 6.5.0 causes crash  
On 11-02-28 10:53 AM, Kevin Stallard wrote:
> Really? I thought the default stack size was something along the order
> 4k. I just tried 16k with no go...but 32K seems to work.

The default stack size is 512k for all archs except for arm where its 128k.

Regards,

Ryan Mansfield
Re: ldrel -S on QNX 6.5.0 causes crash  
Wow. I had no idea.  I wonder where i've been in the last few years....and I thought I was pushing it by asking for 16k.
  

Thanks for the heads up.

Kevin
  

Re: ldrel -S on QNX 6.5.0 causes crash  
On 11-02-28 10:57 AM, Kevin Stallard wrote:
> Wow. I had no idea. I wonder where i've been in the last few
> years....and I thought I was pushing it by asking for 16k.

I should mention the default is also lazily allocated (e.g. ldrel -S -L).

Regards,

Ryan Mansfield
Re: ldrel -S on QNX 6.5.0 causes crash  
Any way to make it non-lazy through the IDE"s build options?  It allows me to specify the stack size, but the -L option 
is added automatically....

Thanks for the info.  

Kevin
Re: ldrel -S on QNX 6.5.0 causes crash  
This is due to lazy binding support in 650 .
Sent from my BB 

----- Original Message -----
From: Kevin Stallard [mailto:community-noreply@qnx.com]
Sent: Monday, February 28, 2011 10:53 AM
To: general-toolchain <post83580@community.qnx.com>
Subject: Re: ldrel -S on QNX 6.5.0 causes crash

Really?  I thought the default stack size was something along the order 4k.  I just tried 16k with no go...but 32K seems
 to work.

Wow...I thought 8k was getting kind of big for a stack size?   Can you point me to some reading on this subject?  When I
 was using 6.3.2, a 4k stack size was fine (or at least that is my recollection).

Thanks
Kevin




_______________________________________________

General
http://community.qnx.com/sf/go/post83580
Re: ldrel -S on QNX 6.5.0 causes crash  
I've attached the test project I am using here:
Attachment: Compressed file StackTest.zip 3.96 KB