Project

General

Profile

Bug #976

segmentation fault when creating a WMessageBox when not executed on a session thread

Added by Arjan Vermeij about 11 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/04/2011
Due date:
% Done:

0%

Estimated time:

Description

I tried an example from the documentation:

const Wt::StandardButton result = Wt::WMessageBox::show ("Confirm", ("About to wreak havoc... Continue ?"), (Wt::Ok | Wt::Cancel));

If not executed on a session thread, this yields a segmentation fault, gdb says:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe4ff9700 (LWP 12041)]
Wt::WebRequest::getParameterValues (this=0x0, name=...) at /home/arjan/bzr/casw/moos-ivp/external-software/wt/src/web/WebRequest.C:101
101   Http::ParameterMap::const_iterator i = parameters_.find(name);
(gdb) bt
#0  Wt::WebRequest::getParameterValues (this=0x0, name=...) at /home/arjan/bzr/casw/moos-ivp/external-software/wt/src/web/WebRequest.C:101
#1  0x00007ffff79f7299 in Wt::WebRequest::getParameter (this=0x0, name=...) at /home/arjan/bzr/casw/moos-ivp/external-software/wt/src/web/WebRequest.C:93
#2  0x00007ffff7a06191 in Wt::WebSession::notify (this=0x7fffe8003120, event=...) at /home/arjan/bzr/casw/moos-ivp/external-software/wt/src/web/WebSession.C:1561
#3  0x00007ffff7a07da5 in Wt::WebSession::doRecursiveEventLoop (this=0x7fffe8003120) at /home/arjan/bzr/casw/moos-ivp/external-software/wt/src/web/WebSession.C:901
#4  0x00007ffff7846334 in Wt::WDialog::exec (this=0x7fffe4ff73c0, animation=<value optimized out>) at /home/arjan/bzr/casw/moos-ivp/external-software/wt/src/Wt/WDialog.C:228

Also available in: Atom PDF