After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744787 - openSUSE build root policy: no-return-in-nonvoid-function
openSUSE build root policy: no-return-in-nonvoid-function
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
3.15.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-19 14:04 UTC by Dominique Leuenberger
Modified: 2015-02-20 15:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Attept to fix this (1.65 KB, patch)
2015-02-19 14:04 UTC, Dominique Leuenberger
none Details | Review
user-switching: Make sure all exit paths have return values (3.77 KB, patch)
2015-02-19 15:09 UTC, Ray Strode [halfline]
none Details | Review
gdm-wayland-session: initialize local pointers to NULL (10.05 KB, patch)
2015-02-20 15:30 UTC, Ray Strode [halfline]
none Details | Review
gdm-x-session: initialize local pointers to NULL (12.75 KB, patch)
2015-02-20 15:30 UTC, Ray Strode [halfline]
none Details | Review
gdm-wayland-session: fix debug message (3.03 KB, patch)
2015-02-20 15:30 UTC, Ray Strode [halfline]
none Details | Review
gdm-x-session: fix debug message (2.99 KB, patch)
2015-02-20 15:30 UTC, Ray Strode [halfline]
none Details | Review
gdm-wayland-session: don't hardcode path to dbus-daemon (4.72 KB, patch)
2015-02-20 15:30 UTC, Ray Strode [halfline]
none Details | Review
gdm-x-session: don't hardcode path to dbus-daemon (4.60 KB, patch)
2015-02-20 15:30 UTC, Ray Strode [halfline]
none Details | Review

Description Dominique Leuenberger 2015-02-19 14:04:30 UTC
The openSUSE Build Service raises a flag for

[   55s] I: Program returns random data in a function
[   55s] E: gdm no-return-in-nonvoid-function gdm-common.c:850
[   55s] E: gdm no-return-in-nonvoid-function gdm-user-switching.c:597

This can happen when CONSOLEKIT is disabled (As is newly the case) and LOGINF_RUNNING would return false.
Comment 1 Dominique Leuenberger 2015-02-19 14:04:57 UTC
Created attachment 297272 [details] [review]
Attept to fix this
Comment 2 Ray Strode [halfline] 2015-02-19 15:09:32 UTC
Created attachment 297278 [details] [review]
user-switching: Make sure all exit paths have return values

The openSUSE Build Service raises a flag for

[   55s] I: Program returns random data in a function
[   55s] E: gdm no-return-in-nonvoid-function gdm-common.c:850
[   55s] E: gdm no-return-in-nonvoid-function gdm-user-switching.c:597

This can happen when CONSOLEKIT is disabled (As is newly the case) and
LOGING_RUNNING would return false.

Based on a patch by Dominique Leuenberger
Comment 3 Ray Strode [halfline] 2015-02-19 15:09:47 UTC
Attachment 297278 [details] pushed as d3cd493 - user-switching: Make sure all exit paths have return values
Comment 4 Ray Strode [halfline] 2015-02-20 15:30:16 UTC
Created attachment 297412 [details] [review]
gdm-wayland-session: initialize local pointers to NULL

We follow the "goto out" idiom for error handling, and so
it's important that pointers cleaned up at out time, are
initialized.

This commit does a sweep and nullifies them across the board.
Comment 5 Ray Strode [halfline] 2015-02-20 15:30:20 UTC
Created attachment 297413 [details] [review]
gdm-x-session: initialize local pointers to NULL

We follow the "goto out" idiom for error handling, and so
it's important that pointers cleaned up at out time, are
initialized.

This commit does a sweep and nullifies them across the board.
Comment 6 Ray Strode [halfline] 2015-02-20 15:30:24 UTC
Created attachment 297414 [details] [review]
gdm-wayland-session: fix debug message

It says "could not start X server" when failing to start
the dbus-daemon.
Comment 7 Ray Strode [halfline] 2015-02-20 15:30:29 UTC
Created attachment 297415 [details] [review]
gdm-x-session: fix debug message

It says "could not start X server" when failing to start
the dbus-daemon.
Comment 8 Ray Strode [halfline] 2015-02-20 15:30:33 UTC
Created attachment 297416 [details] [review]
gdm-wayland-session: don't hardcode path to dbus-daemon

It's not always in BINDIR, but it is always in the PATH,
so just let the shell/execvp figure it out.
Comment 9 Ray Strode [halfline] 2015-02-20 15:30:37 UTC
Created attachment 297417 [details] [review]
gdm-x-session: don't hardcode path to dbus-daemon

It's not always in BINDIR, but it is always in the PATH,
so just let the shell/execvp figure it out.
Comment 10 Ray Strode [halfline] 2015-02-20 15:31:28 UTC
Attachment 297412 [details] pushed as 7981fe4 - gdm-wayland-session: initialize local pointers to NULL
Attachment 297413 [details] pushed as c486068 - gdm-x-session: initialize local pointers to NULL
Attachment 297414 [details] pushed as 263d78a - gdm-wayland-session: fix debug message
Attachment 297415 [details] pushed as 71ebbc4 - gdm-x-session: fix debug message
Attachment 297416 [details] pushed as 462cb48 - gdm-wayland-session: don't hardcode path to dbus-daemon
Attachment 297417 [details] pushed as 6d8a510 - gdm-x-session: don't hardcode path to dbus-daemon
Comment 11 Ray Strode [halfline] 2015-02-20 15:32:10 UTC
woops put these on the wrong bug