Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#66 FreeBSD6/amd64 rt segfault when optimization enabled

crash or data loss
closed-fixed
Raytrace (49)
5
2006-08-02
2006-04-12
Erik Greenwald
No

When build with --enable-optimized, rt segfaults on some geometry
files.

can be exercised by doing something along the lines of:
$ /usr/local/bin/rt /usr/local/brlcad/share/brlcad/7.8.0/db/havoc.g
havoc
(which crashes maybe 1/6-1/4 up? hard to tell, opterons are fast)

magic bt says

#0 0x0000000800832320 in get_solidbitv () from /usr/local/brlcad/
lib/librt.so.19
#1 0x000000080083ac44 in rt_shootray () from /usr/local/brlcad/lib/
librt.so.19
#2 0x00000008010a5ba2 in rr_render () from /usr/local/brlcad/lib/
liboptical.so.19
#3 0x00000008010b9a89 in phong_render () from /usr/local/brlcad/
lib/liboptical.so.19
#4 0x00000008010c9237 in viewshade () from /usr/local/brlcad/lib/
liboptical.so.19
#5 0x000000000040b7bd in ?? ()
#6 0x000000080083bda7 in rt_shootray () from /usr/local/brlcad/lib/
librt.so.19
#7 0x00000008010a5ba2 in rr_render () from /usr/local/brlcad/lib/
liboptical.so.19
#8 0x00000008010b9a89 in phong_render () from /usr/local/brlcad/
lib/liboptical.so.19
#9 0x00000008010c9237 in viewshade () from /usr/local/brlcad/lib/
liboptical.so.19
#10 0x000000000040b7bd in ?? ()
#11 0x000000080083bda7 in rt_shootray () from /usr/local/brlcad/
lib/librt.so.19
#12 0x00000008010a5ba2 in rr_render () from /usr/local/brlcad/lib/
liboptical.so.19
#13 0x00000008010b9a89 in phong_render () from /usr/local/brlcad/
lib/liboptical.so.19
#14 0x00000008010c9237 in viewshade () from /usr/local/brlcad/lib/
liboptical.so.19
#15 0x000000000040b7bd in ?? ()
#16 0x000000080083bda7 in rt_shootray () from /usr/local/brlcad/
lib/librt.so.19
#17 0x0000000000408867 in ?? ()
#18 0x0000000000409d8a in ?? ()
#19 0x0000000000409e0f in ?? ()
#20 0x000000000040493b in ?? ()
#21 0x0000000000405f8b in ?? ()
#22 0x00000000004033ce in ?? ()
...

Discussion

  • Erik Greenwald
    Erik Greenwald
    2006-08-02

    • assigned_to: nobody --> erikgreenwald
    • status: open --> closed-fixed
     
  • Erik Greenwald
    Erik Greenwald
    2006-08-02

    Logged In: YES
    user_id=6576

    Problem was due to missing include/machine.h infromation.