Project

General

Profile

Actions

Bug #1136

closed
GM PL

member not initialized in WEnvironment

Bug #1136: member not initialized in WEnvironment

Added by Gaetano Mendola over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
High
Assignee:
Pieter Libin
Target version:
Start date:
01/17/2012
Due date:
% Done:

0%

Estimated time:

Description

On my test valgrind is complaing like this:

11662 Conditional jump or move depends on uninitialised value(s)
11662 at 0xCF031E8: Wt::WebSession::fixRelativeUrl(std::string const&) const (WebSession.C:466)
11662 by 0xCC40F8F: Wt::WApplication::resolveRelativeUrl(std::string const&) const (WApplication.C:645)
11662 by 0xCC417EE: Wt::WApplication::resourcesUrl() (WApplication.C:407)
11662 by 0xCC1904A: Wt::WAbstractItemView::initDragDrop() (WAbstractItemView.C:391)
11662 by 0xCC1B7A8: Wt::WAbstractItemView::configureModelDragDrop() (WAbstractItemView.C:596)
11662 by 0xCC1BD35: Wt::WAbstractItemView::setDragEnabled(bool) (WAbstractItemView.C:1110)

and indeed at WebSession.C:466 there is:

if (env_->hashInternalPaths()) ...

now if env_ is a WEnvironment inizialized without parameter happens that the default constructor doesn't inizialize any internal
member, this happens when the enviroment used is an instance of Wt::Test::WTestEnvironment (it inherit from WEnvironment)

KD Updated by Koen Deforche over 14 years ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Pieter Libin
  • Target version set to 3.2.1

Hey,

Thanks for catching this. The test environment should indeed initialize this to false.

Regards,
koen

PL Updated by Pieter Libin over 14 years ago Actions #2

  • Status changed from InProgress to Resolved

KD Updated by Koen Deforche over 14 years ago Actions #3

  • Status changed from Resolved to Closed

Fixed in 3.2.1

Actions

Also available in: PDF Atom