compiled sum.br crashes in linux

When I compile sum.br (as shown on the Brook programming guide) and sum.cpp I have no errors (after using the brtvector.hpp patch described in this forum). But when I run the program this is the result:

marco@suse-fisso:~/Coding/brook> ./mainlibxcb: WARNING! Program tries to unlock a connection without having acquired a lock first, which indicates a programming error. There will be no further warnings about this issue.libxcb: WARNING! Program tries to lock an already locked connection, which indicates a programming error. There will be no further warnings about this issue.main: xcb_io.c:352: _XReply: Assertion `!dpy->xcb->reply_data' failed.Aborted