Package: libsoup
Version: 2.2-8

When trying to create a new SoupSoapMessage the program segfaults upon calling the
soup_soap_message_new(...) function, instead of returning NULL upon failure.


A small testing codesnippet:

#include <libsoup/soup.h>
#include <libsoup/soup-soap-message.h>
#include <libsoup/soup-soap-response.h>

SoupSession *session;
GMainLoop *loop;

int
main (int argc, char **argv)
{
   SoupSoapMessage *msg;

   g_type_init ();
   g_thread_init (NULL);

   session = soup_session_async_new();

   msg = soup_soap_message_new ("POST",
                    "http://utelscin.scintilla";,
                    FALSE, NULL, NULL, NULL);
   if (!msg) {
       fprintf (stderr, "Could not create web service request\n");
       exit (1);
   }

   return 0;
}

Compiled with "gcc `pkg-config --cflags --libs libsoup-2.2` -Wall -o libsoupbug libsoupbug.c"

Running the program results in:
(process:14675): GLib-GObject-WARNING **: g_type_get_private() requires a prior call to g_type_add_private()
Segmentation fault

Versions of other related packages:
   libglib2.0 -> Version 2.8.1-1
   glibc -> Version 2.3.5-3
   kernel -> Vanilla 2.6.9



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to