>>> On 1/13/2009 at 12:24 AM, Paul Gilmartin <paulgboul...@aim.com> wrote: 
-snip-
> I'll likewise welcome a test on another system (Linux?)

>From one of my Intel Linux systems:
Format: " %s -- %s "
First : "foo"
Second: "bar"

Retrying
First : "foo"
Second: "bar"

Trying vsnprintf();
 foo -- bar


On all my mainframe Linux systems, I get a segmentation fault:
(gdb) run
Starting program: /tmp/test
Format: " %s -- %s "

Program received signal SIGSEGV, Segmentation fault.
0x4009d30c in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x4009d30c in strlen () from /lib/libc.so.6
#1  0x4006e65e in vfprintf () from /lib/libc.so.6
#2  0x400750a4 in printf () from /lib/libc.so.6
#3  0x004005a4 in f2 ()
#4  0x004007a4 in f1 ()
#5  0x004007e8 in main ()

and
(gdb) run
Starting program: /tmp/testing
Format: " %s -- %s "

Program received signal SIGSEGV, Segmentation fault.
0x0000020000079b5c in vfprintf@@GLIBC_2.4 () from /lib64/libc.so.6
(gdb) bt
#0  0x0000020000079b5c in vfprintf@@GLIBC_2.4 () from /lib64/libc.so.6
#1  0x000002000007fd72 in printf@@GLIBC_2.4 () from /lib64/libc.so.6
#2  0x0000000080000754 in f2 ()
#3  0x00000000800009b8 in f1 ()
#4  0x00000000800009ee in main ()

and
(gdb) run
Starting program: /tmp/test
Format: " %s -- %s "

Program received signal SIGSEGV, Segmentation fault.
0x000002000008b36e in vfprintf () from /lib64/libc.so.6
(gdb) bt
#0  0x000002000008b36e in vfprintf () from /lib64/libc.so.6
#1  0x0000020000091e7a in printf () from /lib64/libc.so.6
#2  0x0000000080000804 in f2 ()
#3  0x0000000080000a78 in f1 ()
#4  0x0000000080000aae in main ()


Mark Post

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to