Search Linux Wireless

Re: iw packaging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-09-16 at 16:50 -0400, Pavel Roskin wrote:

> Sorry for diverting the thread, but the current git head (which is
> tagged as 0.9.1) is broken.
> 
> $ ./iw 
> Usage:  ./iw [options] command
> Options:
>         --debug         enable netlink debugging
>         --version       show version
> Commands:
>         list
>         Segmentation fault (core dumped)
> 
> Debugging shows:
> 
> 82              fprintf(stderr, "Commands:\n");
> (gdb) 
> Commands:
> 83              for (cmd = &__start___cmd; cmd < &__stop___cmd; cmd++) {
> (gdb) p __start___cmd
> $1 = {section = 0x0, name = 0x403d02 "info", args = 0x0, cmd = NL80211_CMD_GET_WIPHY, 
>   nl_msg_flags = 0, idby = CIB_PHY, handler = 0x402403 <handle_info>}
> (gdb) p *(&__start___cmd + 1)
> $2 = {section = 0x0, name = 0x0, args = 0x0, cmd = 4209927, nl_msg_flags = 0, idby = CIB_NONE, 
>   handler = 0x30000000001}
> (gdb)
> 
> That means, __start___cmd points to "info".  The next command has no
> name (and appears to be a complete mess).  The clever section trick
> doesn't seem to work properly.

Strange. It's supposed to work, it's documented that way, and it's
working fine here... Ideas anyone?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux