libos-nuse / net-next-nuse

Network Stack in Userspace
Other
289 stars 67 forks source link

sendto from nuse process failed #17

Closed upa closed 9 years ago

upa commented 9 years ago
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `../flowgen/flowgen -s 172.16.2.1 -d 172.16.2.2 -n 1 -l 1024 -u'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f6b24b5e6cb in memcpy (dest=0x0, src=0x603188 <flowgen+8>, count=15)
    at lib/string.c:623
623         *tmp++ = *s++;
(gdb) bt
#0  0x00007f6b24b5e6cb in memcpy (dest=0x0, src=0x603188 <flowgen+8>, count=15)
    at lib/string.c:623
#1  0x00007f6b24b27471 in sendto (fd=7, buf=0x60b1cc <flowgen+32844>, len=996, 
    flags=0, dest_addr=0x603188 <flowgen+8>, addrlen=16)
    at arch/sim/nuse-glue.c:392
#2  0x0000000000401ae5 in flowgen_udp_start () at flowgen.c:499
#3  0x0000000000402270 in main (argc=10, argv=0x7fff2617bd98) at flowgen.c:700
upa commented 9 years ago

I confirm that fixed !! flowgen is now running with nuse.