I can put it here, but you will not read it, for sure: that is a program with more then 3200 lines of code that use couple system utilities (as a dynamic library) and my 'debugging' tools, that makes some primitive statements extended to kilobytes by preprocessor.
Also, the code is running the perl-script to indexing a huge data file and works with that produced index-files and data-extraction file.
Do you think it is any way to present it here and expect anybody would get understanding of that processing, even spend up to one hour? (sure it is over any logical limit)
And I am not able to separate any particular part of program do display it here as, on first, I have no idea where the problem exist and, on second, the complicity of processing makes it very unlikely possible.
---------- Post updated at 10:53 AM ---------- Previous update was at 10:17 AM ----------
Quote:
Originally Posted by Corona688
You may have to trace it in a debugger with memory watch and see when it changes. Or an analyzer like valgrind.
Regarding the 'trace' - I am using 'dbx' (I believe we do not have here other debuger (we are on SUN Solaris (studio is not available)))
I did try to set the 'check', 'change' and 'cond', but not able to get it work:
I am not sure if I use it incorrect or it does not works in our system (other developers or did not try that or was not able to get it work here.)
About the MT - from my side the program is not multy-threaded, but maybe something done by library?!
Getting the 'threads' by 'dbx' it shows only one thread. I do not understand why 'dbx' complains like that!
But I was able to set 'check -all'.
It is pointed me on some places with warnings, but it is not obvious and the processing comes through those places without any problem and, finally stops on Segmentation signal.
I did not try to use 'trace', but now, on short try it shows the same:
The 'valgrind' is a new word for me!
I appreciate you mentioned it. I will check it!
But, it is not available on our system, and, as you can guess, I have no way to install it here, unfortunately
Hi. I'm trying to learn sed. I want to limit the length of a string. I tried this:
sed -n 's/^\(...........................\).*/\1/p' textfile.txt This works fine, but how do I give it as a range rather than putting a hundred dots?
I'd like to limit the number of characters to 144 for... (3 Replies)
Hi,
I have a issue, I need to loop through a comma delimited file and check for the length which exceeds specified length , if Yes truncate the string.
But my problem is , I do not have to check for all the fields and the field lenght is not same for all the fields.
For ex:
Say my line... (9 Replies)
Hey guys, can help me out with this?
How do i limit output for xml to 50 character?
i tried *below* but doesnt work, it still print more than 50 characters.
Thanks in advance
printf "%-50s", "$testline\n"; (4 Replies)
Hi Everyone,
# cat a.txt
a;b;c;64O
a;b;c;d;ee;f
# cat a.pl
#!/usr/bin/perl
use strict;
use warnings;
my $tmp3 = ",,a,,b,,c,,d,,e,,f,,";
open(my $FA, "a.txt") or die "$!";
while(<$FA>) {
chomp;
my @tmp=split(/\;/, $_);
if ( ($tmp =~ m/^(64O)/i) || ($tmp... (3 Replies)
I am trying to use the following code:
awk '{s=$0;if(length(s) < 750){getline; s=s " " $0}printf("%s\n",s)}' filename
but an error shows that 'awk' is too long. Is there a limit to the awk length function? and what could be an alternate solution for long fixed width records?
The code... (3 Replies)
Hello,
I am currently trying to limit incoming UDP length 20 packets on a per IP basis to 5 a second using IPTables on a Linux machine (CentOS 5.2).
Basically, if an IP is sending more than 5 length 20 UDP packet a second to the local machine, I would like the machine to drop the excess... (1 Reply)
Hi!
Can you please help me with one question?
Does rexec command have some limitation of the length of the deliveded cmd?
Thanks in advance,
Anta (2 Replies)
Hi,
I'm using AIX version 5.3 currently. I'm trying to create a user id, e.g. andyleong, which the system prompted the length is too long.
1. I would like to know is that the length of user id is limited to maximum 8 characters for AIX.
2. Is it apply to all versions of AIX?
If no... (2 Replies)
Hi Friends,
I am having a funny problem with grep. When I run
grep 'expr' file.txt
things work fine. But when try to get the line number using the -n option, i.e,
grep -n 'expr' file.txt
I get a message, "grep: 0652-226 Maximum line length of 2048 exceeded."
If the line has more than... (3 Replies)