All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 39534] New: failed tests
@ 2011-07-26  2:29 bugzilla-daemon
  2011-07-26  2:32 ` [Bug 39534] failed udev tests (intended for Intel drm only) bugzilla-daemon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bugzilla-daemon @ 2011-07-26  2:29 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=39534

           Summary: failed tests
           Product: DRI
           Version: XOrg CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: libdrm
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: guido@trentalancia.com


Created an attachment (id=49548)
 View: https://bugs.freedesktop.org/attachment.cgi?id=49548
 Review: https://bugs.freedesktop.org/review?bug=39534&attachment=49548

Patch to fix udev tests on Intel (when there is actually no Intel drm)

In libdrm from git and latest release (2.4.26), there are some tests that fail:

PASS: openclose
PASS: getversion
PASS: getclient
PASS: getstats
lt-setversion: drmtest.c:46: is_master: Assertion `ret == 0' failed.
/bin/sh: line 5:   382 Aborted                 ${dir}$tst
FAIL: setversion
lt-updatedraw: drmtest.c:46: is_master: Assertion `ret == 0' failed.
/bin/sh: line 5:   411 Aborted                 ${dir}$tst
FAIL: updatedraw
PASS: name_from_fd
/bin/sh: line 5:   457 Segmentation fault      ${dir}$tst
FAIL: gem_basic
/bin/sh: line 5:   484 Segmentation fault      ${dir}$tst
FAIL: gem_flink
/bin/sh: line 5:   510 Segmentation fault      ${dir}$tst
FAIL: gem_readwrite
/bin/sh: line 5:   534 Segmentation fault      ${dir}$tst
FAIL: gem_mmap

Starting program: /usr/src/libdrm-2.4.26/tests/.libs/gem_basic 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x000000000040115e in drm_open_matching (pci_glob=0x4014ba "8086:*", flags=0)
at drmtest.c:82
82            if (strcmp(udev_device_get_subsystem(parent), "pci") != 0)
(gdb) where
#0  0x000000000040115e in drm_open_matching (pci_glob=0x4014ba "8086:*",
flags=0) at drmtest.c:82
#1  0x0000000000400f73 in main (argc=1, argv=0x7fffffffe298) at gem_basic.c:91
(gdb) print parent
$1 = (struct udev_device *) 0x0

Something should be done to skip certain udev function calls when parent is
NULL.

See attached patch (which works for both 2.4.26 and git). It avoids the
segmentation fault but perhaps, it produces a false positive, I am not sure:

PASS: gem_basic
failed to open intel drm device, skipping
PASS: gem_flink
failed to open intel drm device, skipping
PASS: gem_readwrite
failed to open intel drm device, skipping
PASS: gem_mmap

I have no Intel drm device. I have a Nouveau device. If I disable Intel drm
from build by proper configure options, such tests are automatically skipped
(but Intel is built by default and it's not easy to figure out what's going in
the current situation).

You can always modify the patch to behave slightly different if such tests
should fail.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 39534] failed udev tests (intended for Intel drm only)
  2011-07-26  2:29 [Bug 39534] New: failed tests bugzilla-daemon
@ 2011-07-26  2:32 ` bugzilla-daemon
  2011-07-26  2:33 ` [Bug 39534] failed general and udev tests intended for Intel drm only bugzilla-daemon
  2019-09-24 17:08 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2011-07-26  2:32 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=39534

Guido Trentalancia <guido@trentalancia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|failed tests                |failed udev tests (intended
                   |                            |for Intel drm only)
           Priority|medium                      |low

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 39534] failed general and udev tests intended for Intel drm only
  2011-07-26  2:29 [Bug 39534] New: failed tests bugzilla-daemon
  2011-07-26  2:32 ` [Bug 39534] failed udev tests (intended for Intel drm only) bugzilla-daemon
@ 2011-07-26  2:33 ` bugzilla-daemon
  2019-09-24 17:08 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2011-07-26  2:33 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=39534

Guido Trentalancia <guido@trentalancia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|failed udev tests (intended |failed general and udev
                   |for Intel drm only)         |tests intended for Intel
                   |                            |drm only

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 39534] failed general and udev tests intended for Intel drm only
  2011-07-26  2:29 [Bug 39534] New: failed tests bugzilla-daemon
  2011-07-26  2:32 ` [Bug 39534] failed udev tests (intended for Intel drm only) bugzilla-daemon
  2011-07-26  2:33 ` [Bug 39534] failed general and udev tests intended for Intel drm only bugzilla-daemon
@ 2019-09-24 17:08 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2019-09-24 17:08 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 837 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=39534

GitLab Migration User <gitlab-migration@fdo.invalid> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #1 from GitLab Migration User <gitlab-migration@fdo.invalid> ---
-- 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/mesa/drm/issues/4.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2456 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-24 17:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26  2:29 [Bug 39534] New: failed tests bugzilla-daemon
2011-07-26  2:32 ` [Bug 39534] failed udev tests (intended for Intel drm only) bugzilla-daemon
2011-07-26  2:33 ` [Bug 39534] failed general and udev tests intended for Intel drm only bugzilla-daemon
2019-09-24 17:08 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.