Re: [ast-users] segfault in child shell--debugging steps?

2013-01-02 Thread Glenn Fowler

On Thu, 3 Jan 2013 00:25:34 -0500 Aaron Davies wrote:
> i've been seeing a fairly consistent segfault in ksh93u when running as a 
> background child process of another ksh93u instance. i haven't had the time 
> to do a full investigation yet, but it seems to be crashing inside the memory 
> manager.

> i'm planning on running the script in question under valgrind to verify 
> exactly what's going wrong, and then submit the logs here.

> is this a reasonable approach? anything else i should do?

that would be a good approach
if the script is small enough you could post that too

___
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users


Re: [ast-users] including newlines & tabs in extended getopts text?

2013-01-02 Thread Glenn Fowler

happy new year

the ast tw command has an EXAMPLES section you can examine by

tw --usage 2>&1 | fmt -o

try something like

[+EXAMPLES]
{
[+tw?Lists the current directory tree.]
[+tw chmod go-w?Turns off the group and other write permissions
for all files in the current directory tree using a minimal
amount of \bchmod\b(1) command execs.]
[+tw -e \"uid != \'bozo\' || (mode & \'go=w\')\"?Lists all
files in the current directory that don\'t belong to the user
\bbozo\b or have group or other write permission.]
}

On Thu, 3 Jan 2013 00:03:15 -0500 Aaron Davies wrote:
> is there a way to drop down a single line (and add a tab) in a man section 
> defined in an extended getopts text?

> e.g. the traditional way to format an EXAMPLES section seems to be

> command -xyz 1 foo
>   descriptive text

> (with the example itself in bold)

> but i can't figure out how to do that from a [+name?text] group

> e.g. in

> ~ :) % /bin/cat ./foo.ksh
> #!/usr/bin/env ksh 
> while getopts $'[-][+EXAMPLES?\bcommand -xyz 1 foo\b\ndescriptive text]' opt
> do
> :
> done
> ~ :) % ksh --version
>   version sh (AT&T Research) 93u 2011-02-08
> ~ :( % ./foo.ksh --man   
> EXAMPLES  command -xyz 1 foo descriptive text

> SYNOPSIS
>   ./foo.ksh [ options ]
> ~ :( % 

> the newline and the tab disappear

> (when i use --??nroff and generate a typeset manpage, the bold comes out 
> correctly)
> -- 
> Aaron Davies
> aaron.dav...@gmail.com
> ___
> ast-users mailing list
> ast-users@lists.research.att.com
> http://lists.research.att.com/mailman/listinfo/ast-users

___
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users


[ast-users] segfault in child shell--debugging steps?

2013-01-02 Thread Aaron Davies
i've been seeing a fairly consistent segfault in ksh93u when running as a 
background child process of another ksh93u instance. i haven't had the time to 
do a full investigation yet, but it seems to be crashing inside the memory 
manager.

i'm planning on running the script in question under valgrind to verify exactly 
what's going wrong, and then submit the logs here.

is this a reasonable approach? anything else i should do?
-- 
Aaron Davies
aaron.dav...@gmail.com
___
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users


[ast-users] including newlines & tabs in extended getopts text?

2013-01-02 Thread Aaron Davies
is there a way to drop down a single line (and add a tab) in a man section 
defined in an extended getopts text?

e.g. the traditional way to format an EXAMPLES section seems to be

command -xyz 1 foo
descriptive text

(with the example itself in bold)

but i can't figure out how to do that from a [+name?text] group

e.g. in

~ :) % /bin/cat ./foo.ksh
#!/usr/bin/env ksh 
while getopts $'[-][+EXAMPLES?\bcommand -xyz 1 foo\b\ndescriptive text]' opt
do
:
done
~ :) % ksh --version
  version sh (AT&T Research) 93u 2011-02-08
~ :( % ./foo.ksh --man   
EXAMPLES  command -xyz 1 foo descriptive text

SYNOPSIS
  ./foo.ksh [ options ]
~ :( % 

the newline and the tab disappear

(when i use --??nroff and generate a typeset manpage, the bold comes out 
correctly)
-- 
Aaron Davies
aaron.dav...@gmail.com
___
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users