Bug#727009: FTBFS on kfreebsd-i386: FAIL: test-pangocairo-threads

Petr Salinger Petr.Salinger at seznam.cz
Thu Nov 7 06:35:00 UTC 2013


>> I found this is caused by 'make' raising RLIMIT_STACK from the default
>> setting of 8192k to its maximum, 65536k.  It is reproducible from the
>> shell by setting "ulimit -s 65536" before running the test program directly.
>
> Thanks for the analysis!
>
>> I don't know if this is an eglibc bug or expected behaviour (and
>> therefore a 'make' bug) so I am Cc'ing Petr.
>
> Let's see about that...

Usual kfreebsd-i386 layout (in MB):

start
     0 reserved
   128 start of code+data segment - usual size 512 MB
   640 start of mmaped area
  3072 end of user space (at 3 GB)

100 threads x  8 MB =  800 MB -> OK
100 threads x 64 MB = 6400 MB -> fails
  50 threads x 64 MB = 3200 MB -> at edge

There can be easily 100 currently active threads with default stacks size.
There cannot be over 50 active threads with 64 MB stacks.

Petr


root at bsd32:~# ulimit -a -H
socket buffer size       (bytes, -b) unlimited
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) 524288
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 65536
cpu time               (seconds, -t) unlimited
max user processes              (-u) 3546
virtual memory          (kbytes, -v) unlimited

root at bsd32:~# cat /proc/self/maps
08048000-08053000 r-xp 0000c000 00:00 70676     /bin/cat
08053000-08054000 r--p 0000c000 00:00 70676     /bin/cat
08054000-08055000 rw-p 00001000 00:00 0
28053000-28073000 r-xp 00021000 00:00 23634     /lib/i386-kfreebsd-gnu/ld-2.17.so
28073000-28074000 r--p 00021000 00:00 23634     /lib/i386-kfreebsd-gnu/ld-2.17.so
28074000-28077000 rw-p 00003000 00:00 0
28077000-2807e000 r--p 00007000 00:00 237512     /etc/ld.so.cache
2807e000-281d3000 r-xp 00159000 00:00 23601     /lib/i386-kfreebsd-gnu/i686/cmov/libc-2.17.so
281d3000-281d5000 r--p 00159000 00:00 23601     /lib/i386-kfreebsd-gnu/i686/cmov/libc-2.17.so
281d5000-281d6000 rw-p 00159000 00:00 23601     /lib/i386-kfreebsd-gnu/i686/cmov/libc-2.17.so
281d6000-282da000 rw-p 00104000 00:00 0
bfbdf000-bfbff000 rwxp 00020000 00:00 0
bfbff000-bfc00000 r-xp 00001000 00:00 0



More information about the pkg-gnome-maintainers mailing list