Bug 43783 - oglc accum(basic.add) sefaults
Summary: oglc accum(basic.add) sefaults
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: All Linux (All)
: high major
Assignee: Ian Romanick
QA Contact:
URL:
Whiteboard:
Keywords:
: 43816 (view as bug list)
Depends on:
Blocks: 42993
  Show dependency treegraph
 
Reported: 2011-12-13 01:57 UTC by fangxun
Modified: 2012-01-15 22:11 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
New piglit case to reproduce this regression (1.63 KB, text/plain)
2011-12-30 18:56 UTC, Shuang He
Details

Description fangxun 2011-12-13 01:57:54 UTC
System Environment:
--------------------------
Arch:           i386
Platform:       huronriver
Libdrm:         (master)2.4.28-4-gdd9a5b4f7fb07c78db4e7481bedca1b981030e3f
Mesa:           (master)fc52534f012837a39c03a764eb611d460210514a
Xserver:                (master)xorg-server-1.11.99.1-101-g372a6f10dc2d74d2d179e8b92449e9b8636a99ef
Xf86_video_intel: (master)2.17.0-90-ge9e6d6f7c8af300716c64b041f96c09d58b3eaa2
Kernel:  (drm-intel-next)9a10f401a401ca69c6537641c8fc0d6b57b5aee8


Bug detailed description:
-------------------------
Below oglc cases also sefault:
accum(basic.accum), accum(basic.load), accum(basic.mask),  accum(basic.mult),
mustpass(basic.accum),scissor(basic.allCases), conditional_render(advanced.fbo.queryOnFBO), conditional_render(advanced.nofbo.nowait), conditional_render(advanced.nofbo.readpixels),conditional_render(basic.nowait)
conditional_render(basic.typical),conditional_render(basic.wait.nv)

Auto bisect fails because there’s a mesa build failure mixed in that period.
The first bad commit could be any of:
122c6768e3d4c1d1b57203eca70569f9301baab5 build failure
e6e734f14317cdb9b77b8192569317c3fecf581f build failure
bb887b72f71e1323ce35c676f5207a6b2424fed4 build failure
14721dfe99a30014e2e24088a1bbf9b043e10b13 build failure
6e8c1a92b31d68048da38eee1e97bb1c22955207 build failure
ff8e6420fbbbd80c8fd7327f2f2b68e016b7f5c0 build failure 
379e0a3ada995b4cf57d142e0dd4618022e0aadc build failure
b85284f45e8b05ba9a0dac8dd95a9c078e4a635e build failure
d0dc75c000d5af92648c7de901756400672b8447 bad(build success)


Reproduce steps:
----------------
1. start X
2. ./oglconform -z -s -suite all -v 2 -D 117 -test accum basic.add
Comment 1 fangxun 2011-12-14 02:01:17 UTC
Below oglc cases are caused by commit 7a63a311e56, Pls see bug 43816.
scissor(basic.allCases),
conditional_render(advanced.fbo.queryOnFBO),
conditional_render(advanced.nofbo.nowait),
conditional_render(advanced.nofbo.readpixels),conditional_render(basic.nowait)
conditional_render(basic.typical),conditional_render(basic.wait.nv)

Below cases segfault on pineview, ironlake and sandybridge.
accum(basic.add), accum(basic.accum), accum(basic.load), accum(basic.mask),  accum(basic.mult), mustpass(basic.accum).

Backtrace for oglc accum(basic.add)
#0  intel_map_renderbuffer (ctx=0x9c5de68, rb=0x9c5c4f8, x=0, y=0, w=100, h=100, mode=2, out_map=0xbfffe9ac, out_stride=0xbfffe9a8) at intel_fbo.c:125
#1  0xb7b25484 in _mesa_clear_accum_buffer (ctx=0x9c5de68) at main/accum.c:159
#2  0xb7c1ee90 in _swrast_Clear (ctx=0x9c5de68, buffers=64) at swrast/s_clear.c:231
#3  0xb7a90bea in intelClear (ctx=0x9c5de68, mask=0) at intel_clear.c:115
#4  0xb7cd5fc2 in _mesa_Clear (mask=<optimized out>) at main/clear.c:242
#5  0x0805f816 in conform::(anonymous namespace)::CAccumAdd::Run() ()
#6  0x08e260b0 in conform::SubcaseBase::RunSubcase(boost::shared_ptr<conform::SubcaseBase> (*)()) ()
#7  0x08e2644f in conform::ExecuteTest(testParameters*, conform::TestInfoBase&, conform::TestCaseInfo const*, unsigned int) ()
#8  0x0805e08d in AccumExec(testParameters*) ()
#9  0x08d60348 in callFunctionHandleExceptionsInner(long (*)(testParameters*), testParameters*, char*) ()
#10 0x08d60497 in callFunctionHandleExceptions(long (*)(testParameters*), testParameters*) ()
#11 0x08d5ef49 in DriverExec(long (*)(testParameters*), testParameters*) ()
#12 0x08d44979 in Driver(std::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, std::vector<driverRec*, std::allocator<driverRec*> > const&, std::vector<boost::shared_ptr<PrePostTestAction>, std::allocator<boost::shared_ptr<PrePostTestAction> > > const&, std::vector<boost::shared_ptr<PrePostTestcaseAction>, std::allocator<boost::shared_ptr<PrePostTestcaseAction> > > const&) ()
#13 0x08d44d8e in (anonymous namespace)::MyMessagePump::idle() ()
#14 0x08d17d3a in MessagePump::process_messages() ()
#15 0x08d45776 in ExecutionManager::execute_schedules() ()
#16 0x08cd258b in tkShellExecute(std::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, std::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&) ()
#17 0x08cdb852 in main ()
Comment 2 fangxun 2011-12-15 01:04:18 UTC
*** Bug 43816 has been marked as a duplicate of this bug. ***
Comment 3 Shuang He 2011-12-30 18:56:34 UTC
Created attachment 54989 [details]
New piglit case to reproduce this regression

This simple test case could be used to reproduce this regression
Comment 4 fangxun 2012-01-13 01:31:59 UTC
It also happens on mesa 8.0 branch.
Comment 5 Eric Anholt 2012-01-13 13:02:00 UTC
commit 6dbdc0395698de929e23b4ec1ab399e64ecfd264
Author: Brian Paul <brianp@vmware.com>
Date:   Sat Jan 7 15:05:35 2012 -0700

    intel: fix mapping of malloc'd renderbuffers
Comment 6 fangxun 2012-01-15 22:11:07 UTC
Verified with mesa master commit c82879a071e7df34c51b2170472ca4ca423f5905 and 8.0 commit c85402aba91755808729fadf57a9f92285f4e61a .


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.