Bug 18361 - sawfish-ui broken in 1.3.5-alt1
: sawfish-ui broken in 1.3.5-alt1
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/sawfish)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2008-12-27 16:51 by
Modified: 2008-12-28 12:39 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-12-27 16:51:42
[shader@noute ~]$ sawfish-ui 
eval_req: Обрыв канала
*** Remote sawfish error: unknown error

При запуске под strace наблюдаем:
socket(PF_FILE, SOCK_STREAM, 0)         = 5
connect(5, {sa_family=AF_FILE,
path="/tmp/.sawfish-shader/noute.shader.ru:0.0"}, 43) = 0
write(5, "\0", 1)                       = 1
write(5, "\30\0\0\0", 4)                = 4
write(5, "sawfish-locale-directory", 24) = 24
read(5, 0xbfed8014, 4)                  = -1 ECONNRESET (Connection reset by
peer)

[shader@noute ~]$ rpmquery sawfish
sawfish-1.3.5-alt1

Система - i586, Intel Atom (гипертридинг)
------- Comment #1 From 2008-12-27 17:00:18 -------
rpm -q librep rep-gtk sawfish
------- Comment #2 From 2008-12-27 17:01:49 -------
(In reply to comment #0)
> connect(5, {sa_family=AF_FILE, path="/tmp/.sawfish-shader/noute.shader.ru:0.0"}, 43) = 0

Это безобразие...
------- Comment #3 From 2008-12-27 18:29:31 -------
    Remove some easier cases of gpointer abuse.

    git-svn-id: svn://svn.gnome.org/svn/sawfish/trunk@4275
d84dca21-ee25-0410-97e8-b6da4892470e

...

     struct sockaddr_un addr;
-    int addr_len = sizeof (addr);
+    socklen_t addr_len;


После чего этот неинициализированный addr_len отдаётся в accept(2).  В общем
fixed в 1.3.5-alt2.
------- Comment #4 From 2008-12-28 12:39:37 -------
Подтверждаю, заработало, закрываем