public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Posix test case mmap/31-1 fails on Linux/eglibc
@ 2011-12-28 10:55 Kang Kai
  2011-12-28 18:16 ` Cyril Hrubis
  2012-01-04  1:37 ` Yasuaki Ishimatsu
  0 siblings, 2 replies; 7+ messages in thread
From: Kang Kai @ 2011-12-28 10:55 UTC (permalink / raw)
  To: ltp-list

Hi all,

I run mmap/31-1 failed with ENOMEM on linux, with error message:
off: fffffffffffff000, len: fffffffffffff000
Test FAIL: expect EOVERFLOW but get other error: Cannot allocate memory

But compare to mmap/24-2, it mmap() the same length but pass. Its output:
available memory: 18446744073709551615
addr: 7f78c54fa000, len: ffffffffffffffff
addr: 7f78c54fa000, len: fffffffffffff000
Test Pass: mmap/24-2.c Get ENOMEM: Cannot allocate memory

So I suppose that mmap/31-1 may need update, but I don't know how to 
make mmap() overflow as expect.
Any suggestion is appreciated.

Regards,
Kai

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] Posix test case mmap/31-1 fails on Linux/eglibc
  2011-12-28 10:55 [LTP] Posix test case mmap/31-1 fails on Linux/eglibc Kang Kai
@ 2011-12-28 18:16 ` Cyril Hrubis
  2012-01-04  1:37 ` Yasuaki Ishimatsu
  1 sibling, 0 replies; 7+ messages in thread
From: Cyril Hrubis @ 2011-12-28 18:16 UTC (permalink / raw)
  To: Kang Kai; +Cc: ltp-list

Hi!
> I run mmap/31-1 failed with ENOMEM on linux, with error message:
> off: fffffffffffff000, len: fffffffffffff000
> Test FAIL: expect EOVERFLOW but get other error: Cannot allocate memory
> 
> But compare to mmap/24-2, it mmap() the same length but pass. Its output:
> available memory: 18446744073709551615
> addr: 7f78c54fa000, len: ffffffffffffffff
> addr: 7f78c54fa000, len: fffffffffffff000
> Test Pass: mmap/24-2.c Get ENOMEM: Cannot allocate memory

At least the mmap/31-1, mmap/28-1, mmap/27-1, mmap/24-2, mmap/11-4 and
mmap/11-5 are known to fail sometimes and most likely are coded
incorrecly.

> So I suppose that mmap/31-1 may need update, but I don't know how to 
> make mmap() overflow as expect.
> Any suggestion is appreciated.

I would start with careful reading of the mmap() manpages/docs, as most
likely some of the assumptions that the testcase makes is incorrect.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] Posix test case mmap/31-1 fails on Linux/eglibc
  2011-12-28 10:55 [LTP] Posix test case mmap/31-1 fails on Linux/eglibc Kang Kai
  2011-12-28 18:16 ` Cyril Hrubis
@ 2012-01-04  1:37 ` Yasuaki Ishimatsu
  2012-01-04  2:05   ` Wanlong Gao
  1 sibling, 1 reply; 7+ messages in thread
From: Yasuaki Ishimatsu @ 2012-01-04  1:37 UTC (permalink / raw)
  To: Kang Kai; +Cc: ltp-list

Hi Kai,

2011/12/28 19:55, Kang Kai wrote:
> Hi all,
>
> I run mmap/31-1 failed with ENOMEM on linux, with error message:
> off: fffffffffffff000, len: fffffffffffff000
> Test FAIL: expect EOVERFLOW but get other error: Cannot allocate memory
>
> But compare to mmap/24-2, it mmap() the same length but pass. Its output:
> available memory: 18446744073709551615
> addr: 7f78c54fa000, len: ffffffffffffffff
> addr: 7f78c54fa000, len: fffffffffffff000
> Test Pass: mmap/24-2.c Get ENOMEM: Cannot allocate memory
>
> So I suppose that mmap/31-1 may need update, but I don't know how to
> make mmap() overflow as expect.
> Any suggestion is appreciated.

I don't think mmap/31-1 need update since it is Linux Kernel's problem,
not the test's problem. The problem is being discussed on LKML.

https://lkml.org/lkml/2011/12/22/85

Regards,
Yasuaki Ishimatsu

>
> Regards,
> Kai
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
>



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] Posix test case mmap/31-1 fails on Linux/eglibc
  2012-01-04  1:37 ` Yasuaki Ishimatsu
@ 2012-01-04  2:05   ` Wanlong Gao
  2012-01-04  2:50     ` Yasuaki Ishimatsu
  0 siblings, 1 reply; 7+ messages in thread
From: Wanlong Gao @ 2012-01-04  2:05 UTC (permalink / raw)
  To: Yasuaki Ishimatsu; +Cc: ltp-list, Kang Kai

On 01/04/2012 09:37 AM, Yasuaki Ishimatsu wrote:

> Hi Kai,
> 
> 2011/12/28 19:55, Kang Kai wrote:
>> Hi all,
>>
>> I run mmap/31-1 failed with ENOMEM on linux, with error message:
>> off: fffffffffffff000, len: fffffffffffff000
>> Test FAIL: expect EOVERFLOW but get other error: Cannot allocate memory
>>
>> But compare to mmap/24-2, it mmap() the same length but pass. Its output:
>> available memory: 18446744073709551615
>> addr: 7f78c54fa000, len: ffffffffffffffff
>> addr: 7f78c54fa000, len: fffffffffffff000
>> Test Pass: mmap/24-2.c Get ENOMEM: Cannot allocate memory
>>
>> So I suppose that mmap/31-1 may need update, but I don't know how to
>> make mmap() overflow as expect.
>> Any suggestion is appreciated.
> 
> I don't think mmap/31-1 need update since it is Linux Kernel's problem,
> not the test's problem. The problem is being discussed on LKML.
> 
> https://lkml.org/lkml/2011/12/22/85


But it seems that the patch was not acceptable.

Thanks
-Wanlong Gao

> 
> Regards,
> Yasuaki Ishimatsu
> 
>>
>> Regards,
>> Kai



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] Posix test case mmap/31-1 fails on Linux/eglibc
  2012-01-04  2:05   ` Wanlong Gao
@ 2012-01-04  2:50     ` Yasuaki Ishimatsu
  2012-01-04  2:57       ` Wanlong Gao
  0 siblings, 1 reply; 7+ messages in thread
From: Yasuaki Ishimatsu @ 2012-01-04  2:50 UTC (permalink / raw)
  To: gaowanlong; +Cc: ltp-list, Kang Kai

Hi Gao,

2012/01/04 11:05, Wanlong Gao wrote:
 > On 01/04/2012 09:37 AM, Yasuaki Ishimatsu wrote:
 >
 >> Hi Kai,
 >>
 >> 2011/12/28 19:55, Kang Kai wrote:
 >>> Hi all,
 >>>
 >>> I run mmap/31-1 failed with ENOMEM on linux, with error message:
 >>> off: fffffffffffff000, len: fffffffffffff000
 >>> Test FAIL: expect EOVERFLOW but get other error: Cannot allocate memory
 >>>
 >>> But compare to mmap/24-2, it mmap() the same length but pass. Its output:
 >>> available memory: 18446744073709551615
 >>> addr: 7f78c54fa000, len: ffffffffffffffff
 >>> addr: 7f78c54fa000, len: fffffffffffff000
 >>> Test Pass: mmap/24-2.c Get ENOMEM: Cannot allocate memory
 >>>
 >>> So I suppose that mmap/31-1 may need update, but I don't know how to
 >>> make mmap() overflow as expect.
 >>> Any suggestion is appreciated.
 >>
 >> I don't think mmap/31-1 need update since it is Linux Kernel's problem,
 >> not the test's problem. The problem is being discussed on LKML.
 >>
 >> https://lkml.org/lkml/2011/12/22/85
 >
 >
 > But it seems that the patch was not acceptable.

As you say, it has not been accepted yet.
But I think Linux will be fixed to return EOVERFLOW in mmap/31-1's test
in the near future.

Regards,
Yasuaki Ishimatsu

 >
 > Thanks
 > -Wanlong Gao
 >
 >>
 >> Regards,
 >> Yasuaki Ishimatsu
 >>
 >>>
 >>> Regards,
 >>> Kai
 >
 >
 >
 >


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] Posix test case mmap/31-1 fails on Linux/eglibc
  2012-01-04  2:50     ` Yasuaki Ishimatsu
@ 2012-01-04  2:57       ` Wanlong Gao
  2012-01-04  3:32         ` Kang Kai
  0 siblings, 1 reply; 7+ messages in thread
From: Wanlong Gao @ 2012-01-04  2:57 UTC (permalink / raw)
  To: Yasuaki Ishimatsu; +Cc: ltp-list, Kang Kai

On 01/04/2012 10:50 AM, Yasuaki Ishimatsu wrote:

> Hi Gao,
> 
> 2012/01/04 11:05, Wanlong Gao wrote:
>> On 01/04/2012 09:37 AM, Yasuaki Ishimatsu wrote:
>>
>>> Hi Kai,
>>>
>>> 2011/12/28 19:55, Kang Kai wrote:
>>>> Hi all,
>>>>
>>>> I run mmap/31-1 failed with ENOMEM on linux, with error message:
>>>> off: fffffffffffff000, len: fffffffffffff000
>>>> Test FAIL: expect EOVERFLOW but get other error: Cannot allocate memory
>>>>
>>>> But compare to mmap/24-2, it mmap() the same length but pass. Its output:
>>>> available memory: 18446744073709551615
>>>> addr: 7f78c54fa000, len: ffffffffffffffff
>>>> addr: 7f78c54fa000, len: fffffffffffff000
>>>> Test Pass: mmap/24-2.c Get ENOMEM: Cannot allocate memory
>>>>
>>>> So I suppose that mmap/31-1 may need update, but I don't know how to
>>>> make mmap() overflow as expect.
>>>> Any suggestion is appreciated.
>>>
>>> I don't think mmap/31-1 need update since it is Linux Kernel's problem,
>>> not the test's problem. The problem is being discussed on LKML.
>>>
>>> https://lkml.org/lkml/2011/12/22/85
>>
>>
>> But it seems that the patch was not acceptable.
> 
> As you say, it has not been accepted yet.
> But I think Linux will be fixed to return EOVERFLOW in mmap/31-1's test
> in the near future.


Yeah, agree, so we need not update this test case now and wait for a while
to let the kernel bug to be fixed.

> 
> Regards,
> Yasuaki Ishimatsu
> 
>>
>> Thanks
>> -Wanlong Gao
>>
>>>
>>> Regards,
>>> Yasuaki Ishimatsu
>>>
>>>>
>>>> Regards,
>>>> Kai
>>
>>
>>
>>
> 
> 



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LTP] Posix test case mmap/31-1 fails on Linux/eglibc
  2012-01-04  2:57       ` Wanlong Gao
@ 2012-01-04  3:32         ` Kang Kai
  0 siblings, 0 replies; 7+ messages in thread
From: Kang Kai @ 2012-01-04  3:32 UTC (permalink / raw)
  To: gaowanlong, Yasuaki Ishimatsu; +Cc: ltp-list

On 2012年01月04日 10:57, Wanlong Gao wrote:
> On 01/04/2012 10:50 AM, Yasuaki Ishimatsu wrote:
>
>> Hi Gao,
>>
>> 2012/01/04 11:05, Wanlong Gao wrote:
>>> On 01/04/2012 09:37 AM, Yasuaki Ishimatsu wrote:
>>>
>>>> Hi Kai,
>>>>
>>>> 2011/12/28 19:55, Kang Kai wrote:
>>>>> Hi all,
>>>>>
>>>>> I run mmap/31-1 failed with ENOMEM on linux, with error message:
>>>>> off: fffffffffffff000, len: fffffffffffff000
>>>>> Test FAIL: expect EOVERFLOW but get other error: Cannot allocate memory
>>>>>
>>>>> But compare to mmap/24-2, it mmap() the same length but pass. Its output:
>>>>> available memory: 18446744073709551615
>>>>> addr: 7f78c54fa000, len: ffffffffffffffff
>>>>> addr: 7f78c54fa000, len: fffffffffffff000
>>>>> Test Pass: mmap/24-2.c Get ENOMEM: Cannot allocate memory
>>>>>
>>>>> So I suppose that mmap/31-1 may need update, but I don't know how to
>>>>> make mmap() overflow as expect.
>>>>> Any suggestion is appreciated.
>>>> I don't think mmap/31-1 need update since it is Linux Kernel's problem,
>>>> not the test's problem. The problem is being discussed on LKML.
>>>>
>>>> https://lkml.org/lkml/2011/12/22/85
>>>
>>> But it seems that the patch was not acceptable.
>> As you say, it has not been accepted yet.
>> But I think Linux will be fixed to return EOVERFLOW in mmap/31-1's test
>> in the near future.
>
> Yeah, agree, so we need not update this test case now and wait for a while
> to let the kernel bug to be fixed.

OK, thank you very much!

>
>> Regards,
>> Yasuaki Ishimatsu
>>
>>> Thanks
>>> -Wanlong Gao
>>>
>>>> Regards,
>>>> Yasuaki Ishimatsu
>>>>
>>>>> Regards,
>>>>> Kai
>>>
>>>
>>>
>>
>


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-04  3:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 10:55 [LTP] Posix test case mmap/31-1 fails on Linux/eglibc Kang Kai
2011-12-28 18:16 ` Cyril Hrubis
2012-01-04  1:37 ` Yasuaki Ishimatsu
2012-01-04  2:05   ` Wanlong Gao
2012-01-04  2:50     ` Yasuaki Ishimatsu
2012-01-04  2:57       ` Wanlong Gao
2012-01-04  3:32         ` Kang Kai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox