OpenBSD: Inkscape hangs/segfaults
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Critical
|
Unassigned |
Bug Description
I managed to compile inkscape-0.44 on OpenBSD. I had to
replace isNaN calls with isnan, isfinite with finite
and write my own log2 function
return log(x)/log(2)
When I run inkscape, then it doesn't do anything and
consumes 100% CPU (tested for several minutes).
When I run gdb inkscape and run, it segfaults immediately
with the following stack trace:
(gdb) bt full
#0 0x03d5692d in GC_find_limit (p=0x3c152ec0 "T_¾Ï",
up=0) at os_dep.c:808
result = 0x3bffff00 <Address 0x3bffff00 out of
bounds>
#1 0x03d56778 in GC_init_netbsd_elf () at os_dep.c:392
No locals.
#2 0x03d558fe in GC_init_inner () at misc.c:668
interval = 64317690
0x3bffff00 out of bounds>
#3 0x03d52129 in GC_generic_
at malloc.c:127
kind = (struct obj_kind *) 0x3d568fa
lw = 0
op = 0x0
opp = (ptr_t *) 0x23d4e2a4
#4 0x03d52249 in GC_generic_malloc (lb=92, k=1) at
malloc.c:194
result = 0x1 <Address 0x1 out of bounds>
#5 0x03d52455 in GC_malloc (lb=92) at malloc.c:319
op = 0x3d568fa
"\203Ä\
opp = (ptr_t *) 0x23d4caa0
lw = 0
#6 0x1c030bb3 in operator new (size=64317690,
scan=1006632704, collect=AUTO,
cleanup=0, data=0x0) at gc-core.h:73
mem = (void *) 0xcfbe5cb0
#7 0x1c3603aa in sp_repr_new(char const*)
(name=0xcfbe5cb0 "inkscape")
---Type <return> to continue, or q <return> to quit---
at gc-managed.h:35
No locals.
#8 0x1c35d63a in sp_repr_
(node=0x84429280, default_ns=0x0,
prefix_
repr = (class Node *) 0x1
crepr = (class Node *) 0x88a9d100
prop = 0x88a9d100
child = 0x84429280
c =
"inkscape\
000\000L]
01\000\
000\000\
000\000\
04\000\
0\000\000\
b\000\000¬
#9 0x1c35d455 in sp_repr_do_read (doc=0x88a9d100,
default_ns=0x0)
at xml/repr-io.cpp:381
repr = (class Node *) 0x88a9d100
node = 0x84429280
prefix_map = (GHashTable *) 0x80ecd940
reprs = (GSList *) 0x0
root = (class Node *) 0x0
rdoc = (struct Document *) 0x88a9d100
---Type <return> to continue, or q <return> to quit---
#10 0x1c35d096 in sp_repr_
char const*) (
buffer=
at xml/repr-io.cpp:305
doc = 0x88a9d100
rdoc = (struct Document *) 0x0
#11 0x1c03b5c7 in Inkscape:
at preferences.cpp:34
No locals.
#12 0x1c10282d in Application (this=0xcfbe5eb0, argc=1,
argv=0xcfbe5f4c,
use_gui=true, new_gui=false) at
application/
No locals.
#13 0x1c02a3e4 in main (argc=1, argv=0xcfbe5f4c) at
main.cpp:475
i = 1
use_gui = 1
app = <incomplete type>
(gdb)
this is only a guess. inkscape/ preferences. xml GC=disable.
1. if you still have a file $HOME/.
from an older installation, wiping that might help.
2. if it does not, what Boehm libgc do you have? downgrading
libgc-6.7 to 6.6 might help too.
3. a third possibility is to try export INKSCAPE_
and
4. in the past, it also was quite successful to use valgrind
instead of gdb (including the above export command) for
finding the exact position of the crash.
sorry to be so unspecific.