PDA

View Full Version : c-cgi program behaves differently when run on commandline?


bromo
16-01-06, 16:57
I'm working on a simple html based playlist 'thing'. I am able to walk the /hdd/audio directory, build a playlist file and start a cgi program that starts MediaPlayer for all directories listed in that file.
My problem now is that the cgi program (c program) crashes when it's started 'through' the httpd(as a cgi should). When I logon through telnet and start the same program, it runs happily, playing everything in the playlist.
Is there anybody out these that has seen this problem (and knows how to handle it..)?
When I get a decently working set of programs, I will share them of course(if someone is interested in a simple web based player)..

Thanks! (Oh, I'm running on Martinb's latest and greatest stage2b)

martinb
16-01-06, 17:26
My problem now is that the cgi program (c program) crashes when it's started 'through' the httpd(as a cgi should). When I logon through telnet and start the same program, it runs happily, playing everything in the playlist...
Is there anybody out these that has seen this problem (and knows how to handle it..)?
..
Thanks! (Oh, I'm running on Martinb's latest and greatest stage2b)

In fact I have the same problem
to explain it technically it will be a very boring message so I will try to make it short

Somehow there is a "bug" in the uclib this "bug" will make the cgi execution fail on some circumstances
Together with sergey (the person who wrote the httpd) we are working on a solution
But problem is that its not a "bug" in this source but a "bug" in the toolchain
Also I’m moving to a other tool chain(crosscompiler) with help of stigpo, This toolchain solves the CGI "bug" but create other "bugs" :(

I’m sure we will find a solution for this problem
Question is "how long will this take"
Will keep you informed and if you want send me a PM, (with your real email address) so I can use you as a beta tester for the next httpd release :)

Regards, Martinb

Belgabor
17-01-06, 20:26
Please count me in. I had a similar problem and thought I was gonig mad =)

I forgot: If you are in contact with the developer of the httpd, could you ask him to make it deliver the referer to the cgi in some way?