[Bug 881] New: SIGSEGV on startup

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Wed Dec 4 19:44:29 CET 2013


https://bugzilla.netfilter.org/show_bug.cgi?id=881

           Summary: SIGSEGV on startup
           Product: nftables
           Version: unspecified
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: nft
        AssignedTo: pablo at netfilter.org
        ReportedBy: shawn at churchofgit.com
   Estimated Hours: 0.0


root at debian-T61:~# gdb nft
GNU gdb (GDB) 7.6.1 (Debian 7.6.1-1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /sbin/nft...done.
(gdb) r
Starting program: /sbin/nft 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Memory allocation failure

Program received signal SIGSEGV, Segmentation fault.
mnl_socket_close (nl=0x0) at socket.c:248
248        int ret = close(nl->fd);
(gdb) bt
#0  mnl_socket_close (nl=0x0) at socket.c:248
#1  0x0000000000410f79 in netlink_close_sock () at src/netlink.c:45
#2  0x00007ffff7de9fcf in _dl_fini () at dl-fini.c:253
#3  0x00007ffff717fa91 in __run_exit_handlers (status=2, listp=0x7ffff74ec5c8
<__exit_funcs>, 
    run_list_atexit=run_list_atexit at entry=true) at exit.c:77
#4  0x00007ffff717fb15 in __GI_exit (status=<optimized out>) at exit.c:99
#5  0x0000000000419b60 in memory_allocation_error () at src/utils.c:24
#6  0x0000000000410f3a in netlink_open_sock () at src/netlink.c:37
#7  0x00000000004291cd in __libc_csu_init ()
#8  0x00007ffff7167925 in __libc_start_main (main=0x405219 <main>, argc=1, 
    ubp_av=0x7fffffffe738, init=0x429170 <__libc_csu_init>, fini=<optimized
out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffffffe728) at libc-start.c:235
#9  0x0000000000404d49 in _start ()
(gdb) list src/netlink.c:45
40        mnl_batch_init();
41    }
42    
43    static void __exit netlink_close_sock(void)
44    {
45        mnl_socket_close(nf_sock);
46    }
47    
48    int netlink_io_error(struct netlink_ctx *ctx, const struct location *loc,
49                 const char *fmt, ...)
(gdb) list dl-fini.c:253
248    dl-fini.c: No such file or directory.
(gdb) list socket.c:248
243     * On error, this function returns -1 and errno is appropriately set.
244     * On success, it returns 0.
245     */
246    int mnl_socket_close(struct mnl_socket *nl)
247    {
248        int ret = close(nl->fd);
249        free(nl);
250        return ret;
251    }
252    EXPORT_SYMBOL(mnl_socket_close);


using git HEAD of nftables, libnftables, and debian unstable of everything
else.

-- 
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the netfilter-buglog mailing list