Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198883 Details for
Bug 278760
x11-base/xorg-server-1.6.2-r1: SIGSEGV with sys-apps/hal-0.5.13
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Handle and free errors for libhal_find_device_by_capability
gentoo278760c.patch (text/plain), 1.59 KB, created by
Martin von Gagern
on 2009-07-23 09:04:15 UTC
(
hide
)
Description:
Handle and free errors for libhal_find_device_by_capability
Filename:
MIME Type:
Creator:
Martin von Gagern
Created:
2009-07-23 09:04:15 UTC
Size:
1.59 KB
patch
obsolete
>Handle error from libhal_find_device_by_capability. > >libhal_find_device_by_capability may encounter errors, e.g. due to a >broken HAL configuration. These errors have to be dealt with before >the list of devices is traversed. Otherwise a SIGSEGV might occur. > >2009-07-22 Martin von Gagern > >References: http://bugs.gentoo.org/278760Index: xorg-server-1.6.2/config/hal.c >=================================================================== >Index: xorg-server-1.6.2/config/hal.c >=================================================================== >--- xorg-server-1.6.2.orig/config/hal.c >+++ xorg-server-1.6.2/config/hal.c >@@ -506,7 +506,12 @@ connect_and_register(DBusConnection *con > > devices = libhal_find_device_by_capability(info->hal_ctx, "input", > &num_devices, &error); >+ if (dbus_error_is_set(&error)) { > /* FIXME: Get default devices if error is set. */ >+ LogMessage(X_ERROR, "config/hal: couldn't find input device: %s (%s)\n", >+ error.name, error.message); >+ goto out_ctx2; >+ } > for (i = 0; i < num_devices; i++) > device_added(info->hal_ctx, devices[i]); > libhal_free_string_array(devices); >@@ -516,10 +521,12 @@ connect_and_register(DBusConnection *con > return TRUE; > > out_ctx2: >+ dbus_error_free(&error); > if (!libhal_ctx_shutdown(info->hal_ctx, &error)) > LogMessage(X_WARNING, "config/hal: couldn't shut down context: %s (%s)\n", > error.name, error.message); > out_ctx: >+ dbus_error_free(&error); > libhal_ctx_free(info->hal_ctx); > out_err: > dbus_error_free(&error);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278760
:
198837
|
198841
| 198883 |
199329