* [LTP] non-ascii output from mtest01?
@ 2017-04-12 20:04 Steve Ellcey
2017-04-13 9:41 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Steve Ellcey @ 2017-04-12 20:04 UTC (permalink / raw)
To: ltp
I was wondering if anyone else has the test mtest01 printing
out non-ascii characters. Attached is the output from my LTP run and I
always have issues with grepping or reading the output in an editor
because of these non-ascii characters.
I looked at testcases/kernel/mem/mtest01/mtest01.c but I didn't see any
obvious source for where this output is coming from.
Steve Ellcey
sellcey@caviumnetworks.com
<<<test_start>>>
tag=mtest01 stime=1490664912
cmdline="mtest01 -p80"
contacts=""
analysis=exit
<<<test_output>>>
`¶^@^@a¶^@^@b¶^@^@c¶^@^@d¶^@^@e¶^@^@f¶^@^@g¶^@^@h¶^@^@i¶^@^@j¶^@^@k¶^@^@l¶^@^@m¶^@^@n¶^@^@o¶^@^@p¶^@^@q¶^@^@r¶^@^@s¶^@^@t¶^@^@u¶^@^@v¶^@^@w¶^@^@x¶^@^@y¶^@^@z¶^@^@{¶^@^@|¶^@^@}¶^@^@~¶^@^@^?¶^@^@<80>¶^@^@<81>¶^@^@<82>¶^@^@<83>¶^@^@<84>¶^@^@<85>¶^@^@<86>¶^@^@<87>¶^@^@<88>¶^@^@<89>¶^@^@<8a>¶^@^@<8b>¶^@^@<8c>¶^@^@<8d>¶^@^@<8e>¶^@^@<8f>¶^@^@<90>¶^@^@<91>¶^@^@<92>¶^@^@<93>¶^@^@<94>¶^@^@<95>¶^@^@<96>¶^@^@<97>¶^@^@<98>¶^@^@<99>¶^@^@<9b>¶^@^@<9d>mtest01 1 TPASS : 212633528 kbytes allocated only.
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=4
<<<test_end>>>
<<<test_start>>>
tag=mtest01w stime=1490664912
cmdline="mtest01 -p80 -w"
contacts=""
analysis=exit
<<<test_output>>>
E·^@^@F·^@^@G·^@^@H·^@^@I·^@^@J·^@^@K·^@^@L·^@^@M·^@^@N·^@^@O·^@^@P·^@^@Q·^@^@R·^@^@S·^@^@T·^@^@U·^@^@V·^@^@W·^@^@X·^@^@Y·^@^@Z·^@^@[·^@^@\·^@^@]·^@^@^·^@^@_·^@^@`·^@^@a·^@^@b·^@^@c·^@^@d·^@^@e·^@^@f·^@^@g·^@^@h·^@^@i·^@^@j·^@^@k·^@^@l·^@^@m·^@^@n·^@^@o·^@^@p·^@^@q·^@^@r·^@^@s·^@^@t·^@^@u·^@^@v·^@^@w·^@^@x·^@^@y·^@^@z·^@^@{·^@^@|·^@^@}·^@^@~·^@^@^?·^@^@<80>mtest01 1 TPASS : 212455996 kbytes allocated and used.
<<<execution_status>>>
initiation_status="ok"
duration=8 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=6
<<<test_end>>>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [LTP] non-ascii output from mtest01?
2017-04-12 20:04 [LTP] non-ascii output from mtest01? Steve Ellcey
@ 2017-04-13 9:41 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2017-04-13 9:41 UTC (permalink / raw)
To: ltp
Hi!
> I was wondering if anyone else has the test mtest01 printing
> out non-ascii characters. Attached is the output from my LTP run and I
> always have issues with grepping or reading the output in an editor
> because of these non-ascii characters.
Looks like I've managed to reproduce the issue with:
./mtest01 -p80 |tee out
> I looked at testcases/kernel/mem/mtest01/mtest01.c but I didn't see any
> obvious source for where this output is coming from.
This is memory corruption since we do not check that max_pids is large
enough in the while loops that store pids into pid_list[i] array and it
seems like we end up writing into the FILE * structure for stdout. It
seems to be gone if I increase the max_pids by a small number.
Has to be fixed anyway, can you prepare a patch or at least open GitHub
issue so that we can track the problem?
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-13 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-12 20:04 [LTP] non-ascii output from mtest01? Steve Ellcey
2017-04-13 9:41 ` Cyril Hrubis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.