Project

General

Profile

Actions

Bug #171

open

dbus-sharp uses invalid SOCK_STREAM constant

Added by Igor Pashev over 10 years ago. Updated over 10 years ago.

Status:
Feedback
Priority:
Low
Assignee:
-
Start date:
2014-05-22
Due date:
% Done:

90%

Estimated time:

Description

dbus-csharp uses invalid SOCK_STEAM constant. It is set to 1 as on Linux, but on Dyson it is 2. This cause Tomboy to crash.

# grep -rnH SOCK_STREAM 
src/Unix/UnixSocket.cs:50:              // FIXME: SOCK_STREAM is 2 on Solaris
src/Unix/UnixSocket.cs:51:              public const short SOCK_STREAM = 1;
# tomboy

Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for DBus.Bus ---> System.Exception: Error 98: Protocol wrong type for socket
  at DBus.Unix.UnixSocket.Connect (System.Byte[] remote_end) [0x00000] in <filename unknown>:0 
  at DBus.Transports.UnixNativeTransport.OpenUnix (System.String path) [0x00000] in <filename unknown>:0 
  at DBus.Transports.UnixNativeTransport.Open (System.String path, Boolean abstract) [0x00000] in <filename unknown>:0 
  at DBus.Transports.UnixTransport.Open (DBus.AddressEntry entry) [0x00000] in <filename unknown>:0 
  at DBus.Transports.Transport.Create (DBus.AddressEntry entry) [0x00000] in <filename unknown>:0 
  at DBus.Connection.OpenPrivate (System.String address) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at DBus.BusG.Init () [0x00000] in <filename unknown>:0 
  at Tomboy.RemoteControlProxy.get_FirstInstance () [0x00000] in <filename unknown>:0 
  at Tomboy.Tomboy.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for DBus.Bus ---> System.Exception: Error 98: Protocol wrong type for socket
  at DBus.Unix.UnixSocket.Connect (System.Byte[] remote_end) [0x00000] in <filename unknown>:0 
  at DBus.Transports.UnixNativeTransport.OpenUnix (System.String path) [0x00000] in <filename unknown>:0 
  at DBus.Transports.UnixNativeTransport.Open (System.String path, Boolean abstract) [0x00000] in <filename unknown>:0 
  at DBus.Transports.UnixTransport.Open (DBus.AddressEntry entry) [0x00000] in <filename unknown>:0 
  at DBus.Transports.Transport.Create (DBus.AddressEntry entry) [0x00000] in <filename unknown>:0 
  at DBus.Connection.OpenPrivate (System.String address) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at DBus.BusG.Init () [0x00000] in <filename unknown>:0 
  at Tomboy.RemoteControlProxy.get_FirstInstance () [0x00000] in <filename unknown>:0 
  at Tomboy.Tomboy.Main (System.String[] args) [0x00000] in <filename unknown>:0 


3447/1:        so_socket(PF_UNIX, SOCK_DGRAM, 0, 0x00000000, SOV_DEFAULT) = 3
3447/1:        connect(3, 0xFFFFFD7FFD80B3F0, 34, SOV_DEFAULT)    Err#98 EPROTOTYPE
3447/1:        access("/usr/lib/locale/en_US.UTF-8", F_OK)    = 0
Actions

Also available in: Atom PDF