D
diyanat
i am writing a cgi script in C using the CGIC library, the script
fails to run, i am using apache on linux
error report from apache : internal server error
[error] Premature end of script headers: /var/www/cgi-bin/script.cgi
when i debug the program i get Segmentation fault
gdb ./script.cgi
(gdb) run
Starting program: /var/www/cgi-bin/script.cgi
Content-type: text/html
Program received signal SIGSEGV, Segmentation fault.
0x4206c306 in fread () from /lib/i686/libc.so.6
(gdb) backtrace
#0 0x4206c306 in fread () from /lib/i686/libc.so.6
#1 0x0804e345 in cgiMain ()
#2 0x0804952b in main ()
#3 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
any help would be appreciated
diyanat
fails to run, i am using apache on linux
error report from apache : internal server error
[error] Premature end of script headers: /var/www/cgi-bin/script.cgi
when i debug the program i get Segmentation fault
gdb ./script.cgi
(gdb) run
Starting program: /var/www/cgi-bin/script.cgi
Content-type: text/html
Program received signal SIGSEGV, Segmentation fault.
0x4206c306 in fread () from /lib/i686/libc.so.6
(gdb) backtrace
#0 0x4206c306 in fread () from /lib/i686/libc.so.6
#1 0x0804e345 in cgiMain ()
#2 0x0804952b in main ()
#3 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
any help would be appreciated
diyanat