segmentation fault in libgtkmathview0c2a if compiled with gcc4.2

Bug #225201 reported by gares
30
Affects Status Importance Assigned to Milestone
gtkmathview (Ubuntu)
Fix Released
Undecided
Unassigned
Hardy
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: libgtkmathview0c2a

This C++ library abuses the template system, and g++-4.2 is unable to generate correct code. g++-4.1 does generate correct code (and IIRC g++-4.3 also compiles it correctly).

Please, export CXX=g++-4.1 before compiling the library and build-depend on this version of the compiler,
as done in Debian from version 0.8.0-2.

Cheers

TEST CASE:
Try Insert>Equation>From LaTeX in AbiWord. Insert any equation, pressing "insert" causes instant crash.

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

Would this be the cause of bug #187034?

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

This debdiff should fix this issue.

Revision history for this message
StefanPotyra (sistpoty) wrote :

Hi,

thanks for the debdiff, but please don't subscribe ubuntu-core-dev to get s.th. sponsored, but rather use ubuntu-main-sponsors. Thanks.

-> unsubscribed ubuntu-core-dev
-> subscribed ubuntu-main-sponsors

Cheers,
    Stefan.

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

Fixed debdiff using ubuntu1.1 version numbering system for SRUs. Thanks for all the bureaucracy.

description: updated
Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

Deleted it by mistake.

Revision history for this message
Martin Pitt (pitti) wrote :

Looks sane to me, thanks! Sponsored and uploaded.

Can you please report this to upstream/Debian as well to get Debian and intrepid fixed? Intrepid uses gcc/g++ 4.3, so is this even an issue for intrepid?

Changed in gtkmathview:
status: New → In Progress
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

Debian and Intrepid are already fixed (they are forced to use g++ 4.3).

My PPA package (which is the same as the hardy-proposed one) works fine, will test the real one when the GB archive catches up however.

Thanks for the speed of your response.

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks, closing Intrepid task then.

Changed in gtkmathview:
status: New → Fix Released
Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

The snag is that G++ 4.1 isn't in main. Could gtkmathview be moved into universe for Hardy?

Revision history for this message
Martin Pitt (pitti) wrote :

2008-07-07 07:42:00 INFO Removing candidates:
2008-07-07 07:42:00 INFO gtkmathview 0.8.0-1ubuntu1.1 in hardy
2008-07-07 07:42:00 INFO Removed-by: Martin Pitt
2008-07-07 07:42:00 INFO Comment: universe build deps
2008-07-07 07:42:00 INFO 1 package successfully removed.

I removed the SRU from hardy-proposed again. Of course we can't just move gtkmathview into universe, it is needed by Abiword (if we wouldn't need it in main, it wouldn't be there in the first place :-) ).

So we need a proper fix for hardy, not just a workaround by using a different compiler, I'm afraid.

Changed in gtkmathview:
status: Fix Committed → New
Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) wrote :

Och well, looks like it will never work in Hardy. Of course, there's always my PPA package.

Revision history for this message
Steve Beattie (sbeattie) wrote :

Removing the verification-needed tag since the package has been pulled from hardy-proposed.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Hardy has seen the end of its life and is no longer receiving any updates. Marking the Hardy task for this ticket as "Won't Fix".

Changed in gtkmathview (Ubuntu Hardy):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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