Bugzilla – Bug 1142317
opiegen segfaults on OBS
Last modified: 2019-07-26 09:39:54 UTC
Created attachment 811139 [details]
opiegen run through gdb
When having the package opie as buildtime requirement, the opiegen executable segfaults. The same occurs inside an osc chroot.
opiegen runs fine otherwise.
Created attachment 811140 [details]
opiegen run through valgrind
I had tried this locally, but could not yet get it to crash.
ok, in osc build chroot it does.
int i = __opiegetutmpentry(ttyname(0), &utmp);
ttyname(0) is returning NULL
mount -t devpts none /dev/pts/
in chroot and it starts to work
Very interesting. Any idea why it would fail only on Factory but not on Leap?
might be a glibc change that no longer provides a fall for ttyname(0) if devpts is not mounted.
Not sure if we need to fiix this, I would add a safety check in the opiue code at most