[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch for printf memory use tests
From: |
Bruce Korb |
Subject: |
patch for printf memory use tests |
Date: |
Fri, 14 Jan 2011 14:40:34 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11 |
As was ultimately figured out, unused libraries consume address
space and are not dumped into the core image. "gdb info target"
doesn't yield very friendly information about the issue, either.
You have to suspend GDB and go have a peek at /proc/$PID/maps
and do some hex arithmetic. This patch does a few things:
1. It increases the number of iterations of the test-fprintf-posix3
and test-dprintf-posix2 to 1,500 so that 15MB of address space
is allowed. This is big enough for the additional libposix space
needs on a Linux x86-64 box.
2. It adds another test when the test program's argument is "0".
Mainly, it has to work for one iteration of the test. If it
does not, then this command is run:
echo "Testing error: designated memory size is too small"
3. The tests take micro seconds longer, due to the extra iterations.
0001-tests-large-libraries-may-foil-setrlimit-printf-test.patch
Description: Text Data
- patch for printf memory use tests,
Bruce Korb <=
- Re: patch for printf memory use tests, Bruno Haible, 2011/01/14
- Re: patch for printf memory use tests, Bruce Korb, 2011/01/14
- new module 'get-rusage-as', Bruno Haible, 2011/01/16
- Re: new module 'get-rusage-as', Bruno Haible, 2011/01/18
- Re: new module 'get-rusage-as', Bruce Korb, 2011/01/18
- Re: new module 'get-rusage-as', Bruno Haible, 2011/01/26
- Re: new module 'get-rusage-as', Bruno Haible, 2011/01/23