Bug #2744
closedWSlider.C:63: Program received signal SIGFPE, Arithmetic exception.
0%
Description
WSlider range set to (0,0). Try to move the slider and get the crash :
WSlider.C:63: Program received signal SIGFPE, Arithmetic exception.
Tracking the bug:
Breakpoint 1, Wt::PaintedSlider::paintEvent (this=0x7fffc8009220, paintDevice=0x7fffe400bd98) at /home/itm/Documents/wt-3.3.1/src/Wt/WSlider.C:65
65 int numTicks = r / tickInterval + 1;
(gdb) p tickInterval
$3 = 0
(gdb) c
Continuing.
Program received signal SIGFPE, Arithmetic exception.
0x00007ffff70a0434 in Wt::PaintedSlider::paintEvent (this=0x7fffc8009220, paintDevice=0x7fffe400bd98) at /home/itm/Documents/wt-3.3.1/src/Wt/WSlider.C:65
65 int numTicks = r / tickInterval + 1;
(gdb) bt
#0 0x00007ffff70a0434 in Wt::PaintedSlider::paintEvent (this=0x7fffc8009220, paintDevice=0x7fffe400bd98) at /home/itm/Documents/wt-3.3.1/src/Wt/WSlider.C:65
#1 0x00007ffff7076757 in Wt::WPaintedWidget::getDomChanges (this=0x7fffc8009220, result=..., app=) at /home/itm/Documents/wt-3.3.1/src/Wt/WPaintedWidget.C:367
#2 0x00007ffff712e2d3 in Wt::WWebWidget::getSDomChanges (this=0x7fffc8009220, result=..., app=0x7fffd8001ec0) at /home/itm/Documents/wt-3.3.1/src/Wt/WWebWidget.C:1831
#3 0x00007ffff7249003 in Wt::WebRenderer::collectChanges (this=this@entry=0x7fffe4008240, changes=...) at /home/itm/Documents/wt-3.3.1/src/web/WebRenderer.C:1504
#4 0x00007ffff7249171 in Wt::WebRenderer::collectJS (this=this@entry=0x7fffe4008240, js=js@entry=0x7fffe40082e0) at /home/itm/Documents/wt-3.3.1/src/web/WebRenderer.C:1611
#5 0x00007ffff724a2b1 in Wt::WebRenderer::collectJavaScriptUpdate (this=this@entry=0x7fffe4008240, out=...) at /home/itm/Documents/wt-3.3.1/src/web/WebRenderer.C:1538
#6 0x00007ffff724a86a in Wt::WebRenderer::collectJavaScript (this=this@entry=0x7fffe4008240) at /home/itm/Documents/wt-3.3.1/src/web/WebRenderer.C:751
#7 0x00007ffff724ac58 in Wt::WebRenderer::serveJavaScriptUpdate (this=this@entry=0x7fffe4008240, response=...) at /home/itm/Documents/wt-3.3.1/src/web/WebRenderer.C:553
#8 0x00007ffff724db81 in Wt::WebRenderer::serveResponse (this=this@entry=0x7fffe4008240, response=...) at /home/itm/Documents/wt-3.3.1/src/web/WebRenderer.C:253
#9 0x00007ffff7238465 in Wt::WebSession::serveResponse (this=this@entry=0x7fffe40081d0, handler=...) at /home/itm/Documents/wt-3.3.1/src/web/WebSession.C:2420
#10 0x00007ffff723d00f in Wt::WebSession::render (this=this@entry=0x7fffe40081d0, handler=...) at /home/itm/Documents/wt-3.3.1/src/web/WebSession.C:2359
#11 0x00007ffff723e7d0 in Wt::WebSession::notify (this=0x7fffe40081d0, event=...) at /home/itm/Documents/wt-3.3.1/src/web/WebSession.C:1877
#12 0x00007ffff7239d0d in Wt::WebSession::handleRequest (this=0x7fffe40081d0, handler=...) at /home/itm/Documents/wt-3.3.1/src/web/WebSession.C:1509
#13 0x00007ffff722d556 in Wt::WebController::handleRequest (this=0x79d050, request=0x7fffe4004a20) at /home/itm/Documents/wt-3.3.1/src/web/WebController.C:668
#14 0x00007ffff7bb708f in operator() (a1=0x7fffe4004a20, p=0x79d050, this=) at /usr/include/boost/bind/mem_fn_template.hpp:165
#15 operator()<boost::_mfi::mf1<void, Wt::WebController, Wt::WebRequest*>, boost::_bi::list0> (a=, f=, this=) at /usr/include/boost/bind/bind.hpp:313
#16 operator() (this=) at /usr/include/boost/bind/bind_template.hpp:20
#17 asio_handler_invoke<boost::_bi::bind_t<void, boost::_mfi::mf1<void, Wt::WebController, Wt::WebRequest*, boost::_bi::list2<boost::_bi::value<Wt::WebController>, boost::_bi::value<http::server::HTTPRequest*> > > > (function=...)
at /usr/include/boost/asio/handler_invoke_hook.hpp:64
#18 invoke<boost::_bi::bind_t<void, boost::_mfi::mf1<void, Wt::WebController, Wt::WebRequest, boost::_bi::list2<boost::_bi::value<Wt::WebController>, boost::_bi::value<http::server::HTTPRequest*> > >, boost::_bi::bind_t<void, boost::_mfi::mf1<void, Wt::WebController, Wt::WebRequest, boost::_bi::list2<boost::_bi::value<Wt::WebController>, boost::_bi::value<http::server::HTTPRequest*> > > > (context=, function=)
at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37
#19 boost::asio::detail::completion_handler<boost::_bi::bind_t<void, boost::_mfi::mf1<void, Wt::WebController, Wt::WebRequest, boost::_bi::list2<boost::_bi::value<Wt::WebController*>, boost::_bi::value<http::server::HTTPRequest*> > > >::do_complete (owner=0x79ba80, base=0x7fffcc00c8a0) at /usr/include/boost/asio/detail/completion_handler.hpp:68
#20 0x00007ffff7b95eef in complete (bytes_transferred=, ec=..., owner=..., this=0x7fffcc00c8a0) at /usr/include/boost/asio/detail/task_io_service_operation.hpp:37
#21 do_run_one (ec=..., this_thread=..., lock=..., this=) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:384
#22 boost::asio::detail::task_io_service::run (this=0x79ba80, ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:153
#23 0x00007ffff702165b in run (this=0x794118) at /usr/include/boost/asio/impl/io_service.ipp:59
#24 Wt::WIOService::run (this=0x794110) at /home/itm/Documents/wt-3.3.1/src/Wt/WIOService.C:180
#25 0x00007ffff638029a in ?? () from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#26 0x00007ffff31fee0e in start_thread (arg=0x7fffecabf700) at pthread_create.c:311
#27 0x00007ffff3fd50fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
Updated by Emeric Poupon over 10 years ago
Note: I still get this one in 3.3.2-rc2.
(gdb shows that tickInterval is set to 0.)
Updated by Emeric Poupon over 10 years ago
Still got it in 3.3.3-rc1
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7fffe92ae700 (LWP 11714)]
0x00007ffff7820f74 in Wt::PaintedSlider::paintEvent (this=0x7fffd018b790, paintDevice=0x7fffcc002158)
at /storage/emeric/MesProgs/wt/wt-3.3.3-rc1/src/Wt/WSlider.C:65
65 int numTicks = r / tickInterval + 1;
(gdb) p tickInterval
$1 = 0
(gdb)
Quite annoying!
Updated by Koen Deforche about 10 years ago
- Status changed from Resolved to Closed