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

gEDA-dev: gschem spinlock?



I'm running a recent CVS version of gschem at the moment, and have
noticed it is taking up near 100% CPU time (one of two CPUs).

Whilst I can't break into it and see exactly what it is doing, strace
output is as follows:

ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1161015163, 526712}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7,
events=POLLIN}, {fd=8, events=POLLIN}], 4, 0) = 0
time(NULL)                              = 1161015163
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1161015163, 526803}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7,
events=POLLIN}, {fd=8, events=POLLIN}], 4, 0) = 0
time(NULL)                              = 1161015163
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1161015163, 526893}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7,
events=POLLIN}, {fd=8, events=POLLIN}], 4, 0) = 0
time(NULL)                              = 1161015163
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1161015163, 526984}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=7,
events=POLLIN}, {fd=8, events=POLLIN}], 4, 0) = 0
time(NULL)                              = 1161015163


repeating lots.

lrwx------ 1 pcjc2 pcjc2 64 2006-10-16 17:14 0 -> /dev/pts/0
lrwx------ 1 pcjc2 pcjc2 64 2006-10-16 17:14 1 -> /dev/pts/0
lrwx------ 1 pcjc2 pcjc2 64 2006-10-16 17:00 2 -> /dev/pts/0
lrwx------ 1 pcjc2 pcjc2 64 2006-10-16 17:14 3 -> socket:[257405]
lrwx------ 1 pcjc2 pcjc2 64 2006-10-16 17:14 4
-> /home/pcjc2/work/dcbc/gschem.log
lr-x------ 1 pcjc2 pcjc2 64 2006-10-16 17:14 5 -> pipe:[260728]
l-wx------ 1 pcjc2 pcjc2 64 2006-10-16 17:14 6 -> pipe:[260728]
lrwx------ 1 pcjc2 pcjc2 64 2006-10-16 17:14 7 -> socket:[260729]
lr-x------ 1 pcjc2 pcjc2 64 2006-10-16 17:14 8 -> inotify

I don't know enough to determine which of these are X11 connections, or
gnome / GTK stuff.

Attaching with gdb and breaking randomly:

#0  0xb7dd3eb1 in gdk_event_send_client_message_for_display ()
from /usr/lib/libgdk-x11-2.0.so.0
#1  0xb7ba95be in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#2  0xb7ba9b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#3  0xb7899574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#4  0x0805ab58 in main_prog (closure=0x0, argc=2, argv=0xbf8a5b54) at
gschem.c:359
#5  0xb7ea1ef3 in scm_boot_guile () from /usr/lib/libguile.so.12
#6  0x0805a686 in main (argc=2, argv=0xbf8a5b54) at gschem.c:384

Program received signal SIGINT, Interrupt.
[Switching to Thread -1219410256 (LWP 8589)]
0xb7b88367 in ?? () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0  0xb7b88367 in ?? () from /usr/lib/libglib-2.0.so.0
#1  0xb7ba61b0 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#2  0xb7ba8686 in g_idle_add_full () from /usr/lib/libglib-2.0.so.0
#3  0xb7ba86e8 in g_idle_add () from /usr/lib/libglib-2.0.so.0
#4  0xb68d23ae in gnome_vfs_get_special_mime_type ()
from /usr/lib/libgnomevfs-2.so.0
#5  0xb68d2aa5 in gnome_vfs_monitor_callback ()
from /usr/lib/libgnomevfs-2.so.0
#6  0xb7ba4aa1 in g_source_is_destroyed ()
from /usr/lib/libglib-2.0.so.0
#7  0xb7ba6802 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
#8  0xb7ba97df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#9  0xb7ba9b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#10 0xb7899574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#11 0x0805ab58 in main_prog (closure=0x0, argc=2, argv=0xbf8a5b54) at
gschem.c:359
#12 0xb7ea1ef3 in scm_boot_guile () from /usr/lib/libguile.so.12
#13 0x0805a686 in main (argc=2, argv=0xbf8a5b54) at gschem.c:384


Program received signal SIGINT, Interrupt.
0xb7e4bcfa in pthread_mutex_unlock ()
from /lib/tls/i686/cmov/libpthread.so.0
(gdb) bt
#0  0xb7e4bcfa in pthread_mutex_unlock ()
from /lib/tls/i686/cmov/libpthread.so.0
#1  0xb7ba671e in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
#2  0xb7ba97df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0xb7ba9b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#4  0xb7899574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#5  0x0805ab58 in main_prog (closure=0x0, argc=2, argv=0xbf8a5b54) at
gschem.c:359
#6  0xb7ea1ef3 in scm_boot_guile () from /usr/lib/libguile.so.12
#7  0x0805a686 in main (argc=2, argv=0xbf8a5b54) at gschem.c:384

Program received signal SIGINT, Interrupt.
0xb7e4b43d in pthread_mutex_lock ()
from /lib/tls/i686/cmov/libpthread.so.0
(gdb) bt
#0  0xb7e4b43d in pthread_mutex_lock ()
from /lib/tls/i686/cmov/libpthread.so.0
#1  0xb7ba658e in g_source_unref () from /usr/lib/libglib-2.0.so.0
#2  0xb7ba846c in g_source_remove () from /usr/lib/libglib-2.0.so.0
#3  0xb68d23ee in gnome_vfs_get_special_mime_type ()
from /usr/lib/libgnomevfs-2.so.0
#4  0xb68d2aa5 in gnome_vfs_monitor_callback ()
from /usr/lib/libgnomevfs-2.so.0
#5  0xb7ba4aa1 in g_source_is_destroyed ()
from /usr/lib/libglib-2.0.so.0
#6  0xb7ba6802 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
#7  0xb7ba97df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#8  0xb7ba9b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#9  0xb7899574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#10 0x0805ab58 in main_prog (closure=0x0, argc=2, argv=0xbf8a5b54) at
gschem.c:359
#11 0xb7ea1ef3 in scm_boot_guile () from /usr/lib/libguile.so.12
#12 0x0805a686 in main (argc=2, argv=0xbf8a5b54) at gschem.c:384

Program received signal SIGINT, Interrupt.
0xb7e4bd33 in pthread_mutex_unlock ()
from /lib/tls/i686/cmov/libpthread.so.0
(gdb) bt
#0  0xb7e4bd33 in pthread_mutex_unlock ()
from /lib/tls/i686/cmov/libpthread.so.0
#1  0xb7ba921d in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#2  0xb7ba95be in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0xb7ba9b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#4  0xb7899574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#5  0x0805ab58 in main_prog (closure=0x0, argc=2, argv=0xbf8a5b54) at
gschem.c:359
#6  0xb7ea1ef3 in scm_boot_guile () from /usr/lib/libguile.so.12
#7  0x0805a686 in main (argc=2, argv=0xbf8a5b54) at gschem.c:384


Program received signal SIGINT, Interrupt.
0xffffe403 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe403 in __kernel_vsyscall ()
#1  0xb7692eb6 in time () from /lib/tls/i686/cmov/libc.so.6
#2  0xb68d281f in gnome_vfs_monitor_callback ()
from /usr/lib/libgnomevfs-2.so.0
#3  0xb7ba4aa1 in g_source_is_destroyed ()
from /usr/lib/libglib-2.0.so.0
#4  0xb7ba6802 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
#5  0xb7ba97df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#6  0xb7ba9b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#7  0xb7899574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#8  0x0805ab58 in main_prog (closure=0x0, argc=2, argv=0xbf8a5b54) at
gschem.c:359
#9  0xb7ea1ef3 in scm_boot_guile () from /usr/lib/libguile.so.12
#10 0x0805a686 in main (argc=2, argv=0xbf8a5b54) at gschem.c:384


I have two gschem windows open from the same process. Am I right in
thinking that this is file-dialog related?

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173



_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev