PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Stepan, Jamison" <Jamison dot Stepan at state dot mn dot us>
Subject: RedHat 5.1 Strace
Date: Aug 19 1998 4:51PM

I was able to do some straces on a script when running under apache and
running from the command line. The command line works fine, the CGI doesn't.
Tried both Apache 1.2 and 1.3

The script basically grabs two columns from a table on an MSSQL server using
a basic SELECT.

Here's the trace of the CGI running as a process under Apache:

[pid 16314] close(6)                    = 0
[pid 16314] dup2(7, 1)                  = 1
[pid 16314] close(7)                    = 0
[pid 16314] close(5)                    = 0
[pid 16314] dup2(4, 0)                  = 0
[pid 16314] close(4)                    = 0
[pid 16314] close(8)                    = 0
[pid 16314] dup2(9, 2)                  = 2
[pid 16314] close(9)                    = 0
[pid 16314] sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}) = 0
[pid 16314] chdir("/home/httpd/html")   = 0
[pid 16314] dup2(16, 2)                 = 2
[pid 16314] close(18)                   = 0
[pid 16314] close(17)                   = 0
[pid 16314] close(16)                   = 0
[pid 16314] close(15)                   = 0
[pid 16314] close(19)                   = 0
[pid 16314] close(3)                    = 0
[pid 16314] execve("/home/httpd/html/test.pl", ["test.pl"], [/* 24 vars */])
= 0
[pid 16314] brk(0)                      = 0x81416d4
[pid 16314] open("/etc/ld.so.preload", O_RDONLY) = 3
[pid 16314] fstat(3, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 0, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0
[pid 16314] close(3)                    = 0
[pid 16314] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid 16314] fstat(3, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 19663, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4000b000
[pid 16314] close(3)                    = 0
[pid 16314] open("/lib/libcrypt.so.1", O_RDONLY) = 3
[pid 16314] mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40010000
[pid 16314] munmap(0x40010000, 4096)    = 0
[pid 16314] mmap(0, 181668, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40010000
[pid 16314] mprotect(0x40015000, 161188, PROT_NONE) = 0
[pid 16314] mmap(0x40015000, 135168, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x40015000
[pid 16314] mmap(0x40036000, 26020, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40036000
[pid 16314] close(3)                    = 0
[pid 16314] open("/lib/libm.so.6", O_RDONLY) = 3
[pid 16314] mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4003d000
[pid 16314] munmap(0x4003d000, 4096)    = 0
[pid 16314] mmap(0, 100064, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x4003d000
[pid 16314] mprotect(0x40055000, 1760, PROT_NONE) = 0
[pid 16314] mmap(0x40055000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x17000) = 0x40055000
[pid 16314] close(3)                    = 0
[pid 16314] open("/lib/libnsl.so.1", O_RDONLY) = 3
[pid 16314] mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40056000
[pid 16314] munmap(0x40056000, 4096)    = 0
[pid 16314] mmap(0, 21980, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40056000
[pid 16314] mprotect(0x4005a000, 5596, PROT_NONE) = 0
[pid 16314] mmap(0x4005a000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x3000) = 0x4005a000
[pid 16314] close(3)                    = 0
[pid 16314] open("/lib/libdb.so.2", O_RDONLY) = 3
[pid 16314] mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4005c000
[pid 16314] munmap(0x4005c000, 4096)    = 0
[pid 16314] mmap(0, 57216, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x4005c000
[pid 16314] mprotect(0x40069000, 3968, PROT_NONE) = 0
[pid 16314] mmap(0x40069000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0xc000) = 0x40069000
[pid 16314] close(3)                    = 0
[pid 16314] open("/usr/lib/libgdbm.so.2", O_RDONLY) = 3
[pid 16314] mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4006a000
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4006b000
[pid 16314] munmap(0x4006a000, 4096)    = 0
[pid 16314] mmap(0, 22924, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x4006c000
[pid 16314] mprotect(0x40071000, 2444, PROT_NONE) = 0
[pid 16314] mmap(0x40071000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x40071000
[pid 16314] close(3)                    = 0
[pid 16314] open("/lib/libdl.so.2", O_RDONLY) = 3
[pid 16314] mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4006a000
[pid 16314] munmap(0x4006a000, 4096)    = 0
[pid 16314] mmap(0, 9256, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40072000
[pid 16314] mprotect(0x40074000, 1064, PROT_NONE) = 0
[pid 16314] mmap(0x40074000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x40074000
[pid 16314] close(3)                    = 0
[pid 16314] open("/usr/lib/libc.so.6", O_RDONLY) = 3
[pid 16314] mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4006a000
[pid 16314] munmap(0x4006a000, 4096)    = 0
[pid 16314] mmap(0, 669752, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40075000
[pid 16314] mprotect(0x40106000, 75832, PROT_NONE) = 0
[pid 16314] mmap(0x40106000, 28672, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x90000) = 0x40106000
[pid 16314] mmap(0x4010d000, 47160, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4010d000
[pid 16314] close(3)                    = 0
[pid 16314] personality(0 /* PER_??? */) = 0
[pid 16314] getpid()                    = 16314
[pid 16314] brk(0)                      = 0x81416d4
[pid 16314] brk(0x814170c)              = 0x814170c
[pid 16314] brk(0x8142000)              = 0x8142000
[pid 16314] brk(0x8143000)              = 0x8143000
[pid 16314] getuid()                    = 99
[pid 16314] geteuid()                   = 99
[pid 16314] getgid()                    = 99
[pid 16314] getegid()                   = 99
[pid 16314] brk(0x8145000)              = 0x8145000
[pid 16314] time([903544341])           = 903544341
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] brk(0x8146000)              = 0x8146000
[pid 16314] open(ptrace: umoven: Input/output error
[pid 16314] fstat(3, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] brk(0x8147000)              = 0x8147000
[pid 16314] brk(0x8148000)              = 0x8148000
[pid 16314] brk(0x8149000)              = 0x8149000
[pid 16314] brk(0x814a000)              = 0x814a000
[pid 16314] getpid()                    = 16314
[pid 16314] fstat(3, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4006a000
[pid 16314] read(3, "#!/usr/bin/sybperl -wT\n\nprint "..., 4096) = 639
[pid 16314] brk(0x814b000)              = 0x814b000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/Sybase/CTlib.pm",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 16314] open("/usr/lib/perl5/Sybase/CTlib.pm", O_RDONLY) = -1 ENOENT (No
such file or directory)
[pid 16314] open("/usr/lib/perl5/site_perl/i386-linux/Sybase/CTlib.pm",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 16314] open("/usr/lib/perl5/site_perl/Sybase/CTlib.pm", O_RDONLY) = 4
[pid 16314] brk(0x814c000)              = 0x814c000
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40119000
[pid 16314] read(4, "\nrequire 5.002;\n\n\npackage Sy"..., 4096) = 4096
[pid 16314] brk(0x814d000)              = 0x814d000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/Carp.pm", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 16314] open("/usr/lib/perl5/Carp.pm", O_RDONLY) = 5
[pid 16314] fstat(5, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4011a000
[pid 16314] read(5, "package Carp;\n\n=head1 NAME\n\n"..., 4096) = 4096
[pid 16314] brk(0x814e000)              = 0x814e000
[pid 16314] brk(0x814f000)              = 0x814f000
[pid 16314] brk(0x8150000)              = 0x8150000
[pid 16314] brk(0x8151000)              = 0x8151000
[pid 16314] brk(0x8152000)              = 0x8152000
[pid 16314] brk(0x8153000)              = 0x8153000
[pid 16314] brk(0x8154000)              = 0x8154000
[pid 16314] brk(0x8155000)              = 0x8155000
[pid 16314] brk(0x8156000)              = 0x8156000
[pid 16314] brk(0x8157000)              = 0x8157000
[pid 16314] brk(0x8158000)              = 0x8158000
[pid 16314] read(5, "lse {\n\t    # this kludge circu"..., 4096) = 355
[pid 16314] brk(0x8159000)              = 0x8159000
[pid 16314] brk(0x815a000)              = 0x815a000
[pid 16314] read(5, "", 4096)           = 0
[pid 16314] close(5)                    = 0
[pid 16314] munmap(0x4011a000, 4096)    = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/Exporter.pm", O_RDONLY)
= -1 ENOENT (No such file or directory)
[pid 16314] open("/usr/lib/perl5/Exporter.pm", O_RDONLY) = 5
[pid 16314] fstat(5, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4011a000
[pid 16314] read(5, "package Exporter;\n\nrequire 5.0"..., 4096) = 4096
[pid 16314] brk(0x815b000)              = 0x815b000
[pid 16314] brk(0x815c000)              = 0x815c000
[pid 16314] brk(0x815d000)              = 0x815d000
[pid 16314] brk(0x815e000)              = 0x815e000
[pid 16314] brk(0x815f000)              = 0x815f000
[pid 16314] brk(0x8160000)              = 0x8160000
[pid 16314] brk(0x8161000)              = 0x8161000
[pid 16314] brk(0x8162000)              = 0x8162000
[pid 16314] brk(0x8163000)              = 0x8163000
[pid 16314] brk(0x8164000)              = 0x8164000
[pid 16314] brk(0x8165000)              = 0x8165000
[pid 16314] brk(0x8166000)              = 0x8166000
[pid 16314] brk(0x8167000)              = 0x8167000
[pid 16314] read(5, "\n\t    unless $sym =~ s/^(\\W)/"..., 4096) = 4096
[pid 16314] brk(0x8168000)              = 0x8168000
[pid 16314] brk(0x8169000)              = 0x8169000
[pid 16314] brk(0x816a000)              = 0x816a000
[pid 16314] brk(0x816b000)              = 0x816b000
[pid 16314] brk(0x816c000)              = 0x816c000
[pid 16314] brk(0x816d000)              = 0x816d000
[pid 16314] brk(0x816e000)              = 0x816e000
[pid 16314] close(5)                    = 0
[pid 16314] munmap(0x4011a000, 4096)    = 0
[pid 16314] brk(0x816f000)              = 0x816f000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] brk(0x8170000)              = 0x8170000
[pid 16314] brk(0x8171000)              = 0x8171000
[pid 16314] brk(0x8172000)              = 0x8172000
[pid 16314] brk(0x8173000)              = 0x8173000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/overload.pm", O_RDONLY)
= 5
[pid 16314] brk(0x8174000)              = 0x8174000
[pid 16314] fstat(5, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4011a000
[pid 16314] read(5, "package overload;\n\nsub nil {}\n"..., 4096) = 4096
[pid 16314] brk(0x8175000)              = 0x8175000
[pid 16314] brk(0x8176000)              = 0x8176000
[pid 16314] brk(0x8177000)              = 0x8177000
[pid 16314] brk(0x8178000)              = 0x8178000
[pid 16314] brk(0x8179000)              = 0x8179000
[pid 16314] brk(0x817a000)              = 0x817a000
[pid 16314] brk(0x817b000)              = 0x817b000
[pid 16314] brk(0x817c000)              = 0x817c000
[pid 16314] close(5)                    = 0
[pid 16314] munmap(0x4011a000, 4096)    = 0
[pid 16314] brk(0x817d000)              = 0x817d000
[pid 16314] brk(0x817e000)              = 0x817e000
[pid 16314] brk(0x817f000)              = 0x817f000
[pid 16314] brk(0x8180000)              = 0x8180000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] brk(0x8181000)              = 0x8181000
[pid 16314] brk(0x8182000)              = 0x8182000
[pid 16314] brk(0x8183000)              = 0x8183000
[pid 16314] brk(0x8184000)              = 0x8184000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] brk(0x8185000)              = 0x8185000
[pid 16314] brk(0x8186000)              = 0x8186000
[pid 16314] brk(0x8187000)              = 0x8187000
[pid 16314] read(4, "@_;\n\n    $left->calc($right, \'"..., 4096) = 4096
[pid 16314] brk(0x8188000)              = 0x8188000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/AutoLoader.pm",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 16314] open("/usr/lib/perl5/AutoLoader.pm", O_RDONLY) = 5
[pid 16314] fstat(5, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4011a000
[pid 16314] read(5, "package AutoLoader;\n\nuse vars "..., 4096) = 4096
[pid 16314] brk(0x8189000)              = 0x8189000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/vars.pm", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 16314] open("/usr/lib/perl5/vars.pm", O_RDONLY) = 6
[pid 16314] fstat(6, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4011b000
[pid 16314] read(6, "package vars;\n\nrequire 5.002;\n"..., 4096) = 2057
[pid 16314] brk(0x818a000)              = 0x818a000
[pid 16314] brk(0x818b000)              = 0x818b000
[pid 16314] brk(0x818c000)              = 0x818c000
[pid 16314] close(6)                    = 0
[pid 16314] munmap(0x4011b000, 4096)    = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] brk(0x818d000)              = 0x818d000
[pid 16314] brk(0x818e000)              = 0x818e000
[pid 16314] brk(0x818f000)              = 0x818f000
[pid 16314] brk(0x8190000)              = 0x8190000
[pid 16314] close(5)                    = 0
[pid 16314] munmap(0x4011a000, 4096)    = 0
[pid 16314] open("/usr/lib/perl5/site_perl/auto/Sybase/CTlib/autosplit.ix",
O_RDONLY) = 5
[pid 16314] fstat(5, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4011a000
[pid 16314] read(5, "# Index created by AutoSplit for"..., 4096) = 114
[pid 16314] brk(0x8191000)              = 0x8191000
[pid 16314] read(5, "", 4096)           = 0
[pid 16314] close(5)                    = 0
[pid 16314] munmap(0x4011a000, 4096)    = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/subs.pm", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 16314] open("/usr/lib/perl5/subs.pm", O_RDONLY) = 5
[pid 16314] fstat(5, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4011a000
[pid 16314] read(5, "package subs;\n\n=head1 NAME\n\n"..., 4096) = 815
[pid 16314] brk(0x8192000)              = 0x8192000
[pid 16314] read(5, "", 4096)           = 0
[pid 16314] close(5)                    = 0
[pid 16314] munmap(0x4011a000, 4096)    = 0
[pid 16314] brk(0x8193000)              = 0x8193000
[pid 16314] brk(0x8194000)              = 0x8194000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] brk(0x8195000)              = 0x8195000
[pid 16314] read(4, "CS_EXPOSE_FMTS\n\tCS_EXPRESSION\n"..., 4096) = 4096
[pid 16314] brk(0x8197000)              = 0x8197000
[pid 16314] read(4, "_TRAN_FAIL\n\tCS_TRAN_IN_PROGRES"..., 4096) = 3240
[pid 16314] brk(0x8198000)              = 0x8198000
[pid 16314] brk(0x8199000)              = 0x8199000
[pid 16314] brk(0x819a000)              = 0x819a000
[pid 16314] brk(0x819b000)              = 0x819b000
[pid 16314] brk(0x819c000)              = 0x819c000
[pid 16314] read(4, "", 4096)           = 0
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40119000, 4096)    = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/Time/Local.pm",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 16314] open("/usr/lib/perl5/Time/Local.pm", O_RDONLY) = 4
[pid 16314] brk(0x819d000)              = 0x819d000
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40119000
[pid 16314] read(4, "package Time::Local;\nrequire 5."..., 4096) = 4096
[pid 16314] brk(0x819e000)              = 0x819e000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] brk(0x819f000)              = 0x819f000
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] open("/etc/localtime", O_RDONLY) = 5
[pid 16314] fstat(5, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4011a000
[pid 16314] read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 1262
[pid 16314] close(5)                    = 0
[pid 16314] munmap(0x4011a000, 4096)    = 0
[pid 16314] brk(0x81a0000)              = 0x81a0000
[pid 16314] brk(0x81a1000)              = 0x81a1000
[pid 16314] brk(0x81a2000)              = 0x81a2000
[pid 16314] brk(0x81a3000)              = 0x81a3000
[pid 16314] brk(0x81a4000)              = 0x81a4000
[pid 16314] brk(0x81a5000)              = 0x81a5000
[pid 16314] brk(0x81a6000)              = 0x81a6000
[pid 16314] brk(0x81a7000)              = 0x81a7000
[pid 16314] brk(0x81a8000)              = 0x81a8000
[pid 16314] read(4, "$HR + $g[3] * $DAY;\n    $cheat{"..., 4096) = 52
[pid 16314] read(4, "", 4096)           = 0
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40119000, 4096)    = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/DynaLoader.pm",
O_RDONLY) = 4
[pid 16314] brk(0x81aa000)              = 0x81aa000
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40119000
[pid 16314] read(4, "package DynaLoader;\n\n#   And G"..., 4096) = 4096
[pid 16314] brk(0x81ab000)              = 0x81ab000
[pid 16314] brk(0x81ac000)              = 0x81ac000
[pid 16314] brk(0x81ad000)              = 0x81ad000
[pid 16314] brk(0x81ae000)              = 0x81ae000
[pid 16314] brk(0x81af000)              = 0x81af000
[pid 16314] read(4, "rns appropriate file base name ("..., 4096) = 4096
[pid 16314] brk(0x81b0000)              = 0x81b0000
[pid 16314] brk(0x81b1000)              = 0x81b1000
[pid 16314] brk(0x81b2000)              = 0x81b2000
[pid 16314] brk(0x81b3000)              = 0x81b3000
[pid 16314] brk(0x81b4000)              = 0x81b4000
[pid 16314] brk(0x81b5000)              = 0x81b5000
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40119000, 4096)    = 0
[pid 16314] open("/usr/lib/perl5/i386-linux/5.00404/Config.pm", O_RDONLY) =
4
[pid 16314] brk(0x81b6000)              = 0x81b6000
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40119000
[pid 16314] read(4, "package Config;\nuse Exporter ()"..., 4096) = 4096
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] sigprocmask(SIG_BLOCK, NULL, []) = 0
[pid 16314] brk(0x81b7000)              = 0x81b7000
[pid 16314] read(4, "fine\'\nd_mktime=\'define\'\nd_m"..., 4096) = 4096
[pid 16314] brk(0x81b8000)              = 0x81b8000
[pid 16314] read(4, "alloc dl dld ld sun m c cposix p"..., 4096) = 4096
[pid 16314] brk(0x81ba000)              = 0x81ba000
[pid 16314] brk(0x81bd000)              = 0x81bd000
[pid 16314] read(4, "_sh =~ m/^$_[1]=\'(.*)\'\\s*$/m)"..., 4096) = 4066
[pid 16314] brk(0x81be000)              = 0x81be000
[pid 16314] brk(0x81bf000)              = 0x81bf000
[pid 16314] brk(0x81c0000)              = 0x81c0000
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40119000, 4096)    = 0
[pid 16314] brk(0x81c3000)              = 0x81c3000
[pid 16314] brk(0x81c4000)              = 0x81c4000
[pid 16314] brk(0x81c6000)              = 0x81c6000
[pid 16314] brk(0x81c7000)              = 0x81c7000
[pid 16314] brk(0x81c8000)              = 0x81c8000
[pid 16314] brk(0x81c9000)              = 0x81c9000
[pid 16314] open("/etc/nsswitch.conf", O_RDONLY) = 4
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40119000
[pid 16314] read(4, "#\n# /etc/nsswitch.conf\n#\n# An"..., 4096) = 1208
[pid 16314] brk(0x81ca000)              = 0x81ca000
[pid 16314] read(4, "", 4096)           = 0
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40119000, 4096)    = 0
[pid 16314] open("/lib/libnss_files.so.1", O_RDONLY) = 4
[pid 16314] mmap(0, 4096, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40119000
[pid 16314] munmap(0x40119000, 4096)    = 0
[pid 16314] mmap(0, 31936, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) =
0x40119000
[pid 16314] mprotect(0x40120000, 3264, PROT_NONE) = 0
[pid 16314] mmap(0x40120000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 4, 0x6000) = 0x40120000
[pid 16314] close(4)                    = 0
[pid 16314] open("/etc/passwd", O_RDONLY) = 4
[pid 16314] fcntl(4, F_GETFD)           = 0
[pid 16314] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40121000
[pid 16314] read(4, "root:X3dX6soiOv5KA:0:0:root:/roo"..., 4096) = 838
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40121000, 4096)    = 0
[pid 16314] open("/usr/local/sybase/locales/locales.dat", O_RDONLY) = 4
[pid 16314] read(4, "; comment character is a semicol"..., 512) = 512
[pid 16314] read(4, "civilian agency contracts and DF"..., 512) = 512
[pid 16314] read(4, "e\" entry is used for sybase int"..., 512) = 512
[pid 16314] read(4, "aracter set\n;\t\tname for deter"..., 512) = 512
[pid 16314] read(4, "t, us_english, iso_1\n\n[dec ult"..., 512) = 512
[pid 16314] read(4, "iso_1\n\tlocale = C, us_english,"..., 512) = 512
[pid 16314] read(4, "ch, iso_1\n\tlocale = german.iso"..., 512) = 512
[pid 16314] close(4)                    = 0
[pid 16314] open("/etc/passwd", O_RDONLY) = 4
[pid 16314] fcntl(4, F_GETFD)           = 0
[pid 16314] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40121000
[pid 16314] read(4, "root:X3dX6soiOv5KA:0:0:root:/roo"..., 4096) = 838
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40121000, 4096)    = 0
[pid 16314] open("/usr/local/sybase/charsets/iso_1/binary.srt", O_RDONLY) =
4
[pid 16314] read(4, "; semi-colon is the comment char"..., 512) = 512
[pid 16314] read(4, "set (iso_1).\"\ncharset = iso_1\n"..., 512) = 124
[pid 16314] read(4, "", 512)            = 0
[pid 16314] open("/etc/passwd", O_RDONLY) = 5
[pid 16314] fcntl(5, F_GETFD)           = 0
[pid 16314] fcntl(5, F_SETFD, FD_CLOEXEC) = 0
[pid 16314] fstat(5, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40121000
[pid 16314] read(5, "root:X3dX6soiOv5KA:0:0:root:/roo"..., 4096) = 838
[pid 16314] close(5)                    = 0
[pid 16314] munmap(0x40121000, 4096)    = 0
[pid 16314] open("/usr/local/sybase/charsets/iso_1/charset.loc", O_RDONLY) =
5
[pid 16314] read(5, ";\t\t charset.loc\n;\n; Comment "..., 512) = 512
[pid 16314] read(5, "arset.loc file under it\'s own d"..., 512) = 512
[pid 16314] read(5, " rights under the copyright laws"..., 512) = 512
[pid 16314] brk(0x81cb000)              = 0x81cb000
[pid 16314] read(5, " =101008001111080012120800131308"..., 512) = 512
[pid 16314] read(5, "6501114666011147670101\n\tdefini"..., 512) = 512
[pid 16314] read(5, "597901025a7a01027b7b20207c7c2020"..., 512) = 512
[pid 16314] read(5, "0120afaf0120\n\tdefinition =b0b0"..., 512) = 512
[pid 16314] read(5, "e20102c3e30102c4e40102c5e50102c6"..., 512) = 512
[pid 16314] read(5, "00000000000000000000000003031323"..., 512) = 512
[pid 16314] read(5, "00\n", 512)        = 3
[pid 16314] close(5)                    = 0
[pid 16314] close(4)                    = 0
[pid 16314] open("/etc/passwd", O_RDONLY) = 4
[pid 16314] fcntl(4, F_GETFD)           = 0
[pid 16314] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40121000
[pid 16314] read(4, "root:X3dX6soiOv5KA:0:0:root:/roo"..., 4096) = 838
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40121000, 4096)    = 0
[pid 16314] open("/usr/local/sybase/locales/us_english/iso_1/common.loc",
O_RDONLY) = 4
[pid 16314] read(4, "; comment character is a semicol"..., 512) = 512
[pid 16314] read(4, "embers of a list. \n\tescape=\\\t"..., 512) = 512
[pid 16314] read(4, "s.\\\n\tSybase, Inc. 6475 Christ"..., 512) = 512
[pid 16314] read(4, "of a US week. \n\n\t; The date f"..., 512) = 512
[pid 16314] close(4)                    = 0
[pid 16314] open("/etc/passwd", O_RDONLY) = 4
[pid 16314] fcntl(4, F_GETFD)           = 0
[pid 16314] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40121000
[pid 16314] read(4, "root:X3dX6soiOv5KA:0:0:root:/roo"..., 4096) = 838
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40121000, 4096)    = 0
[pid 16314] open("/usr/local/sybase/locales/us_english/iso_1/cslib.loc",
O_RDONLY) = 4
[pid 16314] read(4, "; comment character is semicolon"..., 512) = 512
[pid 16314] read(4, ". 6475 Christie Avenue, Emeryvil"..., 512) = 512
[pid 16314] read(4, ";\n\n[cslayer]\n\n2 = ZZZZZ, \"c"..., 512) = 512
[pid 16314] read(4, ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"..., 512) = 512
[pid 16314] read(4, "\"\n\n9 = 22023, \"The property "..., 512) = 512
[pid 16314] read(4, "e format field of a CS_DATAFMT s"..., 512) = 512
[pid 16314] read(4, "\n\n24 = ZZZZZ, \"The conversion"..., 512) = 512
[pid 16314] read(4, "T operation before any  other cs"..., 512) = 512
[pid 16314] read(4, "rsion/operation stopped due to a"..., 512) = 512
[pid 16314] read(4, "mat string.\"\n\n42 = 22023, \"T"..., 512) = 512
[pid 16314] read(4, "n use.\"\n \n49 = 34000, \"%1! I"..., 512) = 224
[pid 16314] read(4, "", 512)            = 0
[pid 16314] close(4)                    = 0
[pid 16314] open("/etc/passwd", O_RDONLY) = 4
[pid 16314] fcntl(4, F_GETFD)           = 0
[pid 16314] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40121000
[pid 16314] read(4, "root:X3dX6soiOv5KA:0:0:root:/roo"..., 4096) = 838
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40121000, 4096)    = 0
[pid 16314] open("/usr/local/sybase/locales/us_english/iso_1/ctlib.loc",
O_RDONLY) = 4
[pid 16314] read(4, "; comment character is semicolon"..., 512) = 512
[pid 16314] read(4, "e, Inc. 6475 Christie Avenue, Em"..., 512) = 512
[pid 16314] read(4, ";;;;;;;;;;;;;;;;;;\n;\n; The Cli"..., 512) = 512
[pid 16314] read(4, "xternal error\"\n\n2 = ZZZZZ, \""..., 512) = 512
[pid 16314] read(4, "ZZZZZ, \"The information being r"..., 512) = 512
[pid 16314] read(4, "eter must be set to CS_UNUSED.\""..., 512) = 512
[pid 16314] read(4, "et.\"\n\n\n15 = ZZZZZ,\t\"It is "..., 512) = 512
[pid 16314] read(4, "and must be initialized before t"..., 512) = 512
[pid 16314] read(4, "Z,\t\"A command has already been"..., 512) = 512
[pid 16314] read(4, "nnection\'s capabilities do not "..., 512) = 512
[pid 16314] read(4, "outine cannot be called after ct"..., 512) = 512
[pid 16314] read(4, " = ZZZZZ,\t\"This routine cannot"..., 512) = 512
[pid 16314] read(4, " names must be supplied for eith"..., 512) = 512
[pid 16314] read(4, "ZZ,\t\"There was not enough memo"..., 512) = 512
[pid 16314] read(4, " type %2!.\"\n\n\n58 = 22023,\t\""..., 512) = 512
[pid 16314] read(4, "y debug files is not yet support"..., 512) = 512
[pid 16314] read(4, "ptor count of %1! is not possibl"..., 512) = 512
[pid 16314] read(4, "\"\n\n76 = 07001,\t\"Inconsisten"..., 512) = 512
[pid 16314] read(4, "\n81 = ZZZZZ, \"The bind of resu"..., 512) = 512
[pid 16314] read(4, " not within the domain of legal "..., 512) = 512
[pid 16314] read(4, "e bind was missing for column %1"..., 512) = 512
[pid 16314] read(4, "an only be retrieved for text or"..., 512) = 512
[pid 16314] read(4, "called only if the CS_HIDDEN_KEY"..., 512) = 512
[pid 16314] read(4, "d failure while setting key data"..., 512) = 512
[pid 16314] read(4, " ZZZZZ, \"The server name/passwo"..., 512) = 512
[pid 16314] read(4, "ciated with descriptor item %1!."..., 512) = 512
[pid 16314] read(4, "ZZ, \"This routine cannot be cal"..., 512) = 512
[pid 16314] read(4, " %1! resulted in truncation.\"\n"..., 512) = 512
[pid 16314] read(4, "2! data.\"\n\n139 = ZZZZZ, \"Set"..., 512) = 512
[pid 16314] read(4, "er of currently existing connect"..., 512) = 512
[pid 16314] read(4, "49 = ZZZZZ, \"The current row\'s"..., 512) = 512
[pid 16314] read(4, "n.\"\n\n153 = ZZZZZ, \"This rout"..., 512) = 512
[pid 16314] read(4, " to the server.\"\n\n158 = ZZZZZ"..., 512) = 512
[pid 16314] read(4, ".\"\n\n163 = 21000, \"This routi"..., 512) = 512
[pid 16314] read(4, " ZZZZZ, \"This routine cannot be"..., 512) = 512
[pid 16314] read(4, "e is in the middle of a send dat"..., 512) = 512
[pid 16314] read(4, "he maxium length allowed.\"\n\n1"..., 512) = 512
[pid 16314] read(4, "returned from the server while s"..., 512) = 512
[pid 16314] read(4, "rror. Premature end of the datas"..., 512) = 512
[pid 16314] read(4, "rator was seen while processing "..., 512) = 512
[pid 16314] read(4, "e status was received.\" \n\n13 "..., 512) = 512
[pid 16314] read(4, "r status was received.\" \n\n19 "..., 512) = 512
[pid 16314] read(4, "error. An invalid dynamic id was"..., 512) = 512
[pid 16314] read(4, " An invalid option type was rece"..., 512) = 512
[pid 16314] read(4, "There is a tds state machine err"..., 512) = 512
[pid 16314] read(4, "re is a tds protocol error. An i"..., 512) = 512
[pid 16314] read(4, "andler was installed.\"\n\n47 = "..., 512) = 512
[pid 16314] read(4, "ng an internal tds stream.\"\n\n"..., 512) = 512
[pid 16314] read(4, "ZZZZZ, \"There was an error enco"..., 512) = 512
[pid 16314] read(4, "ctionary.\"\n\n9 = ZZZZZ, \"Ther"..., 512) = 512
[pid 16314] read(4, "hile there remains unprocessed d"..., 512) = 512
[pid 16314] read(4, "ZZZZ, \"There was an error encou"..., 512) = 512
[pid 16314] read(4, "rror encountered while chaining "..., 512) = 58
[pid 16314] read(4, "", 512)            = 0
[pid 16314] close(4)                    = 0
[pid 16314] open("/etc/passwd", O_RDONLY) = 4
[pid 16314] fcntl(4, F_GETFD)           = 0
[pid 16314] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40121000
[pid 16314] read(4, "root:X3dX6soiOv5KA:0:0:root:/roo"..., 4096) = 838
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40121000, 4096)    = 0
[pid 16314] open("/usr/local/sybase/locales/us_english/iso_1/tcllib.loc",
O_RDONLY) = 4
[pid 16314] read(4, "; comment character is a semicol"..., 512) = 512
[pid 16314] read(4, "ckslash is the escape symbol.\n["..., 512) = 512
[pid 16314] close(4)                    = 0
[pid 16314] open("/etc/passwd", O_RDONLY) = 4
[pid 16314] fcntl(4, F_GETFD)           = 0
[pid 16314] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
[pid 16314] fstat(4, {st_mode=0, st_size=0, ...}) = 0
[pid 16314] mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40121000
[pid 16314] read(4, "root:X3dX6soiOv5KA:0:0:root:/roo"..., 4096) = 838
[pid 16314] close(4)                    = 0
[pid 16314] munmap(0x40121000, 4096)    = 0
[pid 16314] open("/usr/local/sybase/install/sybnet.cfg", O_RDONLY) = 4
[pid 16314] read(4, "", 512)            = 0
[pid 16314] close(4)                    = 0
[pid 16314] brk(0x81cc000)              = 0x81cc000
[pid 16314] brk(0x81cd000)              = 0x81cd000
[pid 16314] brk(0x81ce000)              = 0x81ce000
[pid 16314] brk(0x81cf000)              = 0x81cf000
[pid 16314] brk(0x81d0000)              = 0x81d0000
[pid 16314] brk(0x