dictconv segfault during conversion

Bug #347695 reported by untypableusername
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dictconv (Ubuntu)
Invalid
Medium
Unassigned
Nominated for Karmic by Leonardo Silva Amaral

Bug Description

Description: Ubuntu 8.10
Release: 8.10
(Though I really use Xubuntu, without the xubuntu-desktop package installed.)

Instead of converting some .bgl dictionaries to either .index or .dic types, dictconv 0.2.7 segfaults.

This command, to convert an English-Hebrew dictionary, works fine:
$ dictconv Babylon_English_Hebrew.BGL -o Babylon_English_Hebrew.index >Babylon_English_Hebrew.dict

This one, to convert a Hebrew-English one, doesn't:
$ dictconv Babylon_Hebrew_English.BGL -o Babylon_Hebrew_English.index >Babylon_Hebrew_English.dict

I included my Babylon_Hebrew_English.BGL, if that might be the problem.

Revision history for this message
untypableusername (untypableusername) wrote :
description: updated
Revision history for this message
dhalsim (baris-aydek) wrote :

I'm getting segmentation fault, Error openning iconv library fault
but sometimes it's converting the SAME bgl file successfully.

isn't this weird these are happening with the same commands and files?

Revision history for this message
Leonardo Silva Amaral (leleobhz) wrote :
Download full text (35.5 KiB)

Happens with me, and i think can be something related to file encoding (Special chars?). Details:

leleobhz@tarsila:/media/dados/PROGRAMAS/STARDICT_DICS$ dictconv Wikipedia_Portuguese_sub.BGL -o Wikipedia_Portuguese_sub/Wikipedia_Portuguese_sub.ifo
Error openning iconv library
leleobhz@tarsila:/media/dados/PROGRAMAS/STARDICT_DICS$ dictconv Wikipedia_Portuguese_sub.BGL -o Wikipedia_Portuguese_sub/Wikipedia_Portuguese_sub.ifo
Falha de segmentação (Segmentation Fault)

leleobhz@tarsila:/media/dados/PROGRAMAS/STARDICT_DICS$ dmesg | tail
[37800.073476] dictconv[5281]: segfault at 800622820 ip 00007fdc413670eb sp 00007fff9342e4f0 error 4 in libstdc++.so.6.0.13[7fdc412c0000+f2000]
[38023.837138] dictconv[5415]: segfault at 800622960 ip 00007f6b64e750eb sp 00007fff5e7204a0 error 4 in libstdc++.so.6.0.13[7f6b64dce000+f2000]
[38275.363534] dictconv[5454]: segfault at fffffffffffffff8 ip 00007f9ef29da0f3 sp 00007fff67b11960 error 4 in libstdc++.so.6.0.13[7f9ef2933000+f2000]
[38276.405972] dictconv[5456]: segfault at 800622700 ip 00007fccfd8900eb sp 00007fffb5a8c030 error 4 in libstdc++.so.6.0.13[7fccfd7e9000+f2000]
[38536.686109] dictconv[5954]: segfault at 8006226a0 ip 00007f652445e0eb sp 00007fff884651a0 error 4 in libstdc++.so.6.0.13[7f65243b7000+f2000]
[38538.898361] dictconv[5955]: segfault at 800622a70 ip 00007ff5ec6ba0eb sp 00007fff6480b7a0 error 4 in libstdc++.so.6.0.13[7ff5ec613000+f2000]
[38599.176079] dictconv[6023]: segfault at 8006229f0 ip 00007fde0a0120eb sp 00007fff85cc08a0 error 4 in libstdc++.so.6.0.13[7fde09f6b000+f2000]
[38944.335961] dictconv[6106]: segfault at 8006226f0 ip 00007f68675310eb sp 00007fff0eedf460 error 4 in libstdc++.so.6.0.13[7f686748a000+f2000]
[38948.659494] dictconv[6107]: segfault at 8006229f0 ip 00007f45cb9f60eb sp 00007fffb2864590 error 4 in libstdc++.so.6.0.13[7f45cb94f000+f2000]
[38957.096161] dictconv[6124]: segfault at 800622960 ip 00007fc52dfec0eb sp 00007fff5e1fc3b0 error 4 in libstdc++.so.6.0.13[7fc52df45000+f2000]
leleobhz@tarsila:/media/dados/PROGRAMAS/STARDICT_DICS$

leleobhz@tarsila:/media/dados/PROGRAMAS/STARDICT_DICS$ date ; lsb_release -a
Dom Dez 27 23:18:37 BRST 2009
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
leleobhz@tarsila:/media/dados/PROGRAMAS/STARDICT_DICS$

leleobhz@tarsila:/media/dados/PROGRAMAS/STARDICT_DICS$ ldd /usr/bin/dictconv
        linux-vdso.so.1 => (0x00007ffff71ff000)
        libz.so.1 => /lib/libz.so.1 (0x00007f2322fc0000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007f2322c72000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f2322962000)
        libm.so.6 => /lib/libm.so.6 (0x00007f23226de000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f23224c7000)
        libc.so.6 => /lib/libc.so.6 (0x00007f2322158000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f2321f54000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f23231d7000)
leleobhz@tarsila:/media/dados/PROGRAMAS/STARDICT_DICS$

leleobhz@tarsila:/media/dados/PROGRA...

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Thank you for reporting this issue. Ubuntu 8.10 was the first version of Ubuntu to have this application. The version has remained at 2.27 through lucid. Maybe this is an error with the gcc-4.3 instead of the application itself?

Changed in dictconv (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
penalvch (penalvch) wrote :

Cepher, thank you for reporting this and helping make Ubuntu better. However, your crash report is missing. Please follow these instructions to have apport report a new bug about your crash that can be dealt with by the automatic retracer. First, execute at a terminal:
cd /var/crash && sudo rm * ; sudo apt-get update && sudo apt-get -y upgrade && sudo service apport start force_start=1

If you are running the Ubuntu Stable Release you might need to enable apport in /etc/default/apport and restart.

Now reproduce the crash, then open your file manager, navigate to your /var/crash directory and open the crash report you wish to submit.
If this fails you will have to open a terminal and file your report with 'ubuntu-bug /var/crash/_my_crash_report.crash' where _my_crash_report.crash is the crash you would like to report. If you get an error that you aren't allowed to access this report you will have to file it with 'sudo ubuntu-bug /var/crash/_my_crash_report.crash'. If you run the command against the crash report and it does nothing, you may be affected by https://bugs.launchpad.net/ubuntu/+source/apport/+bug/994921 . In order to WORKAROUND this, one would need to open the following file via a command line:
gksudo gedit /etc/apport/crashdb.conf

and comment out the line:
'problem_types': ['Bug', 'Package'],

by changing it to:
# 'problem_types': ['Bug', 'Package'],

Save, close, and try to file the crash report again via:
ubuntu-bug /var/crash/_my_crash_report.crash

I'm closing this bug report since the process outlined above will automatically open a new bug report which can then dealt with more efficiently.

Thank you for your understanding.

Helpful bug reporting tips:
https://help.ubuntu.com/community/ReportingBugs

Changed in dictconv (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
L'Africain (lafricain79) wrote :

Hi,
Same problem on Ubuntu 14.04 32 bits and 64 bits :
dictconv Babylon_French_English_diction.BGL -o Babylon_French_English_diction.index >Babylon_French_English_diction.dict
Erreur de segmentation
dmesg | tail returns :
[ 1293.090186] dictconv[4944]: segfault at fffffffffffffff8 ip 00007fb080a7641b sp 00007ffe3b66f5d0 error 5 in libstdc++.so.6.0.19[7fb0809bb000+e6000]

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.