free(): invalid size
I get the following error whenever running nwnsc with valid options:
$ nwnsc -n ~/Games/00840/ -h ~/.nwn test.nss
Loading base game resources...
Compiling: test.nss
free(): invalid size
fish: “nwnsc -n ~/Games/00840/ -h ~/.n…” terminated by signal SIGABRT (Abort)
This happens regardless of whether I use 1.74 or 1.69 game files or a directory with a dump of the full script source.
Here's the core dump:
PID: 5074 (nwnsc)
UID: 1000 (squattingmonk)
GID: 1000 (squattingmonk)
Signal: 6 (ABRT)
Timestamp: Sun 2018-03-18 20:57:44 CDT (3min 9s ago)
Command Line: nwnsc -n /home/squattingmonk/Games/00840/ -h /home/squattingmonk/.nwn test.nss
Executable: /home/squattingmonk/.bin/nwnsc
Control Group: /user.slice/user-1000.slice/session-c1.scope
Unit: session-c1.scope
Slice: user-1000.slice
Session: c1
Owner UID: 1000 (squattingmonk)
Boot ID: 852cb67ee7774359bc4d918291278595
Machine ID: ce70d7e07c8044dcb9012ebce05e4eb4
Hostname: solstice
Storage: /var/lib/systemd/coredump/core.nwnsc.1000.852cb67ee7774359bc4d918291278595.5074.1521424664000000.lz4
Message: Process 5074 (nwnsc) of user 1000 dumped core.
Stack trace of thread 5074:
#0 0x00000000f7fc0db9 __kernel_vsyscall (linux-gate.so.1)
#1 0x00000000f7b7be42 raise (libc.so.6)
#2 0x00000000f7b7d556 abort (libc.so.6)
#3 0x00000000f7bbe8fb __libc_message (libc.so.6)
#4 0x00000000f7bc52ce malloc_printerr (libc.so.6)
#5 0x00000000f7bc6c2b _int_free (libc.so.6)
#6 0x00000000565a34f1 n/a (/home/squattingmonk/.bin/nwnsc)
#7 0x00000000565a50c2 n/a (/home/squattingmonk/.bin/nwnsc)
#8 0x00000000565943cf n/a (/home/squattingmonk/.bin/nwnsc)
#9 0x00000000565952be n/a (/home/squattingmonk/.bin/nwnsc)
#10 0x0000000056590d42 n/a (/home/squattingmonk/.bin/nwnsc)
$ uname -a
Linux solstice 4.15.7-1-ARCH #1 SMP PREEMPT Wed Feb 28 19:01:57 UTC 2018 x86_64 GNU/Linux