*** Error in `/usr/local/bin/node': free(): invalid pointer: 0x0000000001e8ba38 ***
Program received signal SIGABRT, Aborted.
0x00007ffff6c1b067 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
I was able to track the problem in GDB to a call to ptp_free_devicepropvalue in ptp2/config.c.
There is no explicit call to memset (&propval,0,sizeof(propval)); before the attempt to free, and if the property is read-only, the putfunc call that would otherwise populate propval is skipped.
So, depending on what propval is initialized to, the attempt to free its resources will fail.
I'm working with the vcamera, and tried setting the
imagesize
config value to320x240
. E.g.:I sporadically get the following sort of crash:
I was able to track the problem in GDB to a call to
ptp_free_devicepropvalue
in ptp2/config.c.There is no explicit call to
memset (&propval,0,sizeof(propval));
before the attempt to free, and if the property is read-only, theputfunc
call that would otherwise populatepropval
is skipped.So, depending on what
propval
is initialized to, the attempt to free its resources will fail.