[so] [linux][tema1]test15-eroare la rulare

Ovidiu Bratu macbethul at yahoo.com
Thu Apr 9 12:53:24 EEST 2009


Daca rulez ./mini-shell din linia de comanda totul merge ok:
ovidiu at ovidiu-desktop:~/TEME/SO/1/src/tema1_so$ ./mini-shell 
> ./executabil_care_nu_exista
Execution failed for './executabil_care_nu_exista'
> ./executabil_care_nu_exista
Execution failed for './executabil_care_nu_exista'

In schimb, daca rulez pt checker doar testul 15 primesc o eroare la rulare:
ovidiu at ovidiu-desktop:~/Desktop/Test_mini-shell_lin$ make -f Makefile.checker test_15
running test_15
*** glibc detected *** ./mini-shell: realloc(): invalid next size: 0x0000000000e6c310 ***
======= Backtrace: =========
/lib/libc.so.6[0x2ae92dbf0a58]
/lib/libc.so.6[0x2ae92dbf4d51]
/lib/libc.so.6(realloc+0x12e)[0x2ae92dbf5bde]
./mini-shell[0x402f35]
./mini-shell[0x402fba]
./mini-shell[0x40300e]
./mini-shell[0x404a10]
./mini-shell[0x405112]
./mini-shell[0x4025f2]
/lib/libc.so.6(__libc_start_main+0xe6)[0x2ae92db95466]
./mini-shell[0x4015c9]
======= Memory map: ========
00400000-0040a000 r-xp 00000000 08:07 93250                              /home/ovidiu/Desktop/Test_mini-shell_lin/mini-shell
00609000-0060a000 r--p 00009000 08:07 93250                              /home/ovidiu/Desktop/Test_mini-shell_lin/mini-shell
0060a000-0060b000 rw-p 0000a000 08:07 93250                              /home/ovidiu/Desktop/Test_mini-shell_lin/mini-shell
00e6c000-00e8d000 rw-p 00e6c000 00:00 0                                  [heap]
2ae92d1ac000-2ae92d1cb000 r-xp 00000000 08:07 67848                      /lib/ld-2.8.90.so
2ae92d1cb000-2ae92d1d0000 rw-p 2ae92d1cb000 00:00 0 
2ae92d3ca000-2ae92d3cb000 r--p 0001e000 08:07 67848                      /lib/ld-2.8.90.so
2ae92d3cb000-2ae92d3cc000 rw-p 0001f000 08:07 67848                      /lib/ld-2.8.90.so
2ae92d3cc000-2ae92d4bd000 r-xp 00000000 08:07 1030517                    /usr/lib/libstdc++.so.6.0.10
2ae92d4bd000-2ae92d6bd000 ---p 000f1000 08:07 1030517                    /usr/lib/libstdc++.so.6.0.10
2ae92d6bd000-2ae92d6c4000 r--p 000f1000 08:07 1030517                    /usr/lib/libstdc++.so.6.0.10
2ae92d6c4000-2ae92d6c6000 rw-p 000f8000 08:07 1030517                    /usr/lib/libstdc++.so.6.0.10
2ae92d6c6000-2ae92d6d9000 rw-p 2ae92d6c6000 00:00 0 
2ae92d6d9000-2ae92d75d000 r-xp 00000000 08:07 67960                      /lib/libm-2.8.90.so
2ae92d75d000-2ae92d95c000 ---p 00084000 08:07 67960                      /lib/libm-2.8.90.so
2ae92d95c000-2ae92d95d000 r--p 00083000 08:07 67960                      /lib/libm-2.8.90.so
2ae92d95d000-2ae92d95e000 rw-p 00084000 08:07 67960                      /lib/libm-2.8.90.so
2ae92d95e000-2ae92d974000 r-xp 00000000 08:07 67781                      /lib/libgcc_s.so.1
2ae92d974000-2ae92db74000 ---p 00016000 08:07 67781                      /lib/libgcc_s.so.1
2ae92db74000-2ae92db75000 r--p 00016000 08:07 67781                      /lib/libgcc_s.so.1
2ae92db75000-2ae92db76000 rw-p 00017000 08:07 67781                      /lib/libgcc_s.so.1
2ae92db76000-2ae92db77000 rw-p 2ae92db76000 00:00 0 
2ae92db77000-2ae92dce0000 r-xp 00000000 08:07 67925                      /lib/libc-2.8.90.so
2ae92dce0000-2ae92dedf000 ---p 00169000 08:07 67925                      /lib/libc-2.8.90.so
2ae92dedf000-2ae92dee3000 r--p 00168000 08:07 67925                      /lib/libc-2.8.90.so
2ae92dee3000-2ae92dee4000 rw-p 0016c000 08:07 67925                      /lib/libc-2.8.90.so
2ae92dee4000-2ae92deeb000 rw-p 2ae92dee4000 00:00 0 
2ae930000000-2ae930021000 rw-p 2ae930000000 00:00 0 
2ae930021000-2ae934000000 ---p 2ae930021000 00:00 0 
7fff7d8e9000-7fff7d8fe000 rw-p 7ffffffea000 00:00 0                      [stack]
7fff7d901000-7fff7d902000 r-xp 7fff7d901000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
*** glibc detected *** ./mini-shell: realloc(): invalid next size: 0x0000000000e6c310 ***
======= Backtrace: =========
/lib/libc.so.6[0x2ae92dbf0a58]
/lib/libc.so.6[0x2ae92dbf4d51]
/lib/libc.so.6(realloc+0x12e)[0x2ae92dbf5bde]
./mini-shell[0x402f35]
./mini-shell[0x402fba]
./mini-shell[0x40300e]
./mini-shell[0x404a10]
./mini-shell[0x405112]
./mini-shell[0x4025f2]
/lib/libc.so.6(__libc_start_main+0xe6)[0x2ae92db95466]
./mini-shell[0x4015c9]
======= Memory map: ========
00400000-0040a000 r-xp 00000000 08:07 93250                              /home/ovidiu/Desktop/Test_mini-shell_lin/mini-shell
00609000-0060a000 r--p 00009000 08:07 93250                              /home/ovidiu/Desktop/Test_mini-shell_lin/mini-shell
0060a000-0060b000 rw-p 0000a000 08:07 93250                              /home/ovidiu/Desktop/Test_mini-shell_lin/mini-shell
00e6c000-00e8d000 rw-p 00e6c000 00:00 0                                  [heap]
2ae92d1ac000-2ae92d1cb000 r-xp 00000000 08:07 67848                      /lib/ld-2.8.90.so
2ae92d1cb000-2ae92d1d0000 rw-p 2ae92d1cb000 00:00 0 
2ae92d3ca000-2ae92d3cb000 r--p 0001e000 08:07 67848                      /lib/ld-2.8.90.so
2ae92d3cb000-2ae92d3cc000 rw-p 0001f000 08:07 67848                      /lib/ld-2.8.90.so
2ae92d3cc000-2ae92d4bd000 r-xp 00000000 08:07 1030517                    /usr/lib/libstdc++.so.6.0.10
2ae92d4bd000-2ae92d6bd000 ---p 000f1000 08:07 1030517                    /usr/lib/libstdc++.so.6.0.10
2ae92d6bd000-2ae92d6c4000 r--p 000f1000 08:07 1030517                    /usr/lib/libstdc++.so.6.0.10
2ae92d6c4000-2ae92d6c6000 rw-p 000f8000 08:07 1030517                    /usr/lib/libstdc++.so.6.0.10
2ae92d6c6000-2ae92d6d9000 rw-p 2ae92d6c6000 00:00 0 
2ae92d6d9000-2ae92d75d000 r-xp 00000000 08:07 67960                      /lib/libm-2.8.90.so
2ae92d75d000-2ae92d95c000 ---p 00084000 08:07 67960                      /lib/libm-2.8.90.so
2ae92d95c000-2ae92d95d000 r--p 00083000 08:07 67960                      /lib/libm-2.8.90.so
2ae92d95d000-2ae92d95e000 rw-p 00084000 08:07 67960                      /lib/libm-2.8.90.so
2ae92d95e000-2ae92d974000 r-xp 00000000 08:07 67781                      /lib/libgcc_s.so.1
2ae92d974000-2ae92db74000 ---p 00016000 08:07 67781                      /lib/libgcc_s.so.1
2ae92db74000-2ae92db75000 r--p 00016000 08:07 67781                      /lib/libgcc_s.so.1
2ae92db75000-2ae92db76000 rw-p 00017000 08:07 67781                      /lib/libgcc_s.so.1
2ae92db76000-2ae92db77000 rw-p 2ae92db76000 00:00 0 
2ae92db77000-2ae92dce0000 r-xp 00000000 08:07 67925                      /lib/libc-2.8.90.so
2ae92dce0000-2ae92dedf000 ---p 00169000 08:07 67925                      /lib/libc-2.8.90.so
2ae92dedf000-2ae92dee3000 r--p 00168000 08:07 67925                      /lib/libc-2.8.90.so
2ae92dee3000-2ae92dee4000 rw-p 0016c000 08:07 67925                      /lib/libc-2.8.90.so
2ae92dee4000-2ae92deeb000 rw-p 2ae92dee4000 00:00 0 
2ae930000000-2ae930021000 rw-p 2ae930000000 00:00 0 
2ae930021000-2ae934000000 ---p 2ae930021000 00:00 0 
7fff7d8e9000-7fff7d8fe000 rw-p 7ffffffea000 00:00 0                      [stack]
7fff7d901000-7fff7d902000 r-xp 7fff7d901000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
make: [test_15] Error 134 (ignored)
--- test_15_out.txt    2009-04-09 12:37:58.000000000 +0300
+++ ./outputs/test_15_ref.txt    2009-02-28 14:42:59.000000000 +0200
@@ -1,2 +1,2 @@
 Execution failed for './executabil_care_nu_exista'
-Aborted
+Execution failed for './executabil_care_nu_exista'
failed
done test_15

Ma poate ajuta cineva?
Multumesc!





      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090409/f6eaffee/attachment-0001.htm>


More information about the so mailing list