[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[pkg-wine-party] Bug#518932: wine: popen() does not seem to work



Package: libwine
Version: 1.0.1-1
Severity: normal
File: /usr/bin/wine

$ cat hello.c
#include <stdio.h>

int main(int argc, char **argv)
{
  printf("Hello world!\n");
  return 0;
}

$ cat popen.c
#include <stdio.h>
#include <assert.h>

int main(int argc, char **argv)
{
  FILE *fp = popen("hello", "r");
  assert(fp != NULL);
  while (!feof(fp))
  {
    char buffer[BUFSIZ];
    size_t nbytes = fread(buffer, 1, sizeof buffer, fp);
    assert(!ferror(fp));
    fwrite(buffer, nbytes, 1, stdout);
  }
  return 0;
}

$ i586-mingw32msvc-cc --version | head -n 1
i586-mingw32msvc-cc (GCC) 4.2.1-sjlj (mingw32-2)
$ i586-mingw32msvc-cc hello.c -o hello.exe
$ i586-mingw32msvc-cc popen.c -o popen.exe

$ rm -Rf ~/.wine/*

$ wine hello
Hello world!

$ wine popen
wine: Unhandled page fault on read access to 0x00000000 at address 0x7ec8a98b (thread 0009), starting debugger...


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libwine depends on:
ii  libc6                       2.9-4        GNU C Library: Shared libraries
ii  libfreetype6                2.3.7-2      FreeType 2 font engine, shared lib
ii  libhal1                     0.5.11-8     Hardware Abstraction Layer - share
ii  libice6                     2:1.0.5-1    X11 Inter-Client Exchange library
ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii libpng12-0 1.2.35-1 PNG library - runtime
ii  libsm6                      2:1.1.0-2    X11 Session Management library
ii  libssl0.9.8                 0.9.8g-15    SSL shared libraries
ii  libx11-6                    2:1.1.5-2    X11 client-side library
ii  libxcursor1                 1:1.1.9-1    X cursor management library
ii  libxext6                    2:1.0.4-1    X11 miscellaneous extension librar
ii  libxi6                      2:1.2.0-2    X11 Input extension library
ii  libxinerama1                2:1.0.3-2    X11 Xinerama extension library
ii  libxml2                     2.7.3.dfsg-1 GNOME XML library
ii  libxrandr2                  2:1.2.3-1    X11 RandR extension library
ii  libxrender1                 1:0.9.4-2    X Rendering Extension client libra
ii libxslt1.1 1.1.24-2 XSLT processing library - runtime ii libxxf86vm1 1:1.0.2-1 X11 XFree86 video mode extension l

libwine recommends no packages.

Versions of packages libwine suggests:
pn  wine-doc                      <none>     (no description available)

-- no debconf information

--
Jakub Wilk





Reply to: