Summary: | sys-apps/dbus-1.2.3 does not start on g/FreeBSD-7 | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Alexis Ballier <aballier> |
Component: | FreeBSD | Assignee: | Doug Goldstein (RETIRED) <cardoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bsd+disabled, freedesktop-bugs, steev |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | FreeBSD | ||
URL: | https://bugs.freedesktop.org/show_bug.cgi?id=17061 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alexis Ballier
2008-09-05 07:31:25 UTC
It's basically trying to look up the user accounts listed in the configuration file. It would appear that getpwnam() and friends are not returning what it's expecting. There's probably a patch in FreeBSD's ports. I don't have a Gentoo/FreeBSD box to test or debug this on so you're going to have to do a little leg work yourself. The first step would be to check FreeBSD's ports to see if they have a patch for this and try it. If not, run D-Bus through strace and provide that output so we can see exactly what call its failing on. (In reply to comment #1) > There's probably a patch in FreeBSD's ports. There is none: they're still at 1.2.1 afaik > I don't have a Gentoo/FreeBSD box to test or debug this on so you're going to > have to do a little leg work yourself. The first step would be to check > FreeBSD's ports to see if they have a patch for this and try it. If not, run > D-Bus through strace and provide that output so we can see exactly what call > its failing on. There is no strace available but I can play with ktrace/kdump. Doing some debugging showed that code in dbus/dbus-sysdeps-unix.c:1489 (and bus/dbus-sysdeps-util-unix.c:831 for the groups) size_t buflen; buflen = sysconf (_SC_GETPW_R_SIZE_MAX); if (buflen <= 0) buflen = 1024; fun: sysconf (_SC_GETPW_R_SIZE_MAX) returns -1 here and the if(buflen<=0) check is useless since buflen is unsigned. Changing both buflen types to ssize_t fixes the issue here... (In reply to comment #2) > There is no strace available but I can play with ktrace/kdump. > truss is your friend :+P Looks like bug #224745 and this are related. (In reply to comment #4) > Looks like bug #224745 and this are related. iirc #224745 is due to fbsd 6 not supporting well pie executables; this one is a coding mistake with signed/unsigned integer types in dbus. I backported upstream fix in 1.2.3-r1 and rekeyworded it -> fixed |