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 461845 - python_loader plugin segfaults if you try to write a file_opener when
python_loader plugin segfaults if you try to write a file_opener when
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export other
1.7.x
Other Linux
: Normal normal
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2007-07-30 15:49 UTC by Ignas Mikalajunas
Modified: 2007-09-09 20:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ignas Mikalajunas 2007-07-30 15:49:58 UTC
st_tt.py with:

def tt_file_open(input):
    print "Here"

and xml registration:

		<service type="file_opener" probe="FALSE" priority="1" id="tt">
			<information>
				<description>Schooltool timetable import</description>
			</information>
			<suffixes>
				<suffix>tt</suffix>
			</suffixes>
		</service>

give me a segfault if i try to run:

ssconvert -I SchoolTool_Timetable:tt Book1.tt

before printing anything.
Comment 1 Jon Kåre Hellan 2007-09-09 20:37:22 UTC
This is seriously untested code. I fixed the crash in HEAD. You can also work around the crash by defining a tt_file_probe(input) python function.

By the way, tt_file_open should be called like this: tt_file_open(sheet, input). See the example code attached to 461847.

The fix will be available in the next major software release. Thank you for your bug report.