|
Boost : |
From: Michael Haubenwallner (michael.haubenwallner_at_[hidden])
Date: 2006-09-08 05:43:44
On Thu, 2006-09-07 at 19:10 -0400, Boris Gubenko wrote:
> > I really can't see anything wrong with it; the test passes on every
> > other platform.
> >
>
> It does, including the very same machine with aCC6. In fact, with aCC6,
> smart_ptr is all green.
>
> Why is this failure a concern for 1.34? Is g++ on HP-UX ia64 a release
> platform?
Huh, yes! If not, we are unable to deliver our product on ia64-hpux for
many more months and have to keep using hppa-hpux.
Does aCC fully support boost already ?
-haubi-
>
> Boris
>
> ----- Original Message -----
> From: "Peter Dimov" <pdimov_at_[hidden]>
> To: <boost_at_[hidden]>
> Cc: "Boris Gubenko" <Boris.Gubenko_at_[hidden]>
> Sent: Thursday, September 07, 2006 7:02 PM
> Subject: Re: [boost] [shared_Ptr] [1.34] URGENT: Outstanding
> HP-UX/itaniumbug
>
>
> > Boris Gubenko wrote:
> >> It segfaults, with and without -O0:
> >>
> >> Program received signal SIGSEGV, Segmentation fault
> >> si_code: 1 - SEGV_MAPERR - Address not mapped to object.
> >> 0x408b831 in
> >> boost::detail::sp_counted_impl_pd<n_report_2::foo*,n_report_2::deleter>::boost::detail::sp_counted_impl_pd<n_report_2::
> >> foo*,n_report_2::deleter> (
> >> this=0x40014c30, p=0x40014bd0, d={<No data fields>})
> >> at sp_counted_impl.hpp:140
> >
> > The relevant portion of shared_ptr_test seems to be n_report_2, reproduced
> > below; it seems that the fault is occuring at the very first line of
> > test().
> > I really can't see anything wrong with it; the test passes on every other
> > platform.
> >
> > class foo
> > {
> > public:
> >
> > void setWeak(boost::shared_ptr<foo> s)
> > {
> > w = s;
> > }
> >
> > private:
> >
> > boost::weak_ptr<foo> w;
> > };
> >
> > class deleter
> > {
> > public:
> >
> > deleter(): lock(0)
> > {
> > }
> >
> > ~deleter()
> > {
> > BOOST_TEST(lock == 0);
> > }
> >
> > void operator() (foo * p)
> > {
> > ++lock;
> > delete p;
> > --lock;
> > }
> >
> > private:
> >
> > int lock;
> > };
> >
> > void test()
> > {
> > boost::shared_ptr<foo> s(new foo, deleter());
> > s->setWeak(s);
> > s.reset();
> > }
> >
> > _______________________________________________
> > Unsubscribe & other changes:
> > http://lists.boost.org/mailman/listinfo.cgi/boost
> >
> >
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Michael Haubenwallner SALOMON Automation GmbH Forschung & Entwicklung A-8114 Friesach bei Graz mailto:michael.haubenwallner_at_[hidden] http://www.salomon.at No HTML/MIME please, see http://expita.com/nomime.html
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk