POV-Ray : Newsgroups : povray.beta-test : Linux Beta 28 segfaults on Slackware and Kubuntu Server Time
26 Dec 2024 12:03:44 EST (-0500)
  Linux Beta 28 segfaults on Slackware and Kubuntu (Message 1 to 10 of 32)  
Goto Latest 10 Messages Next 10 Messages >>>
From: geep999
Subject: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 24 Aug 2008 11:55:17
Message: <web.48b1839e38b6f50ec03ef3130@news.povray.org>
Hi,

0/ After my previous report that rendering biscuit.pov was OK using own-compiled
Linux Beta 28 on Slackware 12.0, I attempted to render all the examples.
Ran into several segfaults whilst rendering. Similar problems on Kubuntu 8.04.1
Compiling on Kubuntu was quite straightforward. (Iteratively getting missing
libraries!).

1/ I'm getting an inconsistent segmentation fault from Beta 28 on both
Slackware 12.0 and Kubuntu 8.04.1 running
povray-3.7/scenes/portfolio/m_textures.ini
(Kubuntu is running as a VMWare Player guest application)

m_textures.ini is supposed to render 14 frames. Sometimes it segfaults
immediately. Sometimes it renders 2, 3 or 4 frames and segfaults.

Cpu: Intel Core2Duo E6550.
Slackware 12.0: gcc 4.1.2. boost 1.34.1 + 19.12.2007 Critical bug patch.
2.6.21.5-smp #4 SM
Kubuntu 8.04.1: gcc 4.2.3. boost 1.34.1 + 19.12.2007 Critical bug patch.
2.6.24-19-generic #1 SMP

I have tried running it with 1 or 2 threads but get the same segfaults. i.e.
povray m_textures.ini +wt1
povray m_textures.ini +wt2

m_textures.ini is OK with Beta 25b on Linux Slackware 12.0
Also OK with Beta 28 on Win2k and WinXP running as guests in VMWare Player.

I have been able to render most of the examples on Slackware 12.0:
/usr/local/share/povray-3.7/scripts/allscene.sh
/usr/local/share/povray-3.7/scripts/allanim.sh
    But a few of the examples also segfault.
    e.g. povray-3.7/scenes/advanced/wineglass.pov
/usr/local/share/povray-3.7/scripts/portfolio.sh aborts at
povray-3.7/scenes/portfolio/m_textures.ini

On Kubuntu 8.04.1:
   wineglass.pov sometimes segfaults at Width = 320 Height = 240, and sometimes
renders OK!
   biscuit.pov is OK at Width = 640 Height = 480, but segfaults at Width 960
Height = 720

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
because:
i) gdb reports: (no debugging symbols found)
ii) config.status contains this line: debug=false

Anyway, attached down the bottom are stacktraces from rendering m_textures.ini.
After the segfault there remains a .pov-state file

3/ After untarring povray-src-3.7.0.beta.25b.tar.bz2 I noticed that there are a
number of directories and their files duplicated inside themselves:
povray-3.7.0.beta.25b/include/include
povray-3.7.0.beta.25b/ini/ini
povray-3.7.0.beta.25b/scenes/scenes
povray-3.7.0.beta.25b/scripts/scripts

4/ On Slackware 12.0 "make check" renders biscuit.pov and displays the image in
a full screen mode. i.e. the image is surrounded by black screen.
This freezes the mouse cursor and keyboard too, and so locks the machine.
Hardware reset is needed to reboot.

Cheers,
Peter

Some Stacktraces:
SLACKWARE 12.0
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1274303600 (LWP 7799)]
0xb780fd85 in malloc_consolidate () from /lib/libc.so.6
(gdb) bt
#0  0xb780fd85 in malloc_consolidate () from /lib/libc.so.6
#1  0xb78122c7 in _int_malloc () from /lib/libc.so.6
#2  0xb7813b7e in malloc () from /lib/libc.so.6
#3  0xb79cf7e8 in operator new () from /usr/lib/libstdc++.so.6
#4  0x08105dbf in ?? ()
#5  0x0810f028 in ?? ()
#6  0x0816f9f7 in ?? ()
#7  0x080c0663 in ?? ()
#8  0x08155d3c in ?? ()
#9  0x0815af89 in ?? ()
#10 0x0815818b in ?? ()
#11 0x081583cb in ?? ()
#12 0x08158965 in ?? ()
#13 0x0815ff4b in ?? ()
#14 0x0815a1e7 in ?? ()
#15 0x0815ad1e in ?? ()
#16 0x0815b07f in ?? ()
#17 0x08158355 in ?? ()
#18 0x08158965 in ?? ()
#19 0x0815ff4b in ?? ()
#20 0x0815a1e7 in ?? ()
#21 0x0815ad1e in ?? ()
#22 0x0815b07f in ?? ()
#23 0x0816d0b7 in ?? ()
#24 0x08167b67 in ?? ()
#25 0x081685ef in ?? ()
#26 0x08168dda in ?? ()
#27 0x0817309a in ?? ()
#28 0x08173e26 in ?? ()
#29 0x081744ef in boost::function0<void, std::allocator<boost::function_base>
>::operator() ()
#30 0xb7a0a9a3 in ?? () from /usr/lib/libboost_thread-mt.so
#31 0xb7e1d1b3 in start_thread () from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#32 0xb787a03e in clone () from /lib/libc.so.6
(gdb)

KUBUNTU 8.04.1
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6e78b90 (LWP 11804)]
0xb78d0e10 in ?? () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb78d0e10 in ?? () from /lib/tls/i686/cmov/libc.so.6
#1  0xb78d2edd in ?? () from /lib/tls/i686/cmov/libc.so.6
#2  0xb78d49ff in calloc () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7ef7eeb in ?? () from /lib/ld-linux.so.2
#4  0xb7ef3c6a in ?? () from /lib/ld-linux.so.2
#5  0xb7ef5a98 in ?? () from /lib/ld-linux.so.2
#6  0xb7eff544 in ?? () from /lib/ld-linux.so.2
#7  0xb7efb5d6 in ?? () from /lib/ld-linux.so.2
#8  0xb7efef5e in ?? () from /lib/ld-linux.so.2
#9  0xb77a0c19 in ?? () from /lib/tls/i686/cmov/libdl.so.2
#10 0xb7efb5d6 in ?? () from /lib/ld-linux.so.2
#11 0xb77a12bc in ?? () from /lib/tls/i686/cmov/libdl.so.2
#12 0xb77a0b51 in dlopen () from /lib/tls/i686/cmov/libdl.so.2
#13 0xb7e8328d in SDL_LoadObject () from /usr/lib/libSDL-1.2.so.0
#14 0xb7e873f1 in ?? () from /usr/lib/libSDL-1.2.so.0
#15 0xb7e8e6c1 in ?? () from /usr/lib/libSDL-1.2.so.0
#16 0xb7e7ec94 in SDL_VideoInit () from /usr/lib/libSDL-1.2.so.0
#17 0xb7e52933 in SDL_InitSubSystem () from /usr/lib/libSDL-1.2.so.0
#18 0xb7e52997 in SDL_Init () from /usr/lib/libSDL-1.2.so.0
#19 0x080524cd in ?? ()
#20 0x08089e8b in ?? ()
#21 0x08079e2d in ?? ()
#22 0x0807b883 in ?? ()
#23 0x0817206b in boost::function0<void, std::allocator<boost::function_base>
>::operator() ()
#24 0xb7af9be7 in ?? () from /usr/lib/libboost_thread-mt.so
#25 0xb79bc4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#26 0xb793de5e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)


Post a reply to this message

From: John Coppens
Subject: Re: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 24 Aug 2008 15:04:14
Message: <20080824160413.3a97f156.john@johncoppens.com>
On Sun, 24 Aug 2008 11:51:59 EDT
"geep999" <nomail@nomail> wrote:

> #23 0x0817206b in boost::function0<void,
> #std::allocator<boost::function_base>

Do you have the correct version of the Boost libraries installed? This
sounds like the threading problem. The docs require pre-1.34

John


Post a reply to this message

From: Chris Cason
Subject: Re: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 24 Aug 2008 23:44:00
Message: <48b22a80$1@news.povray.org>
John Coppens wrote:
> Do you have the correct version of the Boost libraries installed? This
> sounds like the threading problem. The docs require pre-1.34

Pre-1.35 actually - preferably 1.34_1.

-- Chris


Post a reply to this message

From: Chris Cason
Subject: Re: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 24 Aug 2008 23:57:46
Message: <48b22dba$1@news.povray.org>
NB official Linux beta 28 source is now available.

-- Chris


Post a reply to this message

From: geep999
Subject: Re: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 25 Aug 2008 07:55:01
Message: <web.48b29c89cfc4a246c03ef3130@news.povray.org>
Chris Cason <del### [at] deletethistoopovrayorg> wrote:
> NB official Linux beta 28 source is now available.
>
> -- Chris

Have now tried the official beta 28 source on Slackware 12.0 with:
i) boost 1.34.1 libraries (that work OK with beta 25b)
ii) boost 1.33.1 libraries
iii) boost 1.33.1 built by povray using option --with-boost-src=

Always segfaults rendering m_textures.ini.
All segfaults look somehat similar, the last 2 entries being start_thread (),
clone ()
Last segfault from iii) above is:
#0  0xb78b7d9a in malloc_consolidate () from /lib/libc.so.6
#1  0xb78ba2c7 in _int_malloc () from /lib/libc.so.6
#2  0xb78bbb7e in malloc () from /lib/libc.so.6
#3  0xb7a767e8 in operator new () from /usr/lib/libstdc++.so.6
#4  0x0815e7e3 in ?? ()
#5  0x081624c9 in ?? ()
#6  0x08165634 in ?? ()
#7  0x0816656a in ?? ()
#8  0x081705f6 in ?? ()
#9  0x0817136f in ?? ()
#10 0x08171e8c in ?? ()
#11 0x081eb5de in ?? ()
#12 0xb7eb81b3 in start_thread () from /lib/libpthread.so.0
#13 0xb792203e in clone () from /lib/libc.so.6

I would be interested if anybody out there can duplicate these segfaults.
Or suggest what I might be doing wrong...

Cheers,
Peter


Post a reply to this message

From: Nicolas Calimet
Subject: Re: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 25 Aug 2008 08:02:33
Message: <48b29f59$1@news.povray.org>
> 3/ After untarring povray-src-3.7.0.beta.25b.tar.bz2 I noticed that there are a
> number of directories and their files duplicated inside themselves:

	Thanks for your reports and in particular that one -- this is something
I got already while preparing earlier source packages and forgot to check again
lately.  The next beta will get the correct source tree.

	- NC


Post a reply to this message

From: geep999
Subject: Re: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 25 Aug 2008 08:15:01
Message: <web.48b2a189cfc4a246c03ef3130@news.povray.org>
This segfaults too:
iv) boost 1.34.1 built by povray using option --with-boost-src=


Post a reply to this message

From: Warp
Subject: Re: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 25 Aug 2008 08:37:38
Message: <48b2a792@news.povray.org>
geep999 <nomail@nomail> wrote:
> This segfaults too:
> iv) boost 1.34.1 built by povray using option --with-boost-src=

  It might help if you do this:

1) Reconfigure (or edit the Makefiles) so that optimizations are turned
   off and the compiler option -g is specified.

2) Recompile everything. (May require a clean.)

3) Run the recompiled povray with gdb (ie. "gdb povray" and then from
   the gdb prompt "run scene.pov" or whatever).

4) When it crashes, write "bt" and post the output here.

  (It might be possible that it will not crash because you turned
optimizations off. If that's the case, then try doing all the above
again, but keeping all the same optimizations as your normal compile,
and with the -g option. There's a small probability that the backtrace
is not as reliable this way (because of all the inlining), but it may
still be useful.)

-- 
                                                          - Warp


Post a reply to this message

From: geep999
Subject: Re: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 25 Aug 2008 09:30:01
Message: <web.48b2b2f8cfc4a246c03ef3130@news.povray.org>
Hi Warp - I assume this is what you meant for configure:
CFLAGS="-g" \
CXXFLAGS="${CFLAGS}" \
../configure \
--with-boost-src=/tmp/boost_1_34_1 \
--disable-optimiz \
--disable-optimiz-arch \
COMPILED_BY="Beta 28 no_optim autocompiled_boost_1.34.1>"

Haven't the knowledge to edit Makefile directly.

Resulting bt:
(gdb) bt
#0  0xb78a9c87 in raise () from /lib/libc.so.6
#1  0xb78ab4f8 in abort () from /lib/libc.so.6
#2  0xb78dfc4b in __libc_message () from /lib/libc.so.6
#3  0xb78e8b9b in _int_malloc () from /lib/libc.so.6
#4  0xb78e9b7e in malloc () from /lib/libc.so.6
#5  0xb7aa47e8 in operator new () from /usr/lib/libstdc++.so.6
#6  0x081a27fe in ?? ()
#7  0x081a281b in ?? ()
#8  0x081a2f7f in ?? ()
#9  0x081a3014 in ?? ()
#10 0x081a30f8 in ?? ()
#11 0x081a3472 in ?? ()
#12 0x081a351b in ?? ()
#13 0x081a3548 in ?? ()
#14 0x081a3bc3 in ?? ()
#15 0x081a3e9f in ?? ()
#16 0x081a3f5e in ?? ()
#17 0x08195fbd in ?? ()
#18 0x0819846c in ?? ()
#19 0x081998d4 in ?? ()
#20 0x08199dfc in ?? ()
#21 0x0819a1dd in ?? ()
#22 0x0819b5d6 in ?? ()
#23 0x0819573d in ?? ()
#24 0x081973a9 in ?? ()
#25 0x0819d3a5 in ?? ()
#26 0x08193fa3 in ?? ()
#27 0x0819cba0 in ?? ()
#28 0x0819573d in ?? ()
#29 0x081973a9 in ?? ()
#30 0x0819d3a5 in ?? ()
#31 0x08193fa3 in ?? ()
---Type <return> to continue, or q <return> to quit---
#32 0x0819cba0 in ?? ()
#33 0x0819573d in ?? ()
#34 0x081973a9 in ?? ()
#35 0x0819d3a5 in ?? ()
#36 0x08193fa3 in ?? ()
#37 0x081940ac in ?? ()
#38 0x08194608 in ?? ()
#39 0x0819bea8 in ?? ()
#40 0x0819573d in ?? ()
#41 0x081973a9 in ?? ()
#42 0x0819d3a5 in ?? ()
#43 0x0819416c in ?? ()
#44 0x08194608 in ?? ()
#45 0x0819bea8 in ?? ()
#46 0x0819573d in ?? ()
#47 0x081973a9 in ?? ()
#48 0x0819d3a5 in ?? ()
#49 0x081b176f in ?? ()
#50 0x081aa2ba in ?? ()
#51 0x081aa953 in ?? ()
#52 0x081b77cd in ?? ()
#53 0x081b88ca in ?? ()
#54 0x081b8a11 in ?? ()
#55 0x081b8a4e in ?? ()
#56 0x081b8a6d in ?? ()
#57 0x081b8ed0 in ?? ()
#58 0x0822fea1 in ?? ()
#59 0xb7ee61b3 in start_thread () from /lib/libpthread.so.0
#60 0xb795003e in clone () from /lib/libc.so.6
(gdb)

Cheers,
Peter


Post a reply to this message

From: Nicolas Calimet
Subject: Re: Linux Beta 28 segfaults on Slackware and Kubuntu
Date: 25 Aug 2008 11:40:11
Message: <48b2d25b$1@news.povray.org>
> 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


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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