guml crashed with OSError in list()

Bug #133694 reported by Kiran Patil
8
Affects Status Importance Assigned to Milestone
guml (Debian)
Fix Released
Unknown
guml (Ubuntu)
Fix Released
Medium
Adrien Cunin

Bug Description

Binary package hint: guml

Machine Details:
---------------------
1. kiran@kiran-desktop:~$ uname -a
 Linux kiran-desktop 2.6.22-9-generic #1 SMP Fri Aug 3 00:20:35 GMT 2007 x86_64 GNU/Linux

2. kiran@kiran-desktop:~$ cat /etc/issue
Ubuntu gutsy (development branch) \n \l

3. kiran@kiran-desktop:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) D CPU 2.66GHz
stepping : 7
cpu MHz : 2659.150
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl tm2 cid cx16 xtpr lahf_lmkiran@kiran-desktop:~$ cat /etc/issue
Ubuntu gutsy (development branch) \n \l

bogomips : 5322.36
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) D CPU 2.66GHz
stepping : 7
cpu MHz : 2659.150
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl tm2 cid cx16 xtpr lahf_lm
bogomips : 5318.62
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

Steps to reproduce:
-------------------------
1. Install Ubuntu Gutsy Gibbon - Tribe 4 test release (64-bit PC (AMD64) desktop CD)

2. Install "guml" from "Synaptic Package Manager", it will also install user-mode-linux and uml-utilities

3. Now open a Terminal and enter the following command and it will throw error message
kiran@kiran-desktop:~$ guml

4. I upgraded the packages which it has asked but the result is same

Observed Behaviour:
--------------------------
Traceback (most recent call last):
  File "/usr/bin/guml", line 143, in <module>
    win = TerminalWindow()
  File "/usr/bin/guml", line 35, in __init__
    self.configured_umls = uml.list()
  File "/usr/share/guml/uml.py", line 40, in list
    for entry in os.listdir("%s/.guml" % os.getenv("HOME")):
OSError: [Errno 2] No such file or directory: '/home/kiran/.guml'

ProblemType: Crash
Architecture: amd64
Date: Mon Aug 20 21:21:39 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/guml
InterpreterPath: /usr/bin/python2.5
Package: guml 0.3-0.1
PackageArchitecture: all
ProcCmdline: python /usr/bin/guml
ProcCwd: /home/kiran
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_IN
PythonArgs: ['/usr/bin/guml']
SourcePackage: guml
Title: guml crashed with OSError in list()
Uname: Linux kiran-desktop 2.6.22-9-generic #1 SMP Fri Aug 3 00:20:35 GMT 2007 x86_64 GNU/Linux

Tags: apport-crash

Related branches

Revision history for this message
Kiran Patil (kirantpatil) wrote :
Revision history for this message
Adrien Cunin (adri2000) wrote :

Thanks for your bug report.

Traceback says: "OSError: [Errno 2] No such file or directory: '/home/kiran/.guml'".
You can use "mkdir ~/.guml" as a workaround for now.

Changed in guml:
assignee: nobody → adri2000
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Adrien Cunin (adri2000) wrote :

Actually creating ~/.guml is not enough, you also need to create the config file(s), see Debian #413687.

I'll upload a fix which makes guml fail gracefully if ~/.guml doesn't exist and point the user to /usr/share/doc/guml/README.

Revision history for this message
Adrien Cunin (adri2000) wrote :

Uploaded, but it's currently held in the queue because of the Tribe 5 freeze.

Changed in guml:
status: In Progress → Fix Committed
Revision history for this message
Adrien Cunin (adri2000) wrote :

guml (0.3-0.1ubuntu2) gutsy; urgency=low

  * Fail gracefully if ~/.guml/ doesn't exist and point the user to
    /usr/share/doc/guml/README (LP: #133694)
  * debian/rules: move dh_* from binary-indep to binary-arch and remove -i
    (--indep), fixes FTBFS.

 -- Adrien Cunin <email address hidden> Wed, 22 Aug 2007 18:26:03 +0200

Changed in guml:
status: Fix Committed → Fix Released
Changed in guml:
status: Unknown → New
Changed in guml:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.