Hi Tommi,

Thanks very much.  I'm sorry my suggested workaround, and the current
tntnet in subversion, passes an invalid pointer to the sub-component.
It works fine with tntnet 1.6.3.  I wrote a test case to reproduce
this, I placed it in:

http://www.users.on.net/~markwright/comp_ptr.tar.bz2

To build:

autoreconf --force --install
./configure
cd src
make

To run:

ln -s .libs/libcomp_ptr.so comp_ptr.so
tntnet -c tntnet.conf

In browser:

http://localhost:8000

The stack trace (with tntnet subversion):

=>[1] ServerSessionState::getSomething(this = 0xee01a75900000000), line 17 in 
"ServerSessionState.h"
  [2] __unnamed_KQZAmuiu4JVlx::_component_comp_ptr::page0_type::operator()(this 
= 0x485f28, request = CLASS, reply = CLASS, qparam = CLASS), line 191 in 
"comp_ptr.cpp"
  [3] __unnamed_KQZAmuiu4JVlx::_component_comp_ptr::operator()(this = 0x485ec0, 
request = CLASS, reply = CLASS, qparam = CLASS), line 140 in "comp_ptr.cpp"
  [4] tnt::Component::operator()(this = 0x485ec0, request = CLASS, reply = 
CLASS, qparam = CLASS, top = true), line 41 in "component.cpp"
  [5] tnt::Worker::dispatch(this = 0x46e470, request = CLASS, reply = CLASS), 
line 313 in "worker.cpp"
  [6] tnt::Worker::processRequest(this = 0x46e470, request = CLASS, , line 224 
in "worker.cpp"
  [7] tnt::Worker::run(this = 0x46e470), line 138 in "worker.cpp"
  [8] cxxtools::DetachedThread::exec(this = 0x46e470), line 315 in "thread.h"
  [9] 
cxxtools::Method<void,cxxtools::DetachedThread,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void>::operator()(this
 = 0x461510), line 894 in "method.tpp"
  [10] 
cxxtools::Callable<void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void,cxxtools::Void>::call(this
 = 0x461510), line 314 in "callable.tpp"
  [11] thread_entry(arg = 0x464710), line 43 in "threadimpl.cpp"
  [12] _thr_setup(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfffffd7fef00504b 
  [13] _lwp_start(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xfffffd7fef005280 
(dbx) 

Thanks very much, Mark

On Sun, 12 Apr 2009 17:42:55 +0200
Tommi Mäkitalo <[email protected]> wrote:

> On Sonntag 12 April 2009 14:54:23 Mark Wright wrote:
> > Hi,
> >
> ...
> Hi Mark,
> 
> thanks for testing and reporting. I fixed it in svn.
> 
> I simplified the handling of scoped variables and obviously missed
> this case.
> 
> Tommi

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to