On Thu, 23 Sep 2004 00:00:54 +0800
Steven Kah Hien Wong <[EMAIL PROTECTED]> wrote:

> I am finding the latest Blackbox CVS (on SF) 
> consistently crashes while running OpenOffice. I just need to open the 
> mini stylist window, and add/remove/modify styles a few times.

Same here.

> The assertion that is failing is in src/StackList.cc, on line 118, if I 
> can remember correctly. Something like "it != list.end()".

Yep. Here is the backtrace from my core dump in same situation:
(gdb) bt
#0  0x06be7369 in kill () from /usr/lib/libc.so.34.1
#1  0x06c14eb5 in abort () from /usr/lib/libc.so.34.1
#2  0x06bcd6e7 in __assert () from /usr/lib/libc.so.34.1
#3  0x1c041aca in StackingList::raise(StackEntity*) (this=0x3c01a440, 
    entity=0x3c039a00) at StackingList.cc:124
#4  0x1c0344a9 in BScreen::raiseTransients(std::list<BlackboxWindow*, 
std::allocator<BlackboxWindow*> > const&) (this=0x3c01a400, [EMAIL PROTECTED])
    at Screen.cc:1781
#5  0x1c02ce48 in BScreen::raiseWindow(StackEntity*) (this=0x3c01a400, 
    entity=0x3c039600) at WindowGroup.hh:59
#6  0x1c054651 in BlackboxWindow::configureRequestEvent(XConfigureRequestEvent const*) 
(this=0x3c039600, event=0xcfbf80b0) at Window.cc:2878
#7  0x1c05eff7 in Blackbox::process_event(_XEvent*) (this=0xcfbf8190, 
    e=0xcfbf80b0) at blackbox.cc:197
#8  0x1c06325b in bt::Application::run() (this=0xcfbf8190)
    at Application.cc:227
#9  0x1c060f80 in main (argc=1, argv=0xcfbf8358) at main.cc:147
(gdb)

> If someone has the time, can they look into this please? Otherwise I 
> will submit a proper bug report later.

While waiting for actual fix, you can disable the assert.
In src/StackingList.cc change line 118 from
  assert(it != stack.end());
to
  if (it == stack.end()) { return; } 

This makes function return quietly if one cannot find proper
position from the stack.

You may get some undefined behaviour with some apps, but
atleast Blackbox doesn't crash.

 -Tero

PS. Please not that I am not a BB developer. I am just
randomly messing around with unfamiliar code and hoping
that everything will be allright. ;)

-- 
Tero Koskinen - http://iki.fi/tero.koskinen/

-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives:  http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]

Reply via email to