Bug 131309 - sysutils/wmbluecpu: libxcb + wmbluecpu problem?
Summary: sysutils/wmbluecpu: libxcb + wmbluecpu problem?
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-02 20:50 UTC by Eric Dedrick
Modified: 2009-04-20 20:20 UTC (History)
0 users

See Also:


Attachments
20080211-wmbluecpu.patch (4.19 KB, patch)
2009-02-16 22:35 UTC, Benjamin Close
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Dedrick 2009-02-02 20:50:02 UTC
The WindowMaker application wmbluecpu (in ports) now appears to be a runaway process after a recent upgrade.

I performed ports upgrades as specified in /usr/ports/UPDATING 20090123 x11/libxcb,  20090123,24 x11-servers/xorg-server.

wmbluecpu then seemed to be not working correctly.

I recompiled wmblue with debugging symbols and it seems to be spinning forever in callstacks like

#0  0x28267280 in _pthread_testcancel () from /lib/libc.so.7
#1  0x2829546c in _xcb_conn_wait () from /usr/local/lib/libxcb.so.2
#2  0x282977ba in xcb_wait_for_reply () from /usr/local/lib/libxcb.so.2
#3  0x280c037a in _XReply () from /usr/local/lib/libX11.so.6
#4  0x280b46ea in XSync () from /usr/local/lib/libX11.so.6
#5  0x0804a28a in draw_window () at draw.c:54
#6  <signal handler called>
#7  0x28267d63 in select () from /lib/libc.so.7
#8  0x282953ff in _xcb_conn_wait () from /usr/local/lib/libxcb.so.2
#9  0x28297490 in xcb_wait_for_event () from /usr/local/lib/libxcb.so.2
#10 0x280bfaee in wait_or_poll_for_event () from /usr/local/lib/libX11.so.6
#11 0x280bfe78 in process_responses () from /usr/local/lib/libX11.so.6
#12 0x280c0637 in _XReadEvents () from /usr/local/lib/libX11.so.6
#13 0x280a7d3b in XNextEvent () from /usr/local/lib/libX11.so.6
#14 0x080494f6 in process_events () at dockapp.c:257
#15 0x0804a6a5 in main (carg=256, varg=0x0) at wmbluecpu.c:38

I'm doing another "portupgrade -rf libxcb" just to be sure, but I've already rebuild wmbluecpu from scratch several times.

How-To-Repeat: Perform 20090123, 20090124 /usr/ports/UPDATING steps.

Install wmbluecpu from ports and execute it.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-02-02 23:16:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->benjsc

Fix synopsis and assign.
Comment 2 Benjamin Close 2009-02-16 22:35:43 UTC
Attached Patch should fix the problem and should apply cleanly to the port.
The cause is libxcb expecting the SIGALRM signal which is being caught 
by wmbluecpu. The way the program does the event loop is just wrong. Fix 
it and a number of other issues (SIGTERM/SIGQUIT, etc terminal handling).

Comment 3 Benjamin Close freebsd_committer freebsd_triage 2009-02-16 23:02:09 UTC
Responsible Changed
From-To: benjsc->freebsd-ports-bugs

Over to bugs team for commit, maintainer doesn't have -ports commit bit
Comment 4 Max Brazhnikov freebsd_committer freebsd_triage 2009-04-19 09:56:27 UTC
Responsible Changed
From-To: freebsd-ports-bugs->makc

I'll take it.
Comment 5 dfilter service freebsd_committer freebsd_triage 2009-04-20 20:18:47 UTC
makc        2009-04-20 19:18:38 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/wmbluecpu   Makefile 
  Added files:
    sysutils/wmbluecpu/files patch-dockapp.c patch-wmbluecpu.c 
  Log:
  Fix after libxcb update.
  
  PR:             ports/131309
  Submitted by:   Eric Dedrick
  Fixed by:       Benjamin Close (maintainer)
  Approved by:    portmgr (pav)
  
  Revision  Changes    Path
  1.8       +1 -1      ports/sysutils/wmbluecpu/Makefile
  1.1       +107 -0    ports/sysutils/wmbluecpu/files/patch-dockapp.c (new)
  1.1       +17 -0     ports/sysutils/wmbluecpu/files/patch-wmbluecpu.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Max Brazhnikov freebsd_committer freebsd_triage 2009-04-20 20:19:38 UTC
State Changed
From-To: open->closed

Committed. Thanks!