Skip to content

Malformed potion model should consistently error out

Hello, friends!

I posted this issue over on the momw-configurator repo as that's where I came across this.

modding-openmw/momw-configurator#16 (closed)

Might be similar to #5998 (closed)

I've built openmw from source using Gentoo's package.

Whenever I run the momw-configurator for the expanded-vanilla list, I get the following error:

[22:09:05.314 I] Processed interior cell (9234/10149) Ashur-Anit, Abandoned Temple with 394 objects
[22:09:05.317 I] Processed interior cell (9235/10149) Ashur-Anit, Hidden Passage with 229 objects
[22:09:05.324 I] Processed interior cell (9236/10149) Ashur-Anit, Triune Shrines with 506 objects
[22:09:05.344 I] Processed interior cell (9237/10149) Vivec, St. Delyn Carpet Layer's Guild with 285 objects
[22:09:05.374 I] Processed interior cell (9238/10149) Vivec, St. Delyn Upholsterer's Guild with 338 objects
openmw-navmeshtool: /var/tmp/portage/portage/games-engines/openmw-9999/work/openmw-9999/components/nif/recordptr.hpp:57: void Nif::RecordPtrT<Nif::NiAVObject>::post(Reader &) [X = Nif::NiAVObject]: Assertion `ptr != nullptr' failed.

Compiler used: clang

CFLAGS used in build: -O2 -march=alderlake -pipe -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk -fstack-protector-strong -fomit-frame-pointer -flto=thin -fPIC

LDFLAGS used in build: -fuse-ld=mold -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-S -flto=thin -Wl,--icf=safe -Wl,-z,rewrite-endbr

Output of openmw --version:

[22:21:49.610 *] Crash handler installed
OpenMW version 0.49.0
Revision: 63e3b8f41b

I can try running the tool in the openmw launcher itself, or remove the -flto=thin and/or -Wl,--icf=safe -Wl,-z,rewrite-endbr flags from my configurations and rebuild openmw.

EDIT:

Info in /tmp/navmeshtool-crash.log:

*** Fatal Error ***
Abnormal termination condition (signal 6)
Address: 0x3e800000eed

System: Linux gentoo 6.12.11-gentoo-dist #1 SMP PREEMPT_DYNAMIC Thu Jan 23 20:12:05 -00 2025 x86_64
Executing: gdb --pid 3821 --quiet --batch --command /tmp/gdb-script-Q4sihi
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f5b0690de07 in wait4 () from /lib64/libc.so.6

* Loaded Libraries
From                To                  Syms Read   Shared Object Library
0x00007f5b08078ca0  0x00007f5b080a3b2c  Yes (*)     /usr/lib64/libboost_program_options.so.1.85.0
0x00007f5b0802bbe0  0x00007f5b08050e6c  Yes (*)     /usr/lib64/libosgParticle.so.162
0x00007f5b07fa2d60  0x00007f5b07ff0adc  Yes (*)     /usr/lib64/libosgShadow.so.162
0x00007f5b07efe210  0x00007f5b07f4109c  Yes (*)     /usr/lib64/libosgAnimation.so.162
0x00007f5b07db6ac0  0x00007f5b07e6901c  Yes (*)     /usr/lib64/libosgDB.so.162
0x00007f5b07b0ad90  0x00007f5b07c036bc  Yes (*)     /usr/lib64/libosgUtil.so.162
0x00007f5b0779a520  0x00007f5b0797329c  Yes (*)     /usr/lib64/libosg.so.162
0x00007f5b07d01250  0x00007f5b07d030ac  Yes (*)     /usr/lib64/libOpenThreads.so.21
0x00007f5b07cf18b0  0x00007f5b07cf846c  Yes (*)     /usr/lib64/libboost_iostreams.so.1.85.0
0x00007f5b072a8ba0  0x00007f5b073f99f4  Yes (*)     /usr/lib64/libSDL2-2.0.so.0
0x00007f5b07ca31e0  0x00007f5b07ca5f6d  Yes (*)     /usr/lib64/libGL.so.1
0x00007f5b074e52a0  0x00007f5b075f28ac  Yes (*)     /usr/lib64/libMyGUIEngine.so.3.4.3
0x00007f5b07c3a640  0x00007f5b07c59e4a  Yes (*)     /usr/lib64/liblz4.so.1
0x00007f5b079eb080  0x00007f5b079fcbcc  Yes (*)     /usr/lib64/libDetour.so.1
0x00007f5b079b5f60  0x00007f5b079e00bc  Yes (*)     /usr/lib64/libRecast.so.1
0x00007f5b0706f3e0  0x00007f5b071f5fa4  Yes (*)     /usr/lib64/libsqlite3.so.0
0x00007f5b06feb460  0x00007f5b0701756c  Yes (*)     /usr/lib64/libyaml-cpp.so.0.8
0x00007f5b06f30e10  0x00007f5b06fb81ec  Yes (*)     /usr/lib64/libBulletCollision.so.3.25
0x00007f5b06eaafd0  0x00007f5b06ecc65c  Yes (*)     /usr/lib64/libLinearMath.so.3.25
0x00007f5b06aac540  0x00007f5b06c1c1d2  Yes (*)     /usr/lib/gcc/x86_64-pc-linux-gnu/14/libstdc++.so.6
0x00007f5b06dcd400  0x00007f5b06e42c6b  Yes (*)     /lib64/libm.so.6
0x00007f5b074305e0  0x00007f5b074353a8  Yes (*)     /usr/lib64/libunwind.so.1
0x00007f5b06837800  0x00007f5b0699dedd  Yes (*)     /lib64/libc.so.6
0x00007f5b080de000  0x00007f5b08106045  Yes (*)     /lib64/ld-linux-x86-64.so.2
0x00007f5b06770f60  0x00007f5b067f05ec  Yes (*)     /usr/lib64/libosgViewer.so.162
0x00007f5b06d7bbc0  0x00007f5b06db7b8c  Yes (*)     /usr/lib64/libosgText.so.162
0x00007f5b0667dd40  0x00007f5b066a89ac  Yes (*)     /usr/lib64/libosgGA.so.162
0x00007f5b06d343d0  0x00007f5b06d45854  Yes (*)     /usr/lib64/libz.so.1
0x00007f5b0741a580  0x00007f5b07427c33  Yes (*)     /usr/lib64/libbz2.so.1
0x00007f5b065557b0  0x00007f5b065ed700  Yes (*)     /usr/lib64/libX11.so.6
0x00007f5b064937c0  0x00007f5b0649d983  Yes (*)     /usr/lib64/libXext.so.6
0x00007f5b06485640  0x00007f5b0648c910  Yes (*)     /usr/lib64/libXcursor.so.1
0x00007f5b06472930  0x00007f5b0647db18  Yes (*)     /usr/lib64/libXi.so.6
0x00007f5b06467340  0x00007f5b0646991a  Yes (*)     /usr/lib64/libXfixes.so.3
0x00007f5b0645a440  0x00007f5b064609b9  Yes (*)     /usr/lib64/libXrandr.so.2
0x00007f5b079a77a0  0x00007f5b079a7959  Yes (*)     /usr/lib64/libwayland-egl.so.1
0x00007f5b0644db60  0x00007f5b0645361d  Yes (*)     /usr/lib64/libwayland-client.so.0
0x00007f5b0643cd00  0x00007f5b0643e73c  Yes (*)     /usr/lib64/libwayland-cursor.so.0
0x00007f5b063f4a80  0x00007f5b06413c93  Yes (*)     /usr/lib64/libxkbcommon.so.0
0x00007f5b063e8660  0x00007f5b063eaaa7  Yes (*)     /usr/lib64/libdecor-0.so.0
0x00007f5b06334e40  0x00007f5b063b1539  Yes (*)     /usr/lib64/libpipewire-0.3.so.0
0x00007f5b06238700  0x00007f5b062c9334  Yes (*)     /usr/lib64/libasound.so.2
0x00007f5b0615e300  0x00007f5b0616072b  Yes (*)     /usr/lib64/libGLdispatch.so.0
0x00007f5b060ec740  0x00007f5b06106a9b  Yes (*)     /usr/lib64/libGLX.so.0
0x00007f5b06042120  0x00007f5b060df9f4  Yes (*)     /usr/lib64/libfreetype.so.6
0x00007f5b05f3c5e0  0x00007f5b05ff3c00  Yes (*)     /usr/lib64/libomp.so
0x00007f5b05eb7740  0x00007f5b05ed9e05  Yes (*)     /usr/lib/gcc/x86_64-pc-linux-gnu/14/libgcc_s.so.1
0x00007f5b06d271e0  0x00007f5b06d27b2e  Yes (*)     /usr/lib64/libXinerama.so.1
0x00007f5b05e839c0  0x00007f5b05eae6e4  Yes (*)     /usr/lib64/libfontconfig.so.1
0x00007f5b05e42ea0  0x00007f5b05e56af9  Yes (*)     /usr/lib64/libxcb.so.1
0x00007f5b05e2cca0  0x00007f5b05e334b0  Yes (*)     /usr/lib64/libXrender.so.1
0x00007f5b05e1fc20  0x00007f5b05e25f44  Yes (*)     /usr/lib64/libffi.so.8
0x00007f5b05de8ae0  0x00007f5b05e19528  Yes (*)     /usr/lib64/libpng16.so.16
0x00007f5b05cf03e0  0x00007f5b05dd2564  Yes (*)     /usr/lib64/libharfbuzz.so.0
0x00007f5b05c7ed30  0x00007f5b05c9c6b8  Yes (*)     /usr/lib64/libexpat.so.1
0x00007f5b05c6e330  0x00007f5b05c6f214  Yes (*)     /usr/lib64/libXau.so.6
0x00007f5b05c64380  0x00007f5b05c65be4  Yes (*)     /usr/lib64/libXdmcp.so.6
0x00007f5b05bbef30  0x00007f5b05c5d8c4  Yes (*)     /usr/lib64/libglib-2.0.so.0
0x00007f5b05af3380  0x00007f5b05b0b632  Yes (*)     /usr/lib64/libgraphite2.so.3
0x00007f5b05ab3b00  0x00007f5b05aecca5  Yes (*)     /usr/lib64/libpcre2-8.so.0
(*): Shared library is missing debugging information.

* Threads
  Id   Target Id                                          Frame
* 1    Thread 0x7f5b05a82780 (LWP 3821) "openmw-navmesht" 0x00007f5b0690de07 in wait4 () from /lib64/libc.so.6

* FPU Status
  R7: Empty   0x00000000000000000000
  R6: Empty   0x00000000000000000000
  R5: Empty   0x00000000000000000000
  R4: Empty   0x00000000000000000000
  R3: Empty   0x00000000000000000000
  R2: Empty   0x00000000000000000000
  R1: Empty   0x00000000000000000000
=>R0: Empty   0x00000000000000000000

Status Word:         0x0000
                       TOP: 0
Control Word:        0x037f   IM DM ZM OM UM PM
                       PC: Extended Precision (64-bits)
                       RC: Round to nearest
Tag Word:            0xffff
Instruction Pointer: 0x00:0x00000000
Operand Pointer:     0x00:0x00000000
Opcode:              0x0000

* Registers
rax            0xfffffffffffffe00  -512
rbx            0x6                 6
rcx            0x7f5b0690de07      140028928908807
rdx            0x0                 0
rsi            0x55897a6f4d7c      94048952995196
rdi            0xef2               3826
rbp            0xef2               0xef2
rsp            0x55897a6f4d68      0x55897a6f4d68
r8             0x0                 0
r9             0x55897a6a8010      94048952680464
r10            0x0                 0
r11            0x202               514
r12            0x5589474fca10      94048095291920
r13            0x6                 6
r14            0x55897a6f4d7c      94048952995196
r15            0x90                144
rip            0x7f5b0690de07      0x7f5b0690de07 <wait4+23>
eflags         0x202               [ IF ]
cs             0x33                51
ss             0x2b                43
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
gs             0x0                 0
fs_base        0x7f5b05a82780      140028913657728
gs_base        0x0                 0

* Backtrace

Thread 1 (Thread 0x7f5b05a82780 (LWP 3821) "openmw-navmesht"):
#0  0x00007f5b0690de07 in wait4 () from /lib64/libc.so.6
No symbol table info available.
#1  0x0000558947462dbc in ?? ()
No symbol table info available.
#2  <signal handler called>
No symbol table info available.
#3  0x00007f5b068a53ac in ?? () from /lib64/libc.so.6
No symbol table info available.
#4  0x00007f5b0684f646 in raise () from /lib64/libc.so.6
No symbol table info available.
#5  0x00007f5b068378fa in abort () from /lib64/libc.so.6
No symbol table info available.
#6  0x00007f5b0683781e in ?? () from /lib64/libc.so.6
No symbol table info available.
#7  0x00007f5b06847c36 in __assert_fail () from /lib64/libc.so.6
No symbol table info available.
#8  0x0000558947392073 in ?? ()
No symbol table info available.
#9  0x00005589473c8567 in ?? ()
No symbol table info available.
#10 0x00005589473b57dc in ?? ()
No symbol table info available.
#11 0x00005589472ef521 in ?? ()
No symbol table info available.
#12 0x00005589472ec119 in ?? ()
No symbol table info available.
#13 0x000055894725b958 in ?? ()
No symbol table info available.
#14 0x00005589472684dd in ?? ()
No symbol table info available.
#15 0x0000558947443cdb in ?? ()
No symbol table info available.
#16 0x00007f5b0683942e in ?? () from /lib64/libc.so.6
No symbol table info available.
#17 0x00007f5b068394e9 in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#18 0x0000558947259f05 in ?? ()
No symbol table info available.
[Inferior 1 (process 3821) detached]
Edited by Alec Stewart