After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 471385 - soup_message_io_unpause() crashes if socket has disconnected
soup_message_io_unpause() crashes if socket has disconnected
Status: RESOLVED NOTABUG
Product: libsoup
Classification: Core
Component: HTTP Transport
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dan Winship
Dan Winship
Depends on:
Blocks:
 
 
Reported: 2007-08-29 01:31 UTC by Dan Winship
Modified: 2007-10-28 17:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Winship 2007-08-29 01:31:20 UTC
from http://mail.gnome.org/archives/libsoup-list/2007-July/msg00002.html:

I ran into the following problem: while a request is paused, the client
disconnects, so I get

(process:9347): libsoup-CRITICAL **: soup_socket_is_connected: assertion
`SOUP_IS_SOCKET (sock)' failed
(process:9347): libsoup-CRITICAL **: soup_socket_disconnect: assertion
`SOUP_IS_SOCKET (sock)' failed
1185340379>=1185340385, kicking
(process:9347): libsoup-CRITICAL **: soup_message_set_status: assertion
`SOUP_IS_MESSAGE (msg)' failed
(process:9347): GLib-GObject-WARNING **: instance of invalid
non-instantiatable type `(null)'
./run++: line 5:  9347 Segmentation fault      (core dumped)
LD_LIBRARY_PATH=/usr/lib:/home/gritzko/lib ./httpxmppgw

on

  • #0 soup_message_io_unpause
    from /usr/lib/libsoup-2.2.so.8
  • #1 User::kickTimedOut
    at hxgw_user.cpp line 266
  • #2 freeze_timeout_cb
    at hxgw_user.cpp line 250
  • #3 g_source_get_current_time
    from /usr/lib/libglib-2.0.so.0
  • #4 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #5 g_main_context_check
    from /usr/lib/libglib-2.0.so.0
  • #6 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #7 main
    at hxgw_main.cpp line 17

Comment 1 Dan Winship 2007-10-28 17:28:35 UTC
The problem here is that you need to watch the message's "finished" signal when using chunked encoding. Updated the docs and sample programs accordingly.