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 680496 - Can't compile - 1 of 9 tests failed - rygel-http-post-test
Can't compile - 1 of 9 tests failed - rygel-http-post-test
Status: RESOLVED OBSOLETE
Product: rygel
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: rygel-maint
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2012-07-23 23:40 UTC by Nathan
Modified: 2015-04-24 09:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes RygelHTTPGetTest in Murray's case. (946 bytes, patch)
2012-09-21 12:15 UTC, Krzesimir Nowak
none Details | Review

Description Nathan 2012-07-23 23:40:32 UTC
Here's the output from make:

make[3]: Entering directory `/home/ndbroadbent/code/rygel/tests'
make[3]: `rygel-http-item-uri-test' is up to date.
make[3]: `rygel-http-response-test' is up to date.
make[3]: `rygel-http-byte-seek-test' is up to date.
make[3]: `rygel-http-time-seek-test' is up to date.
make[3]: `rygel-http-get-test' is up to date.
make[3]: `rygel-http-post-test' is up to date.
make[3]: `rygel-searchable-container-test' is up to date.
make[3]: `rygel-item-creator-test' is up to date.
make[3]: Leaving directory `/home/ndbroadbent/code/rygel/tests'
make  check-TESTS
make[3]: Entering directory `/home/ndbroadbent/code/rygel/tests'
PASS: rygel-http-item-uri-test
PASS: rygel-http-response-test
PASS: rygel-http-byte-seek-test
PASS: rygel-http-time-seek-test

(process:17996): Rygel-WARNING **: rygel-http-request_http-get.vala:97: Invalid Request

(process:17996): Rygel-WARNING **: rygel-http-request_http-get.vala:97: Interactive mode not supported for 'VideoItem'

(process:17996): Rygel-WARNING **: rygel-http-request_http-get.vala:97: Interactive mode not supported for 'VideoItem'

(process:17996): Rygel-WARNING **: rygel-http-request_http-get.vala:97: No Thumbnail available for item 'AudioItem

(process:17996): Rygel-WARNING **: rygel-http-request_http-get.vala:97: No Thumbnail available for item 'AudioItem

(process:17996): Rygel-WARNING **: rygel-http-request_http-get.vala:97: Invalid seek request

(process:17996): Rygel-WARNING **: rygel-http-request_http-get.vala:97: Invalid seek request
PASS: rygel-http-get-test
PASS: rygel-album-art-spec-test

(process:18002): Rygel-CRITICAL **: rygel-http-post-test.vala:88: Timeout
FAIL: rygel-http-post-test
PASS: rygel-searchable-container-test

(process:18027): Rygel-WARNING **: Failed to create item under '(null)': No such object

(process:18027): Rygel-WARNING **: Failed to create item under '0': Comments not allowed in XML

(process:18027): Rygel-WARNING **: Failed to create item under '0': 'Elements' argument missing.

(process:18027): Rygel-WARNING **: Failed to create item under '0': Bad metadata

(process:18027): Rygel-WARNING **: Failed to create item under '0': No items in DIDL-Lite from client: '<?xml version="1.0" encoding="UTF-8"?>
<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/         http://www.upnp.org/schemas/av/didl-lite-v2-20060531.xsd       urn:schemas-upnp-org:metadata-1-0/upnp/         http://www.upnp.org/schemas/av/upnp-v2-20060531.xsd">  </DIDL-Lite>
'

(process:18027): Rygel-WARNING **: Failed to create item under '0': Bad metadata

(process:18027): Rygel-WARNING **: Failed to create item under '0': Cannot create restricted item

(process:18027): Rygel-WARNING **: Failed to create item under '0': @id must be set to "" in CreateItem

(process:18027): Rygel-WARNING **: Failed to create item under '0': @id must be set to "" in CreateItem

(process:18027): Rygel-WARNING **: Failed to create item under '0': dc:title must be set in CreateItem

(process:18027): Rygel-WARNING **: Failed to create item under '0': Invalid upnp:class given 

(process:18027): Rygel-WARNING **: Failed to create item under '0': Invalid upnp:class given 

(process:18027): Rygel-WARNING **: Failed to create item under '0': Invalid upnp:class given 

(process:18027): Rygel-WARNING **: Failed to create item under '0': No such object

(process:18027): Rygel-WARNING **: Failed to create item under '0': No such object

(process:18027): Rygel-WARNING **: Failed to create item under '0': Object creation in (null) not allowed

(process:18027): Rygel-WARNING **: Failed to create item under '0': Object creation in (null) not allowed

(process:18027): Rygel-WARNING **: Failed to create item under '0': Creating of objects with class object.item.audioItem is not supported in (null)

(process:18027): Rygel-WARNING **: Failed to create item under 'DLNA.ORG_AnyContainer': No such object

(process:18027): Rygel-WARNING **: Failed to create item under 'DLNA.ORG_AnyContainer': 'object.item.audioItem' UPnP class unsupported
PASS: rygel-item-creator-test
======================================================================
1 of 9 tests failed
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=Rygel
======================================================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/home/ndbroadbent/code/rygel/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/ndbroadbent/code/rygel/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ndbroadbent/code/rygel'
make: *** [all] Error 2
Comment 1 Nathan 2012-07-23 23:41:05 UTC
$ valac --version
=> Vala 0.16.1
Comment 2 Jens Georg 2012-07-27 20:33:32 UTC
hm, works here. Although we have reports of that failing on some exotic debian arch builders
Comment 3 Jens Georg 2012-08-14 10:28:32 UTC
Does running gst-inspect-0.10 before running the tests fix this?
Comment 4 Murray Cumming 2012-09-19 07:49:18 UTC
The same test fails for me (on Fedora 17 in jhbuild), though the output looks slightly different:

make[3]: Entering directory
`/home/murrayc/checkout/gnome/github/rygel/tests'
PASS: rygel-http-item-uri-test
PASS: rygel-http-response-test
PASS: rygel-http-byte-seek-test
PASS: rygel-http-time-seek-test

(process:5743): Rygel-WARNING **: rygel-http-request_http-get.vala:97:
Invalid Request

(process:5743): Rygel-WARNING **: rygel-http-request_http-get.vala:97:
Interactive mode not supported for 'VideoItem'
**
Rygel:ERROR:/home/murrayc/checkout/gnome/github/rygel/tests/rygel-http-get-test.vala:224:rygel_http_get_test_handle_client_message_co: assertion failed: (msg.status_code == this.current_request.expected_code)
/bin/sh: line 5:  5743 Aborted                 (core dumped) ${dir}$tst
FAIL: rygel-http-get-test
Comment 5 Murray Cumming 2012-09-19 18:10:18 UTC
(In reply to comment #3)
> Does running gst-inspect-0.10 before running the tests fix this?

Not for me.

Here is the gdb backtrace at the segfault, though I guess the warnings are where things first go wrong:

  • #0 raise
    from /lib64/libc.so.6
  • #1 abort
    from /lib64/libc.so.6
  • #2 g_assertion_message
    at gtestutils.c line 1877
  • #3 g_assertion_message_expr
    at gtestutils.c line 1888
  • #4 rygel_http_get_test_handle_client_message_co
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get-test.vala line 224
  • #5 rygel_http_get_test_handle_client_message_ready
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get-test.vala line 219
  • #6 g_simple_async_result_complete
    at gsimpleasyncresult.c line 775
  • #7 rygel_http_request_real_run_co
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-request_http-get.vala line 62
  • #8 rygel_http_request_run_ready
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-request_http-get.vala line 69
  • #9 g_simple_async_result_complete
    at gsimpleasyncresult.c line 775
  • #10 rygel_http_get_real_handle_co
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get.vala line 52
  • #11 rygel_http_get_handle_ready
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get.vala line 75
  • #12 g_simple_async_result_complete
    at gsimpleasyncresult.c line 775
  • #13 rygel_http_get_handle_item_request_co
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get.vala line 126
  • #14 rygel_http_get_handle_item_request_ready
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get.vala line 185
  • #15 g_simple_async_result_complete
    at gsimpleasyncresult.c line 775
  • #16 rygel_http_response_real_run_co
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get-test.vala line 473
  • #17 _rygel_http_response_real_run_co_gsource_func
    at rygel-http-get-test.c line 5727
  • #18 __lambda3_
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get-test.vala line 477
  • #19 ___lambda3__gsource_func
    at rygel-http-get-test.c line 5751
  • #20 g_main_dispatch
    at gmain.c line 2715
  • #21 g_main_context_dispatch
    at gmain.c line 3219
  • #22 g_main_context_iterate
    at gmain.c line 3290
  • #23 g_main_loop_run
    at gmain.c line 3484
  • #24 rygel_http_get_test_real_run
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get-test.vala line 114
  • #25 rygel_http_get_test_run
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get-test.vala line 107
  • #26 rygel_http_get_test_main
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get-test.vala line 88
  • #27 main
    at /home/murrayc/checkout/gnome/rygel/tests/rygel-http-get-test.vala line 84

Comment 6 Jens Georg 2012-09-20 15:04:18 UTC
No, the warnings are expected, that's "bounds checking".
Comment 7 Jens Georg 2012-09-21 10:11:17 UTC
I think the failure of the GET test is different from the POST test failure in the original report.
Comment 8 Krzesimir Nowak 2012-09-21 12:15:30 UTC
Created attachment 224921 [details] [review]
Fixes RygelHTTPGetTest in Murray's case.

No need to start async client.run again - it is already done in start_next_test_request.
Comment 9 André Klapper 2014-07-11 16:11:02 UTC
No open questions here; removing NEEDINFO status
Comment 10 Jens Georg 2015-04-24 09:15:58 UTC
Tests need rework after 0.26 release.