From: George Nychis <gnychis@cmu.edu>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] how to debug RTNETLINK invalid argument?
Date: Wed, 24 May 2006 14:14:00 +0000 [thread overview]
Message-ID: <44746A28.5050906@cmu.edu> (raw)
In-Reply-To: <44733597.4000208@cmu.edu>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 6342 bytes --]
Luciano Ruete wrote:
> El Tuesday 23 May 2006 13:17, George Nychis escribió:
>> Hey,
>>
>> I am getting an invalid argument trying to insert a qdisc:
>>
>> [root@emu-5 iproute2]# tc qdisc add dev eth0 root xcp capacity 50Mbit
>> limit 500
>> RTNETLINK answers: Invalid argument
>>
>> I'm not sure whats wrong here, because i can successfully insert this
>> qdisc on other computers of mine.
>>
>> How can i debug this?
>
> maybe strace (system calls and signals trace) can give you some clues.
>
> strace tc qdisc add dev eth0 root xcp capacity 50Mbit limit 500
>
Heres what I get as the output:
execve("/sbin/tc", ["tc", "qdisc", "add", "dev", "eth0", "root", "xcp",
"capacity", "50Mbit", "limit", "500"], [/* 22 vars */]) = 0
uname({sys="Linux", node="emu-5", ...}) = 0
set_tid_address(0) = -1 ENOSYS (Function not
implemented)
brk(0) = 0x80705cc
brk(0x8071000) = 0x8071000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_sizec789, ...}) = 0
old_mmap(NULL, 63789, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40000000
close(3) = 0
open("/lib/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\223"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size316, ...}) = 0
old_mmap(0x4e2d7000, 80040, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4e2d7000
mprotect(0x4e2e6000, 18600, PROT_NONE) = 0
old_mmap(0x4e2e7000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x4e2e7000
old_mmap(0x4e2e9000, 6312, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4e2e9000
close(3) = 0
open("/lib/i686/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\263G"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size!5248, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40010000
old_mmap(0x44478000, 139424, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x44478000
old_mmap(0x44499000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x44499000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\333"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size\x16908, ...}) = 0
old_mmap(0x473fd000, 12388, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x473fd000
old_mmap(0x473ff000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x473ff000
close(3) = 0
open("/lib/i686/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p36D4\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size\x1499368, ...}) = 0
old_mmap(0x4434e000, 1211684, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4434e000
mprotect(0x4446f000, 27940, PROT_NONE) = 0
old_mmap(0x44470000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x121000) = 0x44470000
old_mmap(0x44474000, 7460, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x44474000
close(3) = 0
mprotect(0x44470000, 8192, PROT_READ) = 0
mprotect(0x473ff000, 4096, PROT_READ) = 0
mprotect(0x44499000, 4096, PROT_READ) = 0
mprotect(0x4e2e7000, 4096, PROT_READ) = 0
mprotect(0xb8b000, 4096, PROT_READ) = 0
munmap(0x40000000, 63789) = 0
brk(0) = 0x8071000
brk(0x8092000) = 0x8092000
open("/proc/net/psched", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40000000
read(3, "000c8000 000f4240 000f4240 00000"..., 4096) = 36
close(3) = 0
munmap(0x40000000, 4096) = 0
socket(PF_NETLINK, SOCK_RAW, 0) = 3
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0
bind(3, {sa_family¯_NETLINK, pid=0, groups\0000000}, 12) = 0
getsockname(3, {sa_family¯_NETLINK, pidT07, groups\0000000}, [12]) = 0
time(NULL) = 1148447549
open("/usr/lib/tc/q_xcp.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\270\5\0"...,
512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_sizeA92, ...}) = 0
old_mmap(NULL, 6908, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4,
0) = 0x40000000
old_mmap(0x40001000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0) = 0x40001000
close(4) = 0
sendto(3, "\24\0\0\0\22\0\1\3>\353sD\0\0\0\0\0\0\0\0", 20, 0,
{sa_family¯_NETLINK, pid=0, groups\0000000}, 12) = 20
recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups\0000000},
msg_iov(1)=[{"\264\0\0\0\20\0\2\0>\353sD\37\25\0\0\0\0\4\3\1\0\0\0I\0"...,
16384}], msg_controllen=0, msg_flags=0}, 0) = 920
recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups\0000000},
msg_iov(1)=[{"\24\0\0\0\3\0\2\0>\353sD\37\25\0\0\0\0\0\0\1\0\0\0I\0\0"...,
16384}], msg_controllen=0, msg_flags=0}, 0) = 20
sendmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups\0000000},
msg_iov(1)=[{"8\0\0\0$\0\5\6?\353sD\0\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0\377"...,
56}], msg_controllen=0, msg_flags=0}, 0) = 56
recvmsg(3, {msg_name(12)={sa_family¯_NETLINK, pid=0, groups\0000000},
msg_iov(1)=[{"$\0\0\0\2\0\0\0?\353sD\37\25\0\0\352\377\377\3778\0\0\0"...,
16384}], msg_controllen=0, msg_flags=0}, 0) = 36
dup(2) = 4
fcntl64(4, F_GETFL) = 0x8001 (flags
O_WRONLY|O_LARGEFILE)
close(4) = 0
write(2, "RTNETLINK answers: Invalid argum"..., 36RTNETLINK answers:
Invalid argument
) = 36
close(3) = 0
exit_group(2) = ?
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2006-05-24 14:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-23 16:17 [LARTC] how to debug RTNETLINK invalid argument? George Nychis
2006-05-23 16:23 ` Larry Brigman
2006-05-23 17:12 ` George Nychis
2006-05-23 17:51 ` Larry Brigman
2006-05-23 23:29 ` George Nychis
2006-05-24 0:21 ` Larry Brigman
2006-05-24 1:04 ` George Nychis
2006-05-24 1:40 ` Stephen Hemminger
2006-05-24 2:12 ` Luciano Ruete
2006-05-24 14:14 ` George Nychis [this message]
2006-05-24 15:06 ` George Nychis
2006-05-24 15:24 ` George Nychis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44746A28.5050906@cmu.edu \
--to=gnychis@cmu.edu \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox