FS#52951 - [etherape] "segfault at 4b7fe0018 ip 00000327ae81b289 sp 0000039bd71a0350" during nmap port scan

Attached to Project: Community Packages
Opened by Deactivated account (TechnicalTotoro) - Monday, 13 February 2017, 18:10 GMT
Last edited by Thorsten Töpper (Atsutane) - Saturday, 18 February 2017, 15:14 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thorsten Töpper (Atsutane)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Due to an unfortunate set of circumstances the following command was run on my system:

nmap -sV -A -T aggressive 192.168.0-255.0-255

The command was only able to run a few seconds as I noticed that I had got the wrong alias shortly after due to the large amount of activity shown through Etherape. However, before I had managed to stop nmap, Etherape suddenly quit. I have found the following error with dmesg:

Feb 13 17:29:40 [hostname] kernel: etherape[1166]: segfault at 4b7fe0018 ip 00000327ae81b289 sp 0000039bd71a0350 error 4 in libc-2.24.so[327ae7a4000+195000]

And:

Feb 13 17:29:42 [hostname] systemd-coredump[1902]: Process 1166 (etherape) of user 0 dumped core.

Stack trace of thread 1166:
#0 0x00000327ae81b289 malloc_consolidate (libc.so.6)
#1 0x00000327ae81cd2a _int_malloc (libc.so.6)
#2 0x00000327ae81deb1 _int_realloc (libc.so.6)
#3 0x00000327ae81f4f9 realloc (libc.so.6)
#4 0x00000327b054432a gnome_canvas_path_def_ensure_space (libgnomecanvas-2.so.0)
#5 0x00000327b0544ed6 gnome_canvas_path_def_lineto (libgnomecanvas-2.so.0)
#6 0x00000327b054547c gnome_canvas_path_def_closepath (libgnomecanvas-2.so.0)
#7 0x00000327b054b04f n/a (libgnomecanvas-2.so.0)
#8 0x00000327af7de6c0 g_object_set_valist (libgobject-2.0.so.0)
#9 0x00000327b05558b3 gnome_canvas_item_set_valist (libgnomecanvas-2.so.0)
#10 0x00000327b0555957 gnome_canvas_item_set (libgnomecanvas-2.so.0)
#11 0x00000000004127b1 n/a (etherape)
#12 0x0000000000412a5f n/a (etherape)
#13 0x00000327aeebe204 g_tree_foreach (libglib-2.0.so.0)
#14 0x0000000000413d5c update_diagram (etherape)
#15 0x00000327aee9043a g_main_context_dispatch (libglib-2.0.so.0)
#16 0x00000327aee907f0 n/a (libglib-2.0.so.0)
#17 0x00000327aee90b12 g_main_loop_run (libglib-2.0.so.0)
#18 0x00000327b00233a7 gtk_main (libgtk-x11-2.0.so.0)
#19 0x000000000040c3e4 main (etherape)
#20 0x00000327ae7c4291 __libc_start_main (libc.so.6)
#21 0x000000000040c59a _start (etherape)

Stack trace of thread 1173:
#0 0x00000327af16610f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000000000040d82f n/a (etherape)
#2 0x00000327af160454 start_thread (libpthread.so.0)
#3 0x00000327ae88c7df __clone (libc.so.6)

Stack trace of thread 1167:
#0 0x00000327ae88348d poll (libc.so.6)
#1 0x00000327aee90786 n/a (libglib-2.0.so.0)
#2 0x00000327aee9089c g_main_context_iteration (libglib-2.0.so.0)
#3 0x00000327aee908e1 n/a (libglib-2.0.so.0)
#4 0x00000327aeeb80d5 n/a (libglib-2.0.so.0)
#5 0x00000327af160454 start_thread (libpthread.so.0)
#6 0x00000327ae88c7df __clone (libc.so.6)

Stack trace of thread 1176:
#0 0x00000327af16610f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000000000040d82f n/a (etherape)
#2 0x00000327af160454 start_thread (libpthread.so.0)
#3 0x00000327ae88c7df __clone (libc.so.6)

Stack trace of thread 1172:
#0 0x00000327af16610f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000000000040d82f n/a (etherape)
#2 0x00000327af160454 start_thread (libpthread.so.0)
#3 0x00000327ae88c7df __clone (libc.so.6)

Stack trace of thread 1171:
#0 0x00000327af16610f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000000000040d82f n/a (etherape)
#2 0x00000327af160454 start_thread (libpthread.so.0)
#3 0x00000327ae88c7df __clone (libc.so.6)

Stack trace of thread 1174:
#0 0x00000327af16610f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000000000040d82f n/a (etherape)
#2 0x00000327af160454 start_thread (libpthread.so.0)
#3 0x00000327ae88c7df __clone (libc.so.6)

Stack trace of thread 1175:
#0 0x00000327af16610f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000000000040d82f n/a (etherape)
#2 0x00000327af160454 start_thread (libpthread.so.0)
#3 0x00000327ae88c7df __clone (libc.so.6)

I would rather not try to reproduce the segfault as I would prefer not scan my whole network with nmap so I hope that the logs are enough.
This task depends upon

Closed by  Thorsten Töpper (Atsutane)
Saturday, 18 February 2017, 15:14 GMT
Reason for closing:  Not a bug
Additional comments about closing:  
These stacks just looks like you ran out of memory and the crash happens outside the etherape code, it's simply that realloc fails. Yet in order to make sure I don't misinterpret this I followed your instructions and have now both etherape and nmap running for more than 20 minutes without a crash and I still have 2G of unused RAM which are not even used to cache data.

Loading...