Summary: | nouveau_bo_name_get segmentation fault while running root tutorials/gl/glbox.C | ||
---|---|---|---|
Product: | xorg | Reporter: | Vittorio <zeccav> |
Component: | Driver/nouveau | Assignee: | Nouveau Project <nouveau> |
Status: | RESOLVED MOVED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Vittorio
2013-10-15 21:21:22 UTC
I believe this situation comes from a NULL pointer in nouveau_dri2.c:246 "r = nouveau_bo_name_get(nouveau_pixmap_bo(pixmap), &front->name);" because nouveau_pixmap_bo returns a NULL pointer and nouveau_bo_name_get dereferences it. Should the caller update_front handle this one, or the called nouveau_bo_name_get? This is from xf86-video-nouveau-1.0.9. Many codes provoke this bug, as in /usr/lib64/mesa/teapot. Your analysis is most likely correct. However I don't really see how this can happen... the pixmap should have a bo. Can you provide some details about your setup (e.g. what graphics card), as well as how one might reproduce? (You mention certain programs, but I have no idea what they are.) I have x86-64, NVIDIA GE6150-LE. Linux Fedora 20 under mate desktop. "root" is a big program from CERN, unfortunately todate I have no smaller reproducer. For your information the following is the text of glbox.C (you may make glbox() into main()) void glbox() { // Display a 3D histogram using GL (box option). //Author: Timur Pocheptsov gStyle->SetCanvasPreferGL(kTRUE); TCanvas *c = new TCanvas("glc","TH3 Drawing", 100, 10, 850, 400); TPaveLabel *title = new TPaveLabel(0.04, 0.86, 0.96, 0.98, "\"glbox\" and \"glbox1\" options for TH3."); title->SetFillColor(32); title->Draw(); TPad *boxPad = new TPad("box", "box", 0.02, 0.02, 0.48, 0.82); TPad *box1Pad = new TPad("box1", "box1", 0.52, 0.02, 0.98, 0.82); boxPad->Draw(); box1Pad->Draw(); TH3F *h31 = new TH3F("h31", "h31", 10, -1, 1, 10, -1, 1, 10, -1, 1); h31->FillRandom("gaus"); h31->SetFillColor(2); boxPad->cd(); h31->Draw("glbox"); TH3F *h32 = new TH3F("h32", "h32", 10, -2, 2, 10, -1, 1, 10, -3, 3); h32->FillRandom("gaus"); h32->SetFillColor(4); box1Pad->cd(); h32->Draw("glbox1"); } -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/65. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.