Have ldm check the environment on startup

Bug #685272 reported by Lauri Võsandi
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LTSP5
Fix Released
Low
Unassigned

Bug Description

Currently LDM expects LDM_SERVER environment variable to be set. If this requirement is not set it crashes with segmentation fault.

LDM should handle cases where required environment variables aren't set or files are missing and simply exit with a non-zero return code.

Revision history for this message
Wim Muskee (wimmuskee) wrote :

Which LDM, LTSP, and distribution version?

Changed in ltsp:
status: New → Incomplete
Revision history for this message
Stéphane Graber (stgraber) wrote :

We might end up adding some checks for that in the code but it's really really low priority as you should never start ldm directory but always through /usr/share/ltsp/screen.d/ldm which guarantees that LDM_SERVER along with some other environment variables are always set.

Changed in ltsp:
status: Incomplete → Triaged
importance: Undecided → Low
summary: - Segfault is LDM_SERVER is not set
+ Have ldm check the environment on startup
description: updated
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

I just tried running /usr/sbin/ldm in Ubuntu 14.04 and it didn't crash, closing as fix-released.

Changed in ltsp:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.