[LTP] [PATCH] lib/tst_test.c: fix Segmentation fault in tst_vbrk_

Jan Stancek jstancek@redhat.com
Thu Jun 16 10:49:09 CEST 2016





----- Original Message -----
> From: "Xiao Yang" <yangx.jy@cn.fujitsu.com>
> To: ltp@lists.linux.it
> Sent: Thursday, 16 June, 2016 9:52:04 AM
> Subject: [LTP] [PATCH] lib/tst_test.c: fix Segmentation fault in tst_vbrk_
> 
> We can't allocate resources to results pointer before checking
> kernel version, so do_exit() will fail if we print results pointer.
> 
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>

Thanks, I pushed a patch that fixes do_exit() instead. So we
preserve do_exit as a single place for library process to exit.

Regards,
Jan



More information about the ltp mailing list