Public bug reported:
>From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692449
[Impact]
In versions 0.72-2 and 0.72-3, if the user
neglects to define the preprocessor symbol BLISS_USE_GMP when
compiling their code, it will build successfuly but segfault at
runtime. This is fixed in -4. The fix in -3 is needed for this to
work transparently.
bliss is a leaf package in Wheezy, but I've already had bug reports
(on the bugtracker of an upstream project) for -3.
[Test case]
Install libbliss-dev 0.72-3 (or probably -2, untested)
compile the attached C++ file (from the bliss source package) like
% g++ -o crashme -I/usr/include/bliss bliss.cc -lbliss
run on any input, e.g.
c An example graph.
p edge 4 5
n 2 1
e 1 2
e 4 1
e 2 3
e 2 4
e 3 4
The result is a segmentation fault.
I'm not running Ubuntu, but I have confirmation from Ubuntu users on
12.04 and 12.10 that this failure occurs there.
[Fix]
The fix 0.72-4.
Here is the debdiff, less the changelog stanzas.
diff -u bliss-0.72/debian/Makefile.shlib bliss-0.72/debian/Makefile.shlib
--- bliss-0.72/debian/Makefile.shlib
+++ bliss-0.72/debian/Makefile.shlib
@@ -15,7 +15,7 @@
$(CC) -fPIC -c $(CFLAGS) -o $@ $<
libbliss.so: $(GMPSHOBJS)
- $(CC) -shared -Wl,-soname,$(SONAME) -o $(SOFULL) $^
+ $(CC) -shared -Wl,-soname,$(SONAME) $(LIB) -o $(SOFULL) $^
ln -sf $(SOFULL) $(SONAME)
ln -sf $(SOFULL) libbliss.so
only in patch2:
unchanged:
--- bliss-0.72.orig/defs.hh
+++ bliss-0.72/defs.hh
@@ -23,6 +23,8 @@
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*/
+#undef BLISS_USE_GMP
+#define BLISS_USE_GMP
namespace bliss {
[ Regression Impact]
It is remotely possible (although I don't see how in this case) that
any change to installed headers could cause user code to FTBFS. As far
as I can tell, this will actually be an improvement over compiling fine
and then segfaulting.
** Affects: bliss (Ubuntu)
Importance: Undecided
Status: Fix Released
** Attachment added: "test case, from bliss source."
https://bugs.launchpad.net/bugs/1087771/+attachment/3454168/+files/bliss.cc
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1087771
Title:
omitting BLISS_USE_GMP causes mysterious failures
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bliss/+bug/1087771/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs