Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed assertion in 2008-07-09 #18

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 27 comments
Closed

Failed assertion in 2008-07-09 #18

GoogleCodeExporter opened this issue Mar 13, 2015 · 27 comments

Comments

@GoogleCodeExporter
Copy link

I'm using:



- skype4pidgin 2008-07-09

- pidgin 1:2.4.1-1ubuntu2.1

- skype 1.4.0.118

- Ubuntu 8.04



After leaving pidgin and skype running for some time, pidgin will
spontaneously give me this error, seemingly out of the blue (skype
continues to run fine).  Specifically I get the following failed assertion
(also including full backtrace).  Please let me know if any further info
would be useful, thanks!



pidgin: ../../src/xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int)
((xcb_req) - (dpy->request)) >= 0)' failed.



Program received signal SIGABRT, Aborted.

[Switching to Thread 0x42a4a950 (LWP 20446)]

0x00007f80cd5e4095 in raise () from /lib/libc.so.6

(gdb) bt full

#0  0x00007f80cd5e4095 in raise () from /lib/libc.so.6

No symbol table info available.

#1  0x00007f80cd5e5af0 in abort () from /lib/libc.so.6

No symbol table info available.

#2  0x00007f80cd5dd2df in __assert_fail () from /lib/libc.so.6

No symbol table info available.

#3  0x00007f80ce81517d in _XGetXCBBuffer () from /usr/lib/libX11.so.6

No symbol table info available.

#4  0x00007f80ce816343 in _XSend () from /usr/lib/libX11.so.6

No symbol table info available.

#5  0x00007f80ce81645d in _XFlush () from /usr/lib/libX11.so.6

No symbol table info available.

#6  0x00007f80ce7e9c35 in XCheckTypedEvent () from /usr/lib/libX11.so.6

No symbol table info available.

#7  0x00007f80be4d2e31 in receive_message_loop () at skype_messaging_x11.c:186

        event_bool = <value optimized out>

        e = {type = 33, xany = {type = 33, serial = 6612, send_event = 1,
display = 0x89fe00,

    window = 67108944}, xkey = {type = 33, serial = 6612, send_event = 1,
display = 0x89fe00,

    window = 67108944, root = 763, subwindow = 8, time =
2335398265116639520, x = 1229737551,

    y = 1414743374, x_root = 1398101057, y_root = 0, state = 0, keycode = 0,

    same_screen = -815494848}, xbutton = {type = 33, serial = 6612,
send_event = 1,

    display = 0x89fe00, window = 67108944, root = 763, subwindow = 8,

    time = 2335398265116639520, x = 1229737551, y = 1414743374, x_root =
1398101057,

    y_root = 0, state = 0, button = 0, same_screen = -815494848}, xmotion =
{type = 33,

    serial = 6612, send_event = 1, display = 0x89fe00, window = 67108944,
root = 763,

    subwindow = 8, time = 2335398265116639520, x = 1229737551, y = 1414743374,

    x_root = 1398101057, y_root = 0, state = 0, is_hint = 0 '\0',
same_screen = -815494848},

  xcrossing = {type = 33, serial = 6612, send_event = 1, display = 0x89fe00,

    window = 67108944, root = 763, subwindow = 8, time =
2335398265116639520, x = 1229737551,

    y = 1414743374, x_root = 1398101057, y_root = 0, mode = 0, detail = 0,

    same_screen = -815494848, focus = 32640, state = 65}, xfocus = {type =
33, serial = 6612,

    send_event = 1, display = 0x89fe00, window = 67108944, mode = 763,
detail = 0},

  xexpose = {type = 33, serial = 6612, send_event = 1, display = 0x89fe00,
window = 67108944,

---Type <return> to continue, or q <return> to quit---

    x = 763, y = 0, width = 8, height = 0, count = 1096237344},
xgraphicsexpose = {type = 33,

    serial = 6612, send_event = 1, display = 0x89fe00, drawable = 67108944,
x = 763, y = 0,

    width = 8, height = 0, count = 1096237344, major_code = 543752281,

    minor_code = 1229737551}, xnoexpose = {type = 33, serial = 6612,
send_event = 1,

    display = 0x89fe00, drawable = 67108944, major_code = 763, minor_code = 0},

  xvisibility = {type = 33, serial = 6612, send_event = 1, display = 0x89fe00,

    window = 67108944, state = 763}, xcreatewindow = {type = 33, serial = 6612,

    send_event = 1, display = 0x89fe00, parent = 67108944, window = 763, x
= 8, y = 0,

    width = 1096237344, height = 543752281, border_width = 1229737551,

    override_redirect = 1414743374}, xdestroywindow = {type = 33, serial =
6612,

    send_event = 1, display = 0x89fe00, event = 67108944, window = 763},
xunmap = {type = 33,

    serial = 6612, send_event = 1, display = 0x89fe00, event = 67108944,
window = 763,

    from_configure = 8}, xmap = {type = 33, serial = 6612, send_event = 1,

    display = 0x89fe00, event = 67108944, window = 763, override_redirect = 8},

  xmaprequest = {type = 33, serial = 6612, send_event = 1, display = 0x89fe00,

    parent = 67108944, window = 763}, xreparent = {type = 33, serial =
6612, send_event = 1,

    display = 0x89fe00, event = 67108944, window = 763, parent = 8, x =
1096237344,

    y = 543752281, override_redirect = 1229737551}, xconfigure = {type =
33, serial = 6612,

    send_event = 1, display = 0x89fe00, event = 67108944, window = 763, x =
8, y = 0,

    width = 1096237344, height = 543752281, border_width = 1229737551,
above = 1398101057,

    override_redirect = 0}, xgravity = {type = 33, serial = 6612,
send_event = 1,

    display = 0x89fe00, event = 67108944, window = 763, x = 8, y = 0},
xresizerequest = {

    type = 33, serial = 6612, send_event = 1, display = 0x89fe00, window =
67108944,

    width = 763, height = 0}, xconfigurerequest = {type = 33, serial =
6612, send_event = 1,

    display = 0x89fe00, parent = 67108944, window = 763, x = 8, y = 0,
width = 1096237344,

    height = 543752281, border_width = 1229737551, above = 1398101057,
detail = 0,

    value_mask = 140191212013888}, xcirculate = {type = 33, serial = 6612,
send_event = 1,

    display = 0x89fe00, event = 67108944, window = 763, place = 8},
xcirculaterequest = {

    type = 33, serial = 6612, send_event = 1, display = 0x89fe00, parent =
67108944,

    window = 763, place = 8}, xproperty = {type = 33, serial = 6612,
send_event = 1,

    display = 0x89fe00, window = 67108944, atom = 763, time = 8, state =
1096237344},

  xselectionclear = {type = 33, serial = 6612, send_event = 1, display =
0x89fe00,

    window = 67108944, selection = 763, time = 8}, xselectionrequest =
{type = 33,

---Type <return> to continue, or q <return> to quit---

    serial = 6612, send_event = 1, display = 0x89fe00, owner = 67108944,
requestor = 763,

    selection = 8, target = 2335398265116639520, property =
6076276524792434255,

    time = 1398101057}, xselection = {type = 33, serial = 6612, send_event = 1,

    display = 0x89fe00, requestor = 67108944, selection = 763, target = 8,

    property = 2335398265116639520, time = 6076276524792434255}, xcolormap
= {type = 33,

    serial = 6612, send_event = 1, display = 0x89fe00, window = 67108944,
colormap = 763,

    new = 8, state = 0}, xclient = {type = 33, serial = 6612, send_event = 1,

    display = 0x89fe00, window = 67108944, message_type = 763, format = 8,
data = {

      b = " AWAY\000i ONLINESTATUS", s = {16672, 16727, 89, 8297, 20047,
18764, 17742, 21587,

        21569, 21333}, l = {2335398265116639520, 6076276524792434255,
1398101057, 0,

        140191212013888}}}, xmapping = {type = 33, serial = 6612,
send_event = 1,

    display = 0x89fe00, window = 67108944, request = 763, first_keycode =
0, count = 8},

  xerror = {type = 33, display = 0x19d4, resourceid = 7020380918716039169,
serial = 9043456,

    error_code = 80 'P', request_code = 0 '\0', minor_code = 0 '\0'},
xkeymap = {type = 33,

    serial = 6612, send_event = 1, display = 0x89fe00, window = 67108944,

    key_vector =
"�\002\000\000\000\000\000\000\b\000\000\000\000\000\000\000 AWAY\000i
ONLINEST"}, pad = {140187732541473, 6612, 7020380918716039169, 9043456,
67108944, 763, 8,

    2335398265116639520, 6076276524792434255, 1398101057, 0,
140191212013888, 65, 15835968,

    10736592, 0, 33, 14787424, 14669824, 176, 64, 13366608,
140191191284368, 25848064}}

        msg = (GString *) 0xe8ece0

        msg_temp = " AWAY", '\0' <repeats 15 times>

        len = 1

#8  0x00007f80cde0e054 in ?? () from /usr/lib/libglib-2.0.so.0

No symbol table info available.

#9  0x00007f80cd91a3f7 in start_thread () from /lib/libpthread.so.0

No symbol table info available.

#10 0x00007f80cd689b2d in clone () from /lib/libc.so.6

No symbol table info available.

#11 0x0000000000000000 in ?? ()

No symbol table info available.

Original issue reported on code.google.com by yanghate...@gmail.com on 18 Jul 2008 at 4:21

@GoogleCodeExporter
Copy link
Author

same here

Original comment by alfred.einstein@gmail.com on 23 Jul 2008 at 1:58

@GoogleCodeExporter
Copy link
Author

Ditto, a particularly nasty bug.

Original comment by npmccallum@gmail.com on 31 Jul 2008 at 4:54

@GoogleCodeExporter
Copy link
Author

Seems to happen after an upgrade to a newer version of libxcb or xorg.  Can you 
try 
with latest versions of Skype (2.0.0.x) and Pidgin (2.4.3) and see if the 
problem is 
still around?

Original comment by eionrobb on 1 Aug 2008 at 2:20

@GoogleCodeExporter
Copy link
Author

Yes, I am running the latest versions of pidgin/skype.

Original comment by npmccallum@gmail.com on 1 Aug 2008 at 2:10

@GoogleCodeExporter
Copy link
Author

same here with
-ubuntu 8.04 
-kernel 2.6.24-19-generic
-pidgin 2.5.0
-skype 2.0.0.72

Original comment by Toni.Ele...@gmail.com on 28 Aug 2008 at 5:34

@GoogleCodeExporter
Copy link
Author

Hi,

my pidgin crashes up to ten times a day exactly with that assertion error and I 
would
really like to use it if it would be more stable. It is not only when starting 
pidgin
(know issues), even when chatting and pressing enter to send the text. Pidgdin
crashes, after sending the message.

Thx a lot for accepting this bug !

Original comment by Usemyper...@googlemail.com on 12 Sep 2008 at 2:00

@GoogleCodeExporter
Copy link
Author

same here
pidgin 2.5.1 
libxcb 1.1

Original comment by alfred.einstein@gmail.com on 9 Oct 2008 at 7:22

@GoogleCodeExporter
Copy link
Author

Setting the following before starting pidgin in a terminal solved it for me:
LIBXCB_ALLOW_SLOPPY_LOCK=1

Original comment by unlicen...@gmail.com on 11 Oct 2008 at 7:13

@GoogleCodeExporter
Copy link
Author

pidgin 2.5.1
skype 20.0.0.72

setting LIBXCB_ALLOW_SLOPPY_LOCK=1 did not do anything for me...

Can't really recompile libX11 without XCB.  Any other workarouds possible?

Original comment by erwin.fe...@gmail.com on 20 Oct 2008 at 10:26

@GoogleCodeExporter
Copy link
Author

Hmm... I wonder if its possible to have a seperate copy of libX11 (without xcb) 
hanging around in the file system, and to tell Pidgin to use that instead of 
the 
system one?

I'll be trying to solve this problem next

Original comment by eionrobb on 20 Oct 2008 at 6:23

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

pidgin: ../../src/xcb_lock.c:77: _XGetXCBBuffer: Asserzione '((int) ((xcb_req) 
- 
(dpy->request)) >= 0)' fallita.
Aborted
pidgin -v
Pidgin 2.4.1
skype -v
Skype 2.0.0.72
uname -a
Linux alar2 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux
Ubuntu hardy 8.0.04

Original comment by giovanni...@gmail.com on 30 Oct 2008 at 1:46

@GoogleCodeExporter
Copy link
Author

This is a recurring issue using the SVN trunk.

Original comment by dvpdin...@yahoo.com on 5 Nov 2008 at 11:38

@GoogleCodeExporter
Copy link
Author

Same here 
Distributor ID: Ubuntu
Description:    Ubuntu 8.10
Release:    8.10
Codename:   intrepid

Pidgin 2.5.2
Skype 2.0.0.72



Original comment by florian....@gmail.com on 9 Nov 2008 at 2:40

@GoogleCodeExporter
Copy link
Author

Easiest way to avoid this issue is to use the skype_dbus.so plugin (listed in 
Pidgin
as "Skype (DBus)") which doesn't rely on X to handle messages.

The issue is that there are multiple threads trying to lock the XCB at the same 
time
(at least, that's what my research turns up). Have you considered calling
XInitThreads() [http://tronche.com/gui/x/xlib/display/XInitThreads.html] at the 
start
of the code? Supposedly, that should fix the issue.

Original comment by dvpdin...@yahoo.com on 10 Nov 2008 at 2:43

@GoogleCodeExporter
Copy link
Author

From the article.. "This function must be the first Xlib function a 
multi-threaded 
program calls, and it must complete before any other Xlib call is made"
I've tried using it but it crashes on machines that have already called it, and 
makes things unstable on machines that haven't... there's also no function to 
be 
able to check if its been called already or not :(

The best thing for me to do is to get rid of the threading.

Original comment by eionrobb on 10 Nov 2008 at 3:11

@GoogleCodeExporter
Copy link
Author

I've just made some changes which seem to be working nicely for me.  Can 
someone 
else try compiling head of svn and see if it works for them?

Original comment by eionrobb on 10 Nov 2008 at 4:04

@GoogleCodeExporter
Copy link
Author

Working beautifully now :D

Something that you've changed also appears to fix issue 13

Original comment by dvpdin...@yahoo.com on 10 Nov 2008 at 5:58

@GoogleCodeExporter
Copy link
Author

Just recompiled and so far (touch wood), no more crashes!

System:
- Pidgin 2.5.1-3.fc9
- Skype 2.0.0.72
- libxcb-1.1-5.fc9.i386
- Linux localhost.localdomain 2.6.26.6-79.fc9.i686 #1 SMP Fri Oct 17 14:52:14 
EDT
2008 i686 i686 i386 GNU/Linux

Thank you soooo much!!!

Original comment by ChrisNut...@gmail.com on 10 Nov 2008 at 10:30

@GoogleCodeExporter
Copy link
Author

I spoke too soon :( still random crashes with:
pidgin: xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - 
(dpy->request))
>= 0)' failed.

(If I then immediately - or very quickly, reload pidgin I get:
pidgin: xcb_lock.c:33: _XCBUnlockDisplay: Assertion
`xcb_get_request_sent(dpy->xcb->connection) == dpy->request' failed.)

This is with libskype.so built from SVN revision 459

Original comment by ChrisNut...@gmail.com on 10 Nov 2008 at 3:55

@GoogleCodeExporter
Copy link
Author

So it's still crashing... is that with LIBXCB_ALLOW_SLOPPY_LOCK=1 set?

Original comment by eionrobb on 10 Nov 2008 at 11:16

@GoogleCodeExporter
Copy link
Author

Yep:
env |grep SLOPPY
LIBXCB_ALLOW_SLOPPY_LOCK=1

Original comment by ChrisNut...@gmail.com on 11 Nov 2008 at 9:21

@GoogleCodeExporter
Copy link
Author

Ok, latest svn has some more changes that might fix the problem.  Can people 
please 
give that a try?
I've also attached a 32-bit and 64-bit version of the plugin for people to try 
too

Original comment by eionrobb on 12 Nov 2008 at 9:50

Attachments:

@GoogleCodeExporter
Copy link
Author

Looking good so far... (6hrs and counting - built from SVN revision: 462)

Original comment by ChrisNut...@gmail.com on 13 Nov 2008 at 2:18

@GoogleCodeExporter
Copy link
Author

same here svn462. till now no crashing pidgins on 2 different machines

Original comment by Toni.Ele...@gmail.com on 16 Nov 2008 at 2:18

@GoogleCodeExporter
Copy link
Author

Tested libskype.so under Hardy, latest skype4pidgin as of today. Works for me.

Thank you!

Original comment by magic...@gmail.com on 18 Nov 2008 at 1:42

@GoogleCodeExporter
Copy link
Author

New version of plugin out with this fixed.

Original comment by eionrobb on 19 Nov 2008 at 2:10

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

I have a similar problem with code that I have written.  After long run times 
(weeks) 
I will get an assertion failure (xcb_lock.c:33).  Could you please let me know 
what 
changes you made to your Skype library to fix the problem?

Cheers

Original comment by steve.jo...@gmail.com on 30 Dec 2008 at 8:26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant