Hello!
> > #0 0x00002b603b9c96a0 in strlen () from /lib/libc.so.6
> > No symbol table info available.
> > #1 0x00002b603b99b4cc in vfprintf () from /lib/libc.so.6
> > No symbol table info available.
> > #2 0x00002b603b9a1298 in fprintf () from /lib/libc.so.6
> > No symbol table info available.
> > #3 0x00000000004012c2 in output_header (file=1) at wftodm.c:200
> > i = 4201568
> > j = 0
> > now = 1154016900
>
> Hmm, I don't see anything wrong here. The affected code is this:
>
> time_t now = time(0);
> fprintf(ofp,"%%%%Creation Date: %s", ctime(&now)); /* <- line 200 */
>
> which looks correct. The value `1154016900' corresponds to the date
>
> Thu Jul 27 18:15:00 2006
>
> Does the following snippet, compiled as a small program, works for
> you?
>
> #include <stdio.h>
> #include <sys/time.h>
>
> void
> main(void)
> {
> time_t now = 1154016900;
> printf("%s", ctime(&now));
> }
$ gcc -O0 -g -o test test.c
test.c: In function ‘main’:
test.c:6: warning: return type of ‘main’ is not ‘int’
Backtrace:
Starting program:
/usr/src/mypackages/latex-cjk/latex-cjk-japanese-wadalab-0.20050817/test
Program received signal SIGSEGV, Segmentation fault.
0x00002b6c541376a0 in strlen () from /lib/libc.so.6
(gdb) bt full
#0 0x00002b6c541376a0 in strlen () from /lib/libc.so.6
No symbol table info available.
#1 0x00002b6c541094cc in vfprintf () from /lib/libc.so.6
No symbol table info available.
#2 0x00002b6c5410f33a in printf () from /lib/libc.so.6
No symbol table info available.
#3 0x00000000004004f7 in main () at test.c:12
now = 1154016900
Danai SAE-HAN
韓達耐
--
题目:《横塘》
作者:范成大(1126-1193)
南浦春来绿一川,石桥朱塔两依然。
年年送客横塘路,细雨垂杨系画船。
_______________________________________________
Cjk maillist - [email protected]
http://lists.ffii.org/mailman/listinfo/cjk