Comment 4 for bug 1471029

Revision history for this message
Douglas Bagnall (douglasbagnall) wrote : Re: Segfault in xsltproc on i386

OK, so sampling the last two lines of the process map every 0.2 seconds:

start:
b772c000-b772e000 rw-p 00005000 fd:01 67267 /usr/bin/xsltproc
bfe83000-bfea4000 rw-p 00000000 00:00 0 [stack]
0.2s
b7894000-b849e000 rw-p 00000000 00:00 0 [heap]
bfe83000-bfea4000 rw-p 00000000 00:00 0 [stack]
0.4s
b7894000-b90d5000 rw-p 00000000 00:00 0 [heap]
bfe83000-bfea4000 rw-p 00000000 00:00 0 [stack]

The heap starts to squeeze the stack for room. When they are separated by 64k, the heap takes over the stacks naming rights, and the sizes are fixed:

3.6s
b7894000-bfe32000 rw-p 00000000 00:00 0 [heap]
bfe4c000-bfea4000 rw-p 00000000 00:00 0 [stack]
3.8s
b7894000-bfe32000 rw-p 00000000 00:00 0 [heap]
bfe3d000-bfea4000 rw-p 00000000 00:00 0 [stack]
4.0s
b7894000-bfe32000 rw-p 00000000 00:00 0 [heap]
bfe33000-bfea4000 rw-p 00000000 00:00 0 [heap]
4.2s
b7894000-bfe32000 rw-p 00000000 00:00 0 [heap]
bfe33000-bfea4000 rw-p 00000000 00:00 0 [heap]

The stack is fixed in size from here on in, so it is only a matter of luck and time.

20.6s
b7894000-bfe32000 rw-p 00000000 00:00 0 [heap]
bfe33000-bfea4000 rw-p 00000000 00:00 0 [heap]
20.8s
b7894000-bfe32000 rw-p 00000000 00:00 0 [heap]
bfe33000-bfea4000 rw-p 00000000 00:00 0 [heap]

post-mortum:

b7894000-bfe32000 rw-p 00000000 00:00 0 [heap]
bfe33000-bfea4000 rw-p 00000000 00:00 0 [heap]

Why? I don't know.