Menu

#376 rt_unprep causes a crash in Brlcad 7.26.4

crash or data loss
open
nobody
None
5
2018-08-17
2018-08-17
No

The attached geometry causes a crash in Brlcad 7.26.4 when attempting to run rt_unprep on both Cent OS 6.9 (gcc 4.4.7) and Windows 10 Enterprise 1703 ( Visual Studion 2017).

All libraries were built statically from the 7.26.4 source code download.

code steps:

rtip = rt_dirbuild("test.g", idbuf, sizeof(idbuf));
rt_gettree(rtip, "top");
rt_prep(rtip);
wdbp = wdb_dbopen(rtip->rti_dbip, RT_WDB_TYPE_DB_INMEM);
db_init_db_tree_state(&wdbp->wdb_initial_tree_state, rtip->rti_dbip, &rt_uniresource);
setup repreplist structure with "top" as the unprep object
rt_unprep(rtip, &repreplist, &rt_uniresource);
program crashes

Note that g2 in the attached file has a rotation applied to it. If that rotation is removed then the program runs without crashing.

Also the order for "top" in the attached files is g1 g2 g3. if it is changed to g3 g2 g1, the program still crahes, but all other order combinations of g1 g2 g3 in "top" do not cause the crash.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB