Sunday, March 18, 2012

[ns] GT-ITM linux installation problem

Hi,

I tried to instal GT-ITM on linux (ubuntu 11.10) from ns-allinone-2.28
package.
During compilation of gt-itm I got a lot of warnings (I enclose them below
the text of this message).
Then I wanted to generate some topologies from sample configuration file
and ocurred an error:

*** glibc detected *** ./itm: double free or corruption (top): 0x09d18170
***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(
+0x6ff22)[0x259f22]
/lib/i386-linux-gnu/libc.so.6(+0x70bc2)[0x25abc2]
/lib/i386-linux-gnu/libc.so.6(cfree+0x6d)[0x25dcad]
./itm[0x804d7c2]
./itm[0x80497a7]
./itm[0x8049990]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x203113]
======= Memory map: ========
00110000-0012c000 r-xp 00000000 08:01 132207
/lib/i386-linux-gnu/libgcc_s.so.1
0012c000-0012d000 r--p 0001b000 08:01 132207
/lib/i386-linux-gnu/libgcc_s.so.1
0012d000-0012e000 rw-p 0001c000 08:01 132207
/lib/i386-linux-gnu/libgcc_s.so.1
001ea000-00362000 r-xp 00000000 08:01 137359 /lib/i386-linux-gnu/
libc-2.13.so
00362000-00364000 r--p 00178000 08:01 137359 /lib/i386-linux-gnu/
libc-2.13.so
00364000-00365000 rw-p 0017a000 08:01 137359 /lib/i386-linux-gnu/
libc-2.13.so
00365000-00368000 rw-p 00000000 00:00 0
005ca000-005e8000 r-xp 00000000 08:01 136891 /lib/i386-linux-gnu/
ld-2.13.so
005e8000-005e9000 r--p 0001d000 08:01 136891 /lib/i386-linux-gnu/
ld-2.13.so
005e9000-005ea000 rw-p 0001e000 08:01 136891 /lib/i386-linux-gnu/
ld-2.13.so
00ae9000-00aea000 r-xp 00000000 00:00 0 [vdso]
00ce9000-00d11000 r-xp 00000000 08:01 137656 /lib/i386-linux-gnu/
libm-2.13.so
00d11000-00d12000 r--p 00028000 08:01 137656 /lib/i386-linux-gnu/
libm-2.13.so
00d12000-00d13000 rw-p 00029000 08:01 137656 /lib/i386-linux-gnu/
libm-2.13.so
08048000-08051000 r-xp 00000000 08:01 27698 /home/luc/gt-itm/bin/itm
08051000-08052000 r--p 00009000 08:01 27698 /home/luc/gt-itm/bin/itm
08052000-08053000 rw-p 0000a000 08:01 27698 /home/luc/gt-itm/bin/itm
08053000-08054000 rw-p 00000000 00:00 0
09d18000-09d39000 rw-p 00000000 00:00 0 [heap]
b7600000-b7621000 rw-p 00000000 00:00 0
b7621000-b7700000 ---p 00000000 00:00 0
b77c5000-b77c7000 rw-p 00000000 00:00 0
b77d7000-b77da000 rw-p 00000000 00:00 0
bf9b5000-bf9d6000 rw-p 00000000 00:00 0 [stack]
Aborted

Could anyone help me solve the problem?

Regards,
Ɓukasz Grabowski

Compilation warnings:

gcc -I../include -L../lib -DFBSD -c -o itm.o itm.c
itm.c: In function 'makegraph':
itm.c:286:16: warning: format '%d' expects argument of type 'int', but
argument 4 has type 'long int' [-Wformat]
gcc -I../include -L../lib -DFBSD -c -o geog.o geog.c
geog.c: In function 'geo':
geog.c:203:26: warning: incompatible implicit declaration of built-in
function 'alloca' [enabled by default]
geog.c:206:26: warning: incompatible implicit declaration of built-in
function 'malloc' [enabled by default]
geog.c:270:18: warning: incompatible implicit declaration of built-in
function 'free' [enabled by default]
geog.c: In function 'geo_hier':
geog.c:426:18: warning: incompatible implicit declaration of built-in
function 'calloc' [enabled by default]
geog.c:459:6: warning: format '%d' expects argument of type 'int', but
argument 4 has type 'long int' [-Wformat]
geog.c:601:8: warning: incompatible implicit declaration of built-in
function 'free' [enabled by default]
geog.c:634:5: warning: format '%d' expects argument of type 'int', but
argument 3 has type 'long int' [-Wformat]
gcc -I../include -L../lib -DFBSD -c -o ts.o ts.c
ts.c: In function 'fdiam':
ts.c:85:18: warning: incompatible implicit declaration of built-in function
'alloca' [enabled by default]
ts.c:89:18: warning: incompatible implicit declaration of built-in function
'malloc' [enabled by default]
ts.c:96:24: warning: incompatible implicit declaration of built-in function
'malloc' [enabled by default]
ts.c:99:24: warning: incompatible implicit declaration of built-in function
'alloca' [enabled by default]
ts.c:157:2: warning: incompatible implicit declaration of built-in function
'free' [enabled by default]
ts.c:160:7: warning: incompatible implicit declaration of built-in function
'free' [enabled by default]
ts.c: In function 'die':
ts.c:176:1: warning: format '%s' expects argument of type 'char *', but
argument 3 has type 'int' [-Wformat]
ts.c:177:1: warning: incompatible implicit declaration of built-in function
'exit' [enabled by default]
ts.c: In function 'transtub':
ts.c:272:21: warning: incompatible implicit declaration of built-in
function 'malloc' [enabled by default]
ts.c:296:6: warning: incompatible implicit declaration of built-in function
'free' [enabled by default]
ts.c:485:6: warning: format '%d' expects argument of type 'int', but
argument 3 has type 'long int' [-Wformat]
ts.c:485:6: warning: format '%d' expects argument of type 'int', but
argument 4 has type 'long int' [-Wformat]
ts.c:509:7: warning: format '%d' expects argument of type 'int', but
argument 3 has type 'long int' [-Wformat]
ts.c:509:7: warning: format '%d' expects argument of type 'int', but
argument 4 has type 'long int' [-Wformat]
ts.c:542:3: warning: format '%d' expects argument of type 'int', but
argument 3 has type 'long int' [-Wformat]
ts.c:542:3: warning: format '%d' expects argument of type 'int', but
argument 4 has type 'long int' [-Wformat]
ts.c:543:2: warning: incompatible implicit declaration of built-in function
'exit' [enabled by default]
ts.c:668:4: warning: incompatible implicit declaration of built-in function
'free' [enabled by default]
gcc -I../include -L../lib -DFBSD -c -o dfs.o dfs.c
dfs.c: In function 'isconnected':
dfs.c:34:26: warning: incompatible implicit declaration of built-in
function 'alloca' [enabled by default]
dfs.c:36:26: warning: incompatible implicit declaration of built-in
function 'malloc' [enabled by default]
dfs.c:43:29: warning: incompatible implicit declaration of built-in
function 'free' [enabled by default]
gcc -I../include -L../lib -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o
-lm -lgb
gcc -I../include -L../lib -DFBSD -c -o sgb2alt.o sgb2alt.c
sgb2alt.c: In function 'main':
sgb2alt.c:50:5: warning: format '%d' expects argument of type 'int', but
argument 3 has type 'long int' [-Wformat]
sgb2alt.c:50:5: warning: format '%d' expects argument of type 'int', but
argument 4 has type 'long int' [-Wformat]
sgb2alt.c:77:7: warning: format '%d' expects argument of type 'int', but
argument 5 has type 'long int' [-Wformat]
gcc -I../include -L../lib -DFBSD -o ../bin/sgb2alt sgb2alt.o -lm -lgb
gcc -I../include -L../lib -DFBSD -c -o edriver.o edriver.c
edriver.c: In function 'main':
edriver.c:85:2: warning: incompatible implicit declaration of built-in
function 'exit' [enabled by default]
edriver.c:98:12: warning: incompatible implicit declaration of built-in
function 'strlen' [enabled by default]
edriver.c:99:5: warning: incompatible implicit declaration of built-in
function 'strcpy' [enabled by default]
edriver.c:105:5: warning: incompatible implicit declaration of built-in
function 'exit' [enabled by default]
edriver.c:108:17: warning: incompatible implicit declaration of built-in
function 'exit' [enabled by default]
edriver.c:147:2: warning: incompatible implicit declaration of built-in
function 'exit' [enabled by default]
edriver.c:164:5: warning: incompatible implicit declaration of built-in
function 'exit' [enabled by default]
gcc -I../include -L../lib -DFBSD -c -o eval.o eval.c
eval.c: In function 'bicomp':
eval.c:162:5: warning: format '%d' expects argument of type 'int', but
argument 2 has type 'long int' [-Wformat]
eval.c:164:5: warning: format '%d' expects argument of type 'int', but
argument 2 has type 'long int' [-Wformat]
eval.c:172:5: warning: format '%d' expects argument of type 'int', but
argument 2 has type 'long int' [-Wformat]
eval.c:175:8: warning: format '%d' expects argument of type 'int', but
argument 2 has type 'long int' [-Wformat]
eval.c:184:12: warning: format '%d' expects argument of type 'int', but
argument 2 has type 'long int' [-Wformat]
eval.c:184:12: warning: format '%d' expects argument of type 'int', but
argument 3 has type 'long int' [-Wformat]
eval.c:184:12: warning: format '%d' expects argument of type 'int', but
argument 4 has type 'long int' [-Wformat]
gcc -I../include -L../lib -DFBSD -o ../bin/edriver edriver.o eval.o -lm
-lgb

No comments:

Post a Comment

Counter

blogger analytics