POV-Ray : Newsgroups : povray.beta-test : Linux Beta 28 segfaults on Slackware and Kubuntu : Re: Linux Beta 28 segfaults on Slackware and Kubuntu Server Time
2 May 2024 10:33:17 EDT (-0400)
  Re: Linux Beta 28 segfaults on Slackware and Kubuntu  
From: geep999
Date: 26 Aug 2008 07:15:01
Message: <web.48b3e3b2cfc4a246c03ef3130@news.povray.org>
Nicolas Calimet <pov### [at] freefr> wrote:
> > 2/ I have tried compiling on Slackware 12.0 with both --enable-debug and
> > --enable-profile
> > ../configure \
> > --with-boost-thread=boost_thread-mt \
> > --enable-profile \
> > COMPILED_BY="geep"
> >
> > I am not sure that the --enable-debug and --enable-profile options are working
>
>  I verified that both --enable-debug and --enable-profile, alone or together,
> work as expected.  Please check that configure reports that the -g compiler flag
> is working and that the option is effectively used when compiling.
>
>  - NC

Hi Nicolas.

1/ Have now checked in config.log for -g flag with --enable-debug.
It's OK. Also other checks on compiler options - all OK. I hadn't checked enough
when I reported possible problem - apologies.

2/ Now I've got the hang of the compiler options, stacktrace has more
information.
Compiled with:
../configure \
--with-boost-src=/tmp/boost_1_34_1 \
--disable-optimiz \
--disable-optimiz-arch \
--enable-debug \
COMPILED_BY="Option 5"

m_textures.ini segfault whilst rendering the 4th frame:
(gdb) bt
#0  0xb785fc87 in raise () from /lib/libc.so.6
#1  0xb78614f8 in abort () from /lib/libc.so.6
#2  0xb7895c4b in __libc_message () from /lib/libc.so.6
#3  0xb789eb9b in _int_malloc () from /lib/libc.so.6
#4  0xb789fb7e in malloc () from /lib/libc.so.6
#5  0xb7a5a7e8 in operator new () from /usr/lib/libstdc++.so.6
#6  0x081a32be in
__gnu_cxx::new_allocator<pov::Trace::LightColorCache>::allocate
(this=0xb4e2299c, __n=2)
    at
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../include/c++/4.1.2/ext/new_allocator.h:88
#7  0x081a32db in std::_Vector_base<pov::Trace::LightColorCache,
std::allocator<pov::Trace::LightColorCache> >::_M_allocate (this=0xb4e2299c,
__n=2)
    at
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_vector.h:127
#8  0x081a4d3a in std::vector<pov::Trace::LightColorCache,
std::allocator<pov::Trace::LightColorCache> >::_M_fill_insert (this=0xb4e2299c,
__position={_M_current = 0xb4e5edd8}, __n=2, __x=@0xb676d9d8)
    at
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../include/c++/4.1.2/bits/vector.tcc:357
#9  0x081a4f9b in std::vector<pov::Trace::LightColorCache,
std::allocator<pov::Trace::LightColorCache> >::insert (this=0xb4e2299c,
__position={_M_current = 0xb4e5edd8}, __n=2, __x=@0xb676d9d8)
    at
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_vector.h:658
#10 0x081a505a in std::vector<pov::Trace::LightColorCache,
std::allocator<pov::Trace::LightColorCache> >::resize (this=0xb4e2299c,
__new_size=2, __x=@0xb676d9d8)
    at
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_vector.h:426
#11 0x0819f388 in Trace (this=0xb4cc0090, sd=@0xb676da58, td=0xb4cc9bd0, mtl=5,
adcb=0.0039215686274509803,
    qf=508, cf=@0xb4cc03d4, mf=@0xb4cc03dc, rf=@0xb4cc0400) at
render/trace.cpp:155
#12 0x081b2ad5 in TracePixel (this=0xb4cc0090, vd=0xb4e213d0, td=0xb4cc9bd0,
mtl=5,
    adcb=0.0039215686274509803, qf=508, cf=@0xb4cc03d4, mf=@0xb4cc03dc,
af=@0xb4cc0400)
    at render/tracepixel.cpp:244
#13 0x081ab931 in TraceTask (this=0xb4cc0030, vd=0xb4e213d0, tm=1, js=1,
aat=0.30000001192092896, aad=3, ps=0,
    psc=false, final=true) at render/tracetask.cpp:294
#14 0x080bccf2 in pov::View::StartRender (this=0xb4e21340,
renderOptions=@0xb676e0bc) at scene/view.cpp:813
#15 0x080a55c8 in pov::RenderBackend::StartRender (this=0xb676e228,
msg=@0xb676e0bc)
    at control/renderbackend.cpp:602
#16 0x080a98fb in
POVMS_MessageReceiver::MemberHandlerOO<pov::RenderBackend>::Call
(this=0x830d3f8,
    msg=@0xb676e0bc, result=@0xb676e0cc, mode=1) at
....../../source/base/povmscpp.h:382
---Type <return> to continue, or q <return> to quit---
#17 0x081f6386 in POVMS_MessageReceiver::ReceiveHandler (msg=0xb676e1cc,
result=0xb676e1c0, mode=1,
    privatedataptr=0xb676e228) at povmscpp.cpp:1774
#18 0x081f3a19 in POVMS_Receive (contextref=0x830d0a0, msg=0xb676e1cc,
result=0xb676e1c0, mode=1)
    at povms.cpp:944
#19 0x081f4cbc in POVMS_ProcessMessages (contextref=0x830d0a0, blocking=true,
yielding=true) at povms.cpp:688
#20 0x080a22bc in (anonymous namespace)::MainThreadFunction () at povray.cpp:540
#21 0x080a2e8e in boost::_bi::list0::operator()<void (*)(), boost::_bi::list0>
(this=0xb676e398, f=@0xb676e394)
    at /tmp/boost_1_34_1/boost/bind.hpp:177
#22 0x080a2ec2 in boost::_bi::bind_t<void, void (*)(),
boost::_bi::list0>::operator() (this=0xb676e394)
    at /tmp/boost_1_34_1/boost/bind/bind_template.hpp:20
#23 0x080a2edf in
boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void,
void (*)(), boost::_bi::list0>, void>::invoke (function_obj_ptr=@0xb676e394)
    at /tmp/boost_1_34_1/boost/function/function_template.hpp:158
#24 0x081b9990 in boost::function0<void, std::allocator<boost::function_base>
>::operator() (this=0xb676e390)
    at /tmp/boost_1_34_1/boost/function/function_template.hpp:825
#25 0x08230961 in thread_proxy (param=0xb6f6e17c) at
/tmp/boost_1_34_1/libs/thread/src/thread.cpp:108
#26 0xb7e9c1b3 in start_thread () from /lib/libpthread.so.0
#27 0xb790603e in clone () from /lib/libc.so.6
(gdb)

Salutations,
Peter


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.