Duplicate message definitions cause failures in export queue script

Bug #2621 reported by Christian Reis
8
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Carlos Perelló Marín

Bug Description

When running the export queue script, occasionally duplicate message definitions cause crashes while running msgfmt. This happened recently for zope/ja.mo, for instance.

  File "/srv/launchpad.net/production/launchpad/cronscripts/../lib/canonical/launchpad/scripts/po_export_queue.py", line 99, in get_contents
    return compiler.compile(po_contents)
  File "/srv/launchpad.net/production/launchpad/lib/canonical/launchpad/components/poexport.py", line 573, in compile
    raise MOCompilationError("PO file compilation failed:\n" + stdout)
MOCompilationError: PO file compilation failed:
<stdin>:6562: duplicate message definition
<stdin>:5757: ...this is the location of the first definition
/usr/bin/msgfmt: found 1 fatal error

Full traceback at: http://librarian.launchpad.net/469148/469181/A7KxO0F0jsMZAiTR77lKkeCIwXT.txt

Revision history for this message
Carlos Perelló Marín (carlos) wrote :

This is related to obsolete entries.

Changed in rosetta:
assignee: nobody → carlos
status: New → Accepted
Changed in rosetta:
status: Confirmed → In Progress
Revision history for this message
Carlos Perelló Marín (carlos) wrote :

This problem is already fixed, but a cached export was still showing it.

We forced a cache refresh in all pofiles on launchpad and this problem has gone as was already fixed some time ago.

Changed in rosetta:
status: In Progress → Fix Released
Revision history for this message
Adi Roiban (adiroiban) wrote :

I don't know if this is a regression.

I have exported the evolution po file

http://launchpadlibrarian.net/22978751/po_evolution-2.26-ro.po

Checking the file I got.

$ msgfmt -v -o /dev/null -c po_evolution-2.26-ro-error.po
po_evolution-2.26-ro-error.po:24173: duplicate message definition...
po_evolution-2.26-ro-error.po:7975: ...this is the location of the first definition
msgfmt: found 1 fatal error

This should be an important bug as due to this error you can not create the .mo file for evolution

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.