version: SVN 12616, GTK2, Linux i686

I had a fair number of downloads (150+) pending at the time of the crash. I was not actually doing anything in GtkG at the time of the crash - I was switching between several other apps, and when I went back to GtkG the screen was frozen (wouldn't update). I was running in gdb at the time, so I have some useful info. I'm attaching a file with the tail end of the program output, a "bt", a "bt full", and the specific info for the last frame that's actually part of the GtkG code.

I saved a core file (89MiB), and I'll avoid any recompilations for now. Let me know if there's anything else you'd like to look at.

Lloyd Bryant

06-12-14 17:17:49 (WARNING): being promoted to Ultrapeer status
06-12-14 17:17:50 (MESSAGE): Sent D-BUS signal 'PeermodeChange': ultra
06-12-14 17:19:06 (WARNING): mq_tcp_putq: recursion detected
06-12-14 17:19:25 (WARNING): mq_tcp_putq: recursion detected
06-12-14 17:21:00 (WARNING): mq_tcp_putq: recursion detected
06-12-14 17:21:03 (WARNING): mq_tcp_putq: recursion detected
06-12-14 17:21:07 (WARNING): mq_tcp_putq: recursion detected
06-12-14 17:21:33 (MESSAGE): Sent D-BUS signal 'DownloadDone': /home/lloyd/gtk-gnutella-downloads/complete/Playboy_Playmate_1955_01_Betty_Page_.jpg 06-12-14 17:24:38 (WARNING): gnutls_handshake() failed: host=200.147.100.43:6346 (outgoing) error="A TLS packet with unexpected length was received."

Program received signal SIGPIPE, Broken pipe.
[Switching to Thread -1221318992 (LWP 5411)]
0xffffe410 in __kernel_vsyscall ()

(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb757abeb in write () from /lib/tls/i686/cmov/libc.so.6
#2 0x081161d3 in socket_plain_write (wio=0x8a99394, buf=0xb412d000, size=23)
   at sockets.c:3299
#3  0x08073740 in bio_write (bio=0xb3aa46c0, data=0xb412d000, len=23)
   at bsched.c:1318
#4  0x0811f799 in tx_link_write (tx=0xb5a88a90, data=0xb412d000, len=23)
   at tx_link.c:214
#5 0x0811ce62 in tx_write (tx=0xb5a88a90, data=0xb412d000, len=23) at tx.c:244
#6  0x0811d54b in deflate_send (tx=0xb6f0da90) at tx_deflate.c:143
#7 0x0811d86e in deflate_rotate_and_send (tx=0xb6f0da90) at tx_deflate.c:250
#8  0x0811db7b in deflate_flush_send (tx=0xb6f0da90) at tx_deflate.c:371
#9 0x0811dcfb in deflate_nagle_timeout (unused_cq=0xb6f52d58, arg=0xb6f0da90)
   at tx_deflate.c:414
#10 0x081e8ac6 in cq_expire (cq=0xb6f52d58, ev=0xb3a5f08c) at cq.c:356
#11 0x081e8ba8 in cq_clock (cq=0xb6f52d58, elapsed=100) at cq.c:407
#12 0x081e8d1c in callout_timer (unused_p=0x0) at cq.c:477
#13 0xb7850dd6 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#14 0xb7850802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#15 0xb78537df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#16 0xb7853b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#17 0xb7cda574 in IA__gtk_main () at gtkmain.c:1024
#18 0x0813e713 in main_gui_run (geometry_spec=0x0) at main.c:845
#19 0x08056c65 in main (argc=1, argv=0xbfb2cb74) at main.c:1228

(gdb) bt full
#0  0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb757abeb in write () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2 0x081161d3 in socket_plain_write (wio=0x8a99394, buf=0xb412d000, size=23)
   at sockets.c:3299
       s = (struct gnutella_socket *) 0x8a99348
       assertion_data_ = {line = 0x82539bb "3297",
 file = 0x8251ea2 "sockets.c", expr = 0x82539c0 "!socket_uses_tls(s)"}
#3  0x08073740 in bio_write (bio=0xb3aa46c0, data=0xb412d000, len=23)
   at bsched.c:1318
       available = 1643
       amount = 23
       r = 0
       assertion_data_ = {line = 0x822baf0 "1298",
 file = 0x822b4d0 "bsched.c", expr = 0x822baf5 "bio->flags & BIO_F_WRITE"}
#4  0x0811f799 in tx_link_write (tx=0xb5a88a90, data=0xb412d000, len=23)
   at tx_link.c:214
       attr = (struct attr *) 0xb5b03f60
       r = -1
#5 0x0811ce62 in tx_write (tx=0xb5a88a90, data=0xb412d000, len=23) at tx.c:244
       assertion_data_ = {line = 0x825721c "237", file = 0x825710b "tx.c",
 expr = 0x8257174 "tx"}
#6  0x0811d54b in deflate_send (tx=0xb6f0da90) at tx_deflate.c:143
       attr = (struct attr *) 0xb4e7e324
       b = (struct buffer *) 0xb4e7e334
       len = 23
       r = 0
       assertion_data_ = {line = 0x82575dc "127",
 file = 0x8257554 "tx_deflate.c", expr = 0x82575e0 "attr->send_idx >= 0"}
       assertion_data_ = {line = 0x82575ac "128",
 file = 0x8257554 "tx_deflate.c",
 expr = 0x82575b0 "attr->send_idx < BUFFER_COUNT"}
       assertion_data_ = {line = 0x8257580 "137",
 file = 0x8257554 "tx_deflate.c",
 expr = 0x8257584 "len > 0 && len <= INT_MAX"}
       assertion_data_ = {line = 0x8257550 "177",
 file = 0x8257554 "tx_deflate.c", expr = 0x8257561 "b->rptr < b->wptr"}
#7 0x0811d86e in deflate_rotate_and_send (tx=0xb6f0da90) at tx_deflate.c:250
       attr = (struct attr *) 0xb4e7e324
       assertion_data_ = {line = 0x82576fc "226",
 file = 0x8257554 "tx_deflate.c", expr = 0x8257700 "-1 == attr->send_idx"}
#8  0x0811db7b in deflate_flush_send (tx=0xb6f0da90) at tx_deflate.c:371
       b = (struct buffer *) 0xb4e7e334
       attr = (struct attr *) 0xb4e7e324
#9 0x0811dcfb in deflate_nagle_timeout (unused_cq=0xb6f52d58, arg=0xb6f0da90)
   at tx_deflate.c:414
       tx = (txdrv_t *) 0xb6f0da90
       attr = (struct attr *) 0xb4e7e324
#10 0x081e8ac6 in cq_expire (cq=0xb6f52d58, ev=0xb3a5f08c) at cq.c:356
       fn = (cq_service_t) 0x811db7d <deflate_nagle_timeout>
       arg = (gpointer) 0xb6f0da90
       assertion_data_ = {line = 0x827e3b8 "344", file = 0x827e059 "cq.c",
 expr = 0x827e05e "valid_ptr(cq)"}
       assertion_data_ = {line = 0x827e3a8 "345", file = 0x827e059 "cq.c",
 expr = 0x827e2fc "ev->ce_magic == EV_MAGIC"}
       assertion_data_ = {line = 0x827e398 "346", file = 0x827e059 "cq.c",
 expr = 0x827e284 "valid_ptr(cast_func_to_gpointer((func_ptr_t) fn))"}
#11 0x081e8ba8 in cq_clock (cq=0xb6f52d58, elapsed=100) at cq.c:407
       bucket = 564
       last_bucket = 567
       ch = (struct chash *) 0xb6e9c1a0
       ev = (cevent_t *) 0xb3a5f08c
       now = 4835049
       assertion_data_ = {line = 0x827e410 "378", file = 0x827e059 "cq.c",
 expr = 0x827e05e "valid_ptr(cq)"}
       assertion_data_ = {line = 0x827e3f0 "379", file = 0x827e059 "cq.c",
 expr = 0x827e3f4 "elapsed >= 0"}
       assertion_data_ = {line = 0x827e3c8 "380", file = 0x827e059 "cq.c",
 expr = 0x827e3cc "cq->cq_current == NULL"}
#12 0x081e8d1c in callout_timer (unused_p=0x0) at cq.c:477
       tv = {tv_sec = 1166142432, tv_usec = 279446}
       delay = 100
       last_period = {tv_sec = 1166142432, tv_usec = 279446}
#13 0xb7850dd6 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#14 0xb7850802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#15 0xb78537df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#16 0xb7853b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#17 0xb7cda574 in IA__gtk_main () at gtkmain.c:1024
       tmp_list = (GList *) 0x0
       functions = (GList *) 0x0
       init = (GtkInitFunction *) 0x813f28e
       loop = (GMainLoop *) 0xb7efee64
#18 0x0813e713 in main_gui_run (geometry_spec=0x0) at main.c:845
       now = 1166137569
#19 0x08056c65 in main (argc=1, argv=0xbfb2cb74) at main.c:1228
No locals.
 expr = 0x827e3cc "cq->cq_current == NULL"}
#12 0x081e8d1c in callout_timer (unused_p=0x0) at cq.c:477
       tv = {tv_sec = 1166142432, tv_usec = 279446}
       delay = 100
       last_period = {tv_sec = 1166142432, tv_usec = 279446}
#13 0xb7850dd6 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#14 0xb7850802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#15 0xb78537df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#16 0xb7853b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#17 0xb7cda574 in IA__gtk_main () at gtkmain.c:1024
       tmp_list = (GList *) 0x0
       functions = (GList *) 0x0
       init = (GtkInitFunction *) 0x813f28e
       loop = (GMainLoop *) 0xb7efee64
#18 0x0813e713 in main_gui_run (geometry_spec=0x0) at main.c:845
       now = 1166137569
#19 0x08056c65 in main (argc=1, argv=0xbfb2cb74) at main.c:1228
No locals.

(gdb) frame 2
#2 0x081161d3 in socket_plain_write (wio=0x8a99394, buf=0xb412d000, size=23)
   at sockets.c:3299
3299            return write(s->file_desc, buf, size);

(gdb) p *s
$1 = {magic = SOCKET_MAGIC, file_desc = 67, flags = 2147483649, gdk_tag = 0,
 direction = SOCK_CONN_INCOMING, type = SOCK_TYPE_CONTROL,
net = NET_TYPE_NONE, omit_token = 1, corked = 0, was_shutdown = 0, adns = 0,
 adns_msg = 0x0, addr = {net = 4, addr = {
     ipv6 = "X\177z�\000\002\000\000\026\030\000\0000\233ݴ",
     ipv4 = 3413802840,
     u8 = "X\177z�\000\002\000\000\026\030\000\0000\233ݴ", u16 = {32600,
       52090, 512, 0, 6166, 0, 39728, 46301}, u32 = {3413802840, 512, 6166,
       3034422064}}}, port = 33657, local_port = 41112, last_update = 0,
 wio = {ctx = 0x8a99348, write = 0x8116185 <socket_plain_write>,
   read = 0x8116206 <socket_plain_read>,
   writev = 0x8116256 <socket_plain_writev>,
   readv = 0x81162a6 <socket_plain_readv>,
   sendto = 0x8116588 <socket_no_sendto>, fd = 0x8116164 <socket_get_fd>},
 tls = {ctx = 0x0, enabled = 0, stage = SOCK_TLS_NONE, snarf = 0,
   cb_cond = 0, cb_handler = 0, cb_data = 0x0}, resource = {
   node = 0xb4062000, download = 0xb4062000, upload = 0xb4062000,
   pproxy = 0xb4062000, cproxy = 0xb4062000, handle = 0xb4062000},
 getline = 0x0, pos = 0, buf_size = 4096,
buf = 0xb4395000 "\r\nntent-Encoding: deflate\r\n\r\ntent-Encoding: deflate\r\n\r\nEncoding: deflate\r\n\r\n-12-15T00:25Z,69.249.145.203:6346 2006-12-15T00:25Z,24.28.84.178:6346 2006-12-15T00:25Z,151.44.163.32:6348 2006-12-15T00:25Z"...}

(gdb) p s->file_desc
$2 = 67

(gdb) p buf
$3 = (gconstpointer) 0xb412d000

(gdb) p size
$4 = 23




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to