# Problem with setrlimit() on ia-32 Execution Layer

**URL:** <https://forums.suse.com/t/problem-with-setrlimit-on-ia-32-execution-layer/21742>\
**Category:** SLE Software Developer Kit (SDK)\
**Created:** [March 18, 2010, 3:16pm UTC](https://forums.suse.com/t/problem-with-setrlimit-on-ia-32-execution-layer/21742 "2010-03-18T15:16:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [March 18, 2010, 3:16pm UTC](https://forums.suse.com/t/problem-with-setrlimit-on-ia-32-execution-layer/21742/1 "2010-03-18T15:16:04Z")

</div>

Hello,

I am trying to run an x86 application on SLES 11 for ia-64 trough the  
ia-32 Execution Layer.  
This application calls setrlimit() to change de queue limits.

It works fine when executed on x86 processors. However, when I run it  
on an Itanium it returns the exit code 22 (Invalid argument).

I created a simple program to test if the problem was related with the  
resource number.  
It tries to set all resources limits (resources 0 to 14).  
When compiling this test for ia64, it works nice. Also, when compiling  
it for x86 and running on x86 processor. However, it failed on Itanium  
when compiled for x86 with resources 11 to 14.

Thank you in advance.

±---------------------------------------------------------------------+  
|Filename: setrlimit-test.zip |  
|Download: [http://forums.novell.com/attachment.php?attachmentid=4153](http://forums.novell.com/attachment.php?attachmentid=4153) |  
±---------------------------------------------------------------------+

## – tuliom

tuliom’s Profile: [http://forums.novell.com/member.php?userid=67690](http://forums.novell.com/member.php?userid=67690)  
View this thread: [http://forums.novell.com/showthread.php?t=405098](http://forums.novell.com/showthread.php?t=405098)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [March 18, 2010, 6:16pm UTC](https://forums.suse.com/t/problem-with-setrlimit-on-ia-32-execution-layer/21742/2 "2010-03-18T18:16:07Z")

</div>

It looks like the problem is on file  
src/ia32x\_utils/include/kernel\_subst64.h of the ia-32 Execultion Layer.

I can create a patch for it but I don’t know where I should send it.

## – tuliom

tuliom’s Profile: [http://forums.novell.com/member.php?userid=67690](http://forums.novell.com/member.php?userid=67690)  
View this thread: [http://forums.novell.com/showthread.php?t=405098](http://forums.novell.com/showthread.php?t=405098)
