On Tue, Jul 09, 2013 at 08:08:22PM +0200, Michael Sperber wrote:
> 
> I noticed that scsh (which only runs in 32-bit mode) fails on amd64.  I
> narrowed it down to a regex malfunction (I think).  This program:
> 
> ----snip----
> #include <regex.h>
> #include <stdio.h>
> 
> int
> main(void)
> {
>   regex_t r;
>   int status = regcomp(&r, "/afs", REG_EXTENDED);
>   size_t nmatch   = 1 + r.re_nsub;
>   regmatch_t pmatch[32];
>   status = regexec(&r, "/afs/informatik", nmatch, pmatch, 0);
>   {
>     int i;
>     for(i = 0; i < nmatch; i--) {
>       printf("%d: %d - %d\n", i, (int) pmatch[i].rm_so, (int) 
> pmatch[i].rm_eo);
>     }
>   }
>   return 0;
> }
> ----snip----
> 
> This giveds me:
> 
> # gcc r.c
> # ./a.out
> 0: 0 - 4
> # gcc -m32 r.c
> # ./a.out
> 0: 0 - 0
> 
> Is it me or is there a bug?  Help would be much appreciated!

-m32 does not work on stable.  You need HEAD.

Attachment: pgpXY0UVVTRqX.pgp
Description: PGP signature

Reply via email to