Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dbus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 249
    • Issues 249
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 33
    • Merge requests 33
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dbus
  • dbus
  • Issues
  • #98
Closed
Open
Created Feb 28, 2014 by Bugzilla Migration User@bugzilla-migration

bus-test dispatch test on linux failed

Submitted by rongqing

Assigned to D-Bus Maintainers

Link to original bug (#75589)

Description

  1. On X86-64, linux, The test of bus-test dispatch failed, The test shows dbus-1.6.10 and dbus-1.6.18 have the same issue.

./bus/bus-test: Running message dispatch test Activating service name='org.freedesktop.DBus.TestSuiteEchoService' Successfully activated service 'org.freedesktop.DBus.TestSuiteEchoService' 6363: assertion failed "_dbus_string_get_length (& DBUS_AUTH_CLIENT (auth)->guid_from_server) == 0" file "dbus-auth.c" line 1545 function process_ok ./bus/bus-test(_dbus_print_backtrace+0x29) [0x80cb969] ./bus/bus-test(_dbus_abort+0x14) [0x80cfb44] ./bus/bus-test(_dbus_real_assert+0x53) [0x80b52c3] ./bus/bus-test() [0x80e24da] ./bus/bus-test(_dbus_auth_do_work+0x388) [0x80e3848] ./bus/bus-test() [0x80aea49] ./bus/bus-test() [0x80affde] ./bus/bus-test(_dbus_transport_handle_watch+0xb1) [0x80ad841] ./bus/bus-test(_dbus_connection_handle_watch+0x104) [0x8089174] ./bus/bus-test(dbus_watch_handle+0xd8) [0x80b15e8] ./bus/bus-test(_dbus_loop_iterate+0x4a9) [0x80d1509] ./bus/bus-test(bus_test_run_clients_loop+0x5d) [0x808129d] ./bus/bus-test() [0x806cab0] ./bus/bus-test() [0x806e0ca] ./bus/bus-test() [0x806da6f] ./bus/bus-test(_dbus_test_oom_handling+0x18c) [0x80b5c8c] ./bus/bus-test() [0x806f723] ./bus/bus-test(bus_dispatch_test+0x3c) [0x8071aac] ./bus/bus-test(main+0x1b7) [0x805acc7] /lib/libc.so.6(__libc_start_main+0xf3) [0x45f919b3] ./bus/bus-test() [0x805ae39]

  1. It always happens on my machine, If can not reproduce it, I think we can modify the code to trigger this issue, let send_negotiate_unix_fd to return FALSE directly to simulator _dbus_string_append failure

diff --git a/dbus/dbus-auth.c b/dbus/dbus-auth.c index 37b45c6..968f544 100644 --- a/dbus/dbus-auth.c +++ b/dbus/dbus-auth.c @@ -1642,6 +1642,7 @@ process_data (DBusAuth *auth, static dbus_bool_t send_negotiate_unix_fd (DBusAuth *auth) {

  • return FALSE; if (!_dbus_string_append (&auth->outgoing, "NEGOTIATE_UNIX_FD\r\n")) return FALSE;

}

  1. a patch is submitted to

http://lists.freedesktop.org/archives/dbus/2014-February/016122.html

Version: 1.5

Assignee
Assign to
Time tracking