1836617 Members
2603 Online
110102 Solutions
New Discussion

use of more or tail

 
MarkW_1
Regular Advisor

use of more or tail

I have a programmer who gets the following error when using tail or more on a large file(11 mb).
Pid 20993 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.
Memory fault(coredump)

any suggestions.
7 REPLIES 7
Santosh Nair_1
Honored Contributor

Re: use of more or tail

Check out this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x2d97ee3e323bd5118fef0090279cd0f9,00.html

-Santosh
Life is what's happening while you're busy making other plans
Wodisch
Honored Contributor

Re: use of more or tail

Hello Mark,

increase your kernel parameter MAXSSIZ (but not
above 80MB if your on 32bits) or tell them to
use "less".

HTH,
Wodisch
Sanjay_6
Honored Contributor

Re: use of more or tail

Hi Mark,

Take a look at the thread below,

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xaee3f9beca68d511abcd0090277a778c,00.html

Hope this helps.

thanks
Sridhar Bhaskarla
Honored Contributor

Re: use of more or tail

Segment Violation Errors SIGSEGV is commonly due to insufficient stack. Incrasing maxssiz kernel parameter should help you.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jayaprakash_1
Advisor

Re: use of more or tail

increase the maxssiz,maxtsiz for text size and maxdsiz for dynamic memory allocation.hope this helps
jp
Carlos Fernandez Riera
Honored Contributor

Re: use of more or tail

Tail cant show more than 2K bytes from end of file.
So tail -30000 file will show only last 2K not 30000 lines.

A workaround to your problem:

dd if=file bs=1024k skip=10 | tail

This command will skip first 10Mb, read up to end of file and pipe it to tail.
unsupported
Steve Post
Trusted Contributor

Re: use of more or tail

From all of the responses you can see your file is too big for tail to work. It bombs as you pipe it from one command to another. So (if you can) bust it up into little pieces. Check out the split command. Or try to find a command that will process it a little bit at a time. (Someone mentioned the dd command here. That will work).