This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/17371] New: libc segfaults inside getifaddrs_internal


https://sourceware.org/bugzilla/show_bug.cgi?id=17371

            Bug ID: 17371
           Summary: libc segfaults inside getifaddrs_internal
           Product: glibc
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: simongmzlj at gmail dot com
                CC: drepper.fsp at gmail dot com

libc segfaults inside getifaddrs_internal. Noticed it in sudo and wireshark. A
quick backtrace produces this:

#0  0x00007faf8133fabc in getifaddrs_internal () from /usr/lib/libc.so.6
#1  0x00007faf8133fcc0 in getifaddrs () from /usr/lib/libc.so.6
#2  0x00007faf81c1534f in get_net_ifs (addrinfo=0x7fffa3b0de20) at
./net_ifs.c:124
#3  0x00007faf81c1672d in parse_args (argc=1, argv=0x7fffa3b0f128,
nargc=0x7fffa3b0df7c, nargv=0x7fffa3b0df70, settingsp=0x7fffa3b0df68,
env_addp=0x7fffa3b0df60) at ./parse_args.c:198
#4  0x00007faf81c19190 in main (argc=<optimized out>, argv=0x7fffa3b0f128,
envp=0x7fffa3b0f138) at ./sudo.c:191

I do have a an interesting network setup:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode
DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bridge0 state UP mode DEFAULT group default qlen 1000
    link/ether 74:d0:2b:c5:99:28 brd ff:ff:ff:ff:ff:ff
3: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
mode DEFAULT group default qlen 1000
    link/ether 74:d0:2b:c5:95:ef brd ff:ff:ff:ff:ff:ff
4: tap2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master
bridge0 state DOWN mode DEFAULT group default qlen 500
    link/ether a2:2e:cd:67:79:48 brd ff:ff:ff:ff:ff:ff
5: tap1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bridge0 state UP mode DEFAULT group default qlen 500
    link/ether de:9c:71:d7:30:1b brd ff:ff:ff:ff:ff:ff
6: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master
bridge0 state DOWN mode DEFAULT group default qlen 500
    link/ether b6:ff:4a:7f:4e:4a brd ff:ff:ff:ff:ff:ff
7: bridge0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
mode DEFAULT group default 
    link/ether c2:18:88:08:41:a6 brd ff:ff:ff:ff:ff:ff

Not sure what else exactly you need, feel free to ask.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]