g++ programs compiled with -finstrument-functions freezes Ubuntu

Bug #539365 reported by Philip Ashmore
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-defaults (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I tried using ubuntu-bug (I think that's it's name, I'm writing this in Debian) but it gets so far in sending the bug report and then asks me to check the internet connection.

Anyway.

Download in install v3c-1.3.12 from http://sourceforge.net/projects/v3c/
Get treedb using
    git clone git://treedb.git.sourceforge.net/gitroot/treedb/treedb
Then, in the treedb root directory, do
    make git branch=0.2.0 debug check

My machine froze when it tried to run the instrumented programs.
    make git branch=0.2.2 debug check
works fine.

Curtis Hovey (sinzui)
Changed in launchpad:
status: New → Invalid
affects: launchpad → null
Revision history for this message
Kees Cook (kees) wrote :

Please see if you can catch any dmesg errors, etc from the kernel. Thanks!

security vulnerability: yes → no
visibility: private → public
Revision history for this message
Philip Ashmore (contact-philipashmore) wrote :

Er, it freezes Ubuntu, hence no logging. Have you tried to reproduce the behaviour?

Revision history for this message
Kees Cook (kees) wrote :

Well, there might have been Oops output or something like that. Can you provide a minimal test case that causes this for you? Doing a full install of v3c isn't something everyone has time to do. :)

Revision history for this message
Philip Ashmore (contact-philipashmore) wrote :

Unfortunately the machine hangs without warning.

Fortunately building and installing v3c and treedb from git is a snap.

To reproduce the circumstances of the crash I think running the checks against v3c branch 1.3.12 is a good idea - it may not be a factor.

Here is the complete procedure.

# BEGIN
mkdir tmp
cd tmp
git clone git://v3c.git.sourceforge.net/gitroot/v3c/v3c
cd v3c
make git branch=1.3.12
sudo make -C build/git/branches/1.3.12 prefix=/usr install
cd ..
git clone git://treedb.git.sourceforge.net/gitroot/treedb/treedb
cd treedb
make git branch=0.2.0 debug check # This is where the crash occurs!
# END

If you've managed to reproduce the crash then after you hard-reboot your machine you can uninstall v3c with

cd <the v3c directory>
sudo make -C build/git/branches/1.3.12 prefix=/usr uninstall

The entire procedure will take about 5 minutes (assuming you have a fast internet connection).
V3c has moved on since 1.3.12 so I can't recall, but you may have to manually remove the /usr/include/v3c directory after uninstalling v3c.

Philip

Curtis Hovey (sinzui)
no longer affects: null
Revision history for this message
Matthias Klose (doko) wrote :

please can you reproduce this with 4.8 or 4.9?

Changed in gcc-defaults (Ubuntu):
status: New → Incomplete
Revision history for this message
Philip Ashmore (contact-philipashmore) wrote :

Working with latest v3c and treedb with gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) in trusty.

See also bug https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/692104

I couldn't reproduce the bug as the current compiler is more strict and compilation fails.

Git has also changed so that you need to do a "git checkout $branch" before doing a "git reset --hard" to switch to a remote branch.

Also, v3c versions before 2.5.8-01 (to be released shortly) assumed that the git repository isn't a clone, which is true in my case.

Has anyone tried to reproduce this bug?

Changed in gcc-defaults (Ubuntu):
status: Incomplete → New
Revision history for this message
Matthias Klose (doko) wrote :

closing as fix released.

Changed in gcc-defaults (Ubuntu):
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.