Bug 18652 - Isodumper segfaults and fail to write logfile, UnicodeEncodeError
Summary: Isodumper segfaults and fail to write logfile, UnicodeEncodeError
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-07 21:48 CEST by Morgan Leijström
Modified: 2016-06-09 21:34 CEST (History)
1 user (show)

See Also:
Source RPM: isodumper-0.51-3.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Morgan Leijström 2016-06-07 21:48:20 CEST
__Test 1:
1. without an USB flash plugged in, I started isodumper in terminal by:
  # LC_ALL=C isodumper
2. It show dialog no suitable devices found
3. Select to abort, and it aborts but segfaults too


__Test 2:
1) with USB flash plugged in, I started it as above
2) chose device, and formatted.
It say it failed.
(and yes it did fail formatting, but that is beyond this bug report)
3) close it, and in terminal i see lot of lines, the last per below.
I also noticed it do not write isodumper.log.


Traceback (most recent call last):
  File "/usr/lib/isodumper/isodumper.py", line 861, in <module>
    app.handleevent()
  File "/usr/lib/isodumper/isodumper.py", line 812, in handleevent
    self.close()
  File "/usr/lib/isodumper/isodumper.py", line 539, in close
    self.write_logfile()
  File "/usr/lib/isodumper/isodumper.py", line 557, in write_logfile
    logfile.write(self.logview.logText())
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 1: ordinal not in range(128)
<_M_> [ui] YUILoader.cc:104 deleteUI(): Shutting down UI
<ERR> [ui] YUI.cc:94 ~YUI(): 1 open dialogs left over
/usr/libexec/isodumper: line 16:  8799 Segmentation fault      python3 $DIR/isodumper.py $1
Comment 1 Morgan Leijström 2016-06-07 21:50:06 CEST
BTW my localisation is Sweden, swedish, and i run it in mga6 64bit KDE Konsole

CC: (none) => yves.brungard_mageia

David Walser 2016-06-07 22:04:51 CEST

CC: (none) => luigiwalser
Assignee: bugsquad => geiger.david68210

David Walser 2016-06-07 22:05:01 CEST

CC: luigiwalser => (none)

Comment 2 papoteur 2016-06-07 22:10:21 CEST
Good catch.
Comment 3 papoteur 2016-06-09 20:09:29 CEST
I did other further tests.
The behaviour is fine with the command
LANGUAGE=C isodumper.
With LC_ALL=C, the interface remains in the local language. Thus, this command is not adapted if the goal is to change the interface language, but the previous one.
Thus, I think to close the report as WONTFIX, except if there is another good reason to use this prefix.
Comment 4 Morgan Leijström 2016-06-09 21:21:38 CEST
OK is seem both are OK in Mageia
https://wiki.mageia.org/en/How_to_report_a_bug_properly#Principles

I personally just did not know about "LANGUAGE=C"

Of course debugging and bug reporting would be less confusing if both worked, or it reported about incompatibility with "LC_ALL=C", but i understand you have other things to do :)  so it is OK for me if you want to close it.
Comment 5 papoteur 2016-06-09 21:34:55 CEST
OK, closing as won't fix

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX


Note You need to log in before you can comment on or make changes to this bug.