However that was a red herring, as I was still unable to login.
While I was inside plasma I fixed the remaining broken applet and started doing what I should have done from the beginning - analyzing the problem.
I saw that when the login stopped progressing, there was the kwapper4 process fully occupying one of the cores. The hotuser DTrace script told me it spent all the time inside the getDisplay() function. I then attached dbxtool and saw that it's looping these two lines:
while((i = strchr(result, ':')))That was weird. I started checking the documentation of strchr to see if there might be some difference between its behavior on Linux and Solaris and found nothing. Then I noticed that the code behaves correctly when I remove all the build options and after a handful of iterations I had the culprit - -xbuiltin=%all ... As the Studio documentation says - "Note that these substitutions can cause the setting of errno to become unreliable. If your program depends on the value of errno, avoid this option." and that's exactly what was happening.
*i = '_';
I removed the option from the whole kde-solaris repository, as it's probably only safe to use when one has the code under full control, which is not our case.
Now I'm able to log into KDE again:
Since KDE 4.8 will be released within several hours, I'll wait with publishing the binary packages
for the final release.
No comments:
Post a Comment