After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 595566 - crash when passing a list with a None value to GConf
crash when passing a list with a None value to GConf
Status: RESOLVED FIXED
Product: gnome-python
Classification: Deprecated
Component: gconf
2.26.x
Other Linux
: Normal critical
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2009-09-18 11:25 UTC by Tomeu Vizoso
Modified: 2009-11-28 18:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backtrace (5.33 KB, application/octet-stream)
2009-09-18 11:25 UTC, Tomeu Vizoso
Details

Description Tomeu Vizoso 2009-09-18 11:25:34 UTC
Created attachment 143434 [details]
backtrace

You can reproduce it by:

import gconf
c = gconf.Client()
c.set_list('mec', gconf.VALUE_STRING, [None])

Will attach full backtrace, though the issue seems to be that
gconf_value_list_from_primitive_list calls g_utf8_validate with NULL as the
string.

I'm not sure which function should be checking that values could be None.
Comment 1 Gustavo Carneiro 2009-11-28 18:36:36 UTC
It appears libgconf doesn't accept NULL strings, but at least None now raises exception, not crash.

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.