[Y-devel] Re: y fails to start but gives no useful error message

Jerrit Erickson jerrit at google.com
Mon Jan 23 03:09:14 GMT 2006


If it helps any, I stepped through it from main until exit with gdb.
There's no mention of the fonts dir, which I know was the usual
problem behind this error. I don't understand what it's testing for,
but at least this is more detailed than strace.

187           else if (pid != 0)
(gdb) step
192               close (pipedes[1]);
(gdb) step
197               ssize_t ret = read (pipedes[0], returns, sizeof (int) * 2);
(gdb) step
198               if (ret > 0)
(gdb) step
217                   if (ret == 0 || errno == EPIPE)
(gdb) step
219                       fprintf (stderr, "Y: server exited before
starting up\n");
(gdb) step
Y: server exited before starting up

On 1/22/06, Jerrit Erickson <jerrit at google.com> wrote:
> I'm still using the old 0.2.1 release, and I've gotten it to work on
> other boxes using X11 before, but on my latest try I get only:
>
> Y: server exited before starting up
>
> The same thing happens whether I use the startY script or directly run
> the Y binary. The box in question doesn't have X on it, but I've tried
> both the fbcon and SDL drivers and messed with the config files some
> with no results. I ran strace Y, but nothing appears wrong in the
> output until the very end:
>
> fork()                                  = 15760
> close(5)                                = 0
> read(4, "", 8)                          = 0
> --- SIGCHLD (Child exited) @ 0 (0) ---
> write(2, "Y: server exited before starting"..., 36Y: server exited
> before starting up
> ) = 36
> exit_group(1)                           =?
>
>
> I'd like to solve this myself if I can, but what's the best way to
> debug Y? I don't know enough about threaded apps to go any further.
> Thanks!
>



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved