END TESTS............................................. ......: PASSED
--
Running the expect_test binary on amd64 results in memory corruption. As
it seems this only happens if the following conditions are met:
* the binary spawned produces more output than the expect buffer size
This should not matter because Non_Blocking_Spawn is expected to discard
old characters:
"The expect buffer associated with that process can contain at most
Buffer_Size characters. Older characters are simply discarded when this
buffer is full."
* the spawned binary uses file IO
* the code sleeps between the text output cycles
The bug is also present with the tip of the gcc-4_4-branch (Subversion
revision 157750) from upstream (verified by Ludovic Brenta).
Full gdb backtrace with gnat 4.3.2-1.1 (lenny):
#0 0x00007f9502737ed5 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f95027393f3 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007f9502774388 in __libc_message () from /lib/libc.so.6
No symbol table info available.
#3 0x00007f9502779928 in malloc_printerr () from /lib/libc.so.6
No symbol table info available.
#4 0x00007f950277ba36 in free () from /lib/libc.so.6
No symbol table info available.
#5 0x00007f9502ee53a5 in <__gnat_free> (ptr=6308000) at s-memory.adb:117
No locals.
#6 0x00007f9502e670af in gnat.expect.close (descriptor=@0x7fffffffbe50) at g-expect.adb:227
current_filter = <value optimized out>
next_filter = <value optimized out>
#7 0x0000000000402ff7 in _ada_expect_test ()
No locals.
The complete reproducer code can be downloaded at [1].
Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gnat-4.4 depends on:
ii gcc-4.4 4.4.3-5 The GNU C compiler
ii gnat-4.4-base 4.4.3-1 The GNU Compiler Collection (gnat
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libc6-dev 2.10.2-6 Embedded GNU C Library: Developmen
ii libgcc1 1:4.4.3-5 GCC support library
ii libgmp3c2 2:4.3.2+dfsg-1 Multiprecision arithmetic library
ii libgnat-4.4 4.4.3-1 Runtime library for GNU Ada applic
ii libgnatprj4.4 4.4.3-1 GNU Ada Project Manager
ii libgnatvsn4.4 4.4.3-1 GNU Ada compiler version library
ii libmpfr1ldbl 2.4.2-3 multiple precision floating-point
gnat-4.4 recommends no packages.
Versions of packages gnat-4.4 suggests:
pn ada-reference-manual <none> (no description available)
pn gnat-4.4-doc <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100330192828.25542.60691.reportbug@thunderbird.c odelabs.local">http://lists.debian.org/20100330192828.25542.60691.reportbug@thunderbird.c odelabs.local