I'm not sure if it's really a bug. I looked at the source and best I can figure out it crashed because when it called the distribution file parser it didn't get back a single response (I'm not sure how it handled getting a double response as I didn't run a debugger on it) and didn't check that it had a proper response before it went on to use it. It's a bug to assume you get a correct response from a routine that should return correct responses, or for the routine to only expect one entry per OS in that XML file? Both seem fine assumptions to me, since you have control of both... Maybe a little better error handling would be good, but if you always checked everything we'd all run out of disk space very fast =O{ I imagine though that a bit of careful dicking with the distributions.xml file and some DNS poisoning to get someone's red-carpet to read your file rather than the official one, on top of red-carpet always being run as root could be a problem though... Maybe it should be seen as a security issue? Mark. On Tue, 2002-11-05 at 17:18, Benjamin Kahn wrote:
Mark, Ah. Interesting. That sounds like a bug. Can you file it in http://bugzilla.ximian.com/ ? Also, we have Solaris support back up now. Sorry for the problem. On Tue, 2002-11-05 at 11:14, Mark R. Bowyer wrote:Sorry - I should of mentioned that. With my fake uname library in place, I do indeed get that dialogue box. But to try to catch a truss or some better idea of why it thought I was now wrong, I was running it by hand without the wrapper script to get that crash... Sorry I left this out. Mark. On Tue, 2002-11-05 at 16:09, Benjamin Kahn wrote:Mark, Thanks for the report. You're right. Something is wonky for Solaris 8. We'll have this fixed in a few hours. (On a real Solaris 8 box, you should have gotten a dialog box telling you that the distribution wasn't supported instead of the crash.) It'll be back being supported some time today. On Tue, 2002-11-05 at 08:22, Mark R. Bowyer wrote:Hi, I'm getting the following error from red-carpet as of this morning: : [cddb90]: Reading from the cache: file:///var/cache/redcarpet/red-carpet.ximian.com:80/distributions.xml libredcarpet-ERROR **: file rc-distro.c: line 733 (rc_distro_get_status): assertion failed: (system_distro) aborting... Abort (core dumped) A bit of research shows that the distributions.xml file (when ungzipped) has two <distro> blocks at the top for Solaris 7 and 8, both marked <status> "internal", and then Solaris 7 and 8 both turn up again lower down as retired and supported respectively, and 9 shown as presupported. In all cases the same uname commands and responses are shown for the <detect> block. As far as I can make out, no other OS shows the same version twice with different statii (Latin was never my strong point ;O) and the distributions file was updated last night... Can I surmise that these "internal" blocks were left in by mistake, and are causing this problem, or do I suddenly have a compatibility problem here? I should point out I'm actually running on a new Solaris 10 alpha build, and am using a LD_PRELOADed uname-fixing library to get red-carpet to work on it. Not supported, but worked nicely thank you up until now ;O)-- o o mailto:Moredhel earthling net /v\ark R. Bowyer http://www.bowyer.screaming.net Mark Bowyer Sun COM `-' ------------------------------------------------------ /"\ \ / ASCII Ribbon Campaign fingerprint = 7924 9E9E 7B91 225E B065 X Against HTML Mail 1024D/19BC72F6 39D0 551D ABE6 1514 0DC1 / \
-- o o mailto:Moredhel earthling net /v\ark R. Bowyer http://www.bowyer.screaming.net Mark Bowyer Sun COM `-' ------------------------------------------------------ /"\ \ / ASCII Ribbon Campaign fingerprint = 7924 9E9E 7B91 225E B065 X Against HTML Mail 1024D/19BC72F6 39D0 551D ABE6 1514 0DC1 / \
Attachment:
signature.asc
Description: This is a digitally signed message part