Crash while merge sp_object_ref (refCount) into 0.48.1 code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
I am using Inkscape version 0.48.1, As it has some memory leak issue. I have reported some behaviour here which appears to me while using inkscape.
https:/
https:/
https:/
https:/
Today I come across the revision http://
Here is the latest version (12945) of sp-object.cpp file
object->refCount--;
if (object->refCount <= 0) {
delete object;
}
which delete the object when refCount reaches to 0, I applied this patch http://
If i remove the condition with ( object->refCount < 0) it works well, but that will not free the memory.
So I just wanted to free the memory which inkscape eats when any operation performed on object, but it crash. Can you please fix the problem so that people who is using 0.48 branch can have stable version of inkscape?
Or is there any other work around to fix the problem of crashing with the latest sp_object_ref implementation? please let me know.
Thanks.
Suresh
Changed in inkscape: | |
milestone: | none → 0.48 |
Changed in inkscape: | |
milestone: | 0.48 → 0.48.1 |
Changed in inkscape: | |
milestone: | 0.48.1 → none |
with this when I close the inkscape it also crash.
here are some frame of gdb log. i686/cmov/ libc.so. 6 i686/cmov/ libc.so. 6 i686/cmov/ libc.so. 6 i686/cmov/ libc.so. 6 i686/cmov/ libc.so. 6 i686/cmov/ libc.so. 6 libstdc+ +.so.6 :releaseReferen ces (this=0x8cf0098) at sp-object.cpp:933
#0 0x0012d422 in __kernel_vsyscall ()
#1 0x018c4651 in raise () from /lib/tls/
#2 0x018c7a82 in abort () from /lib/tls/
#3 0x018fb49d in ?? () from /lib/tls/
#4 0x01905591 in ?? () from /lib/tls/
#5 0x01906de8 in ?? () from /lib/tls/
#6 0x01909ecd in free () from /lib/tls/
#7 0x01801741 in operator delete(void*) () from /usr/lib/
#8 0x08125e5d in sp_object_unref (object=0x8b62570, owner=0x8cf0098) at sp-object.cpp:336
#9 0x08126154 in sp_object_release (object=0x8cf0098) at sp-object.cpp:788
#10 0x0810c421 in sp_item_release (object=0x8cf0098) at sp-item.cpp:468
#11 0x0812577d in SPObject:
#12 0x080957bb in ~SPDocument (this=0x8dbaf60, __in_chrg=<value optimized out>) at document.cpp:167