Package: dietlibc-dev
Version: 0.31-1.2
Severity: normal

This is a reduced testcase from the mksh source code.
Public domain, as it’s not complex enough for copyright protection…

The system I took the below snippet on is maintained by waldi,
but the s390 buildd has the same problem.


t...@debian04v2:~$ cat testcase.c
#define _BSD_SOURCE
#include <sys/param.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/sysmacros.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <limits.h>
#include <paths.h>
#include <pwd.h>
#include <setjmp.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <termios.h>
#include <time.h>
#include <ulimit.h>
#include <unistd.h>
#include <values.h>

sigjmp_buf jbuf;

int
main(void)
{
        int i;

        i = sigsetjmp(jbuf, 0);
        printf("i = %d\n", i);
        if (!i)
                siglongjmp(jbuf, 42);
        return (0);
}
t...@debian04v2:~$ gcc -Os testcase.c && ./a.out
i = 0
i = 42
t...@debian04v2:~$ diet -Os gcc testcase.c && ./a.out
/usr/lib/diet/lib-s390/libc.a(vprintf.o): In function printf':
vprintf.c:(.text+0x28): warning: warning: the printf functions add several 
kilobytes of bloat.
Segmentation fault
t...@debian04v2:~$ diet gcc testcase.c && ./a.out
/usr/lib/diet/lib-s390/libc.a(vprintf.o): In function printf':
vprintf.c:(.text+0x28): warning: warning: the printf functions add several 
kilobytes of bloat.
Segmentation fault
t...@debian04v2:~$ uname -a
Linux debian04v2.zseries.org 2.6.26-1-vserver-s390x #1 SMP Sat Jan 10 18:29:28 
UTC 2009 s390x GNU/Linux



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to