crash when no permission to read preferences.xml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Critical
|
Unassigned |
Bug Description
On Ubuntu with cvs and 0.43:
Regardless of content of preferences.xml, if that file is
not readable then inkscape will crash with
#0 0xb71d24b0 in fread () from /lib/tls/
#1 0x083e276d in XmlSource::read (this=0xbfdbd8d4, buffer=0x8634708 "",
len=4000)
at xml/repr-io.cpp:132
#2 0xb7729d7f in xmlParserInputB
#3 0xb77036e4 in xmlParserInputGrow () from /usr/lib/
#4 0xb7706e6b in xmlPopInput () from /usr/lib/
#5 0xb771a8ee in xmlParseDocument () from /usr/lib/
#6 0xb771b63b in xmlCtxtResetPush () from /usr/lib/
#7 0x083e3435 in sp_repr_read_file (
filename=
default_ns=0x0)
at xml/repr-io.cpp:239
#8 0x0807d37e in inkscape_
"preferences.xml",
config=
skeleton=
xmlns:sodipodi=\"http://
xmlns:inkscape=\"http://
id=\"window\">\n <group id"...,
skel_size=9063, e_notreg=0x8402f51 "%s is not a regular file.\n%s",
e_notxml=
permissions on it.\n%s", e_notsp=0x8405db4 "%s is not a valid preferences
file.\n%s",
warn=0x8405d68 "Inkscape will run with default settings.\nNew settings
will not be saved.") at inkscape.cpp:655
#9 0x08083b2e in Inkscape:
#10 0x0807d8bb in inkscape_
argv0=
at inkscape.cpp:582
#11 0x08070330 in sp_main_gui (argc=1, argv=0xbfdbdb04) at main.cpp:810
#12 0x08167340 in Inkscape:
(this=0xbfdbda58)
at application/
#13 0x0806fb99 in main (argc=1, argv=0xbfdbdb04) at main.cpp:669
Fixed in SVN.