Re: Fork Problem
- From: Ronald Bultje <rbultje ronald bitfreak net>
- To: francex tiscali it
- Cc: gtk-list gnome org
- Subject: Re: Fork Problem
- Date: 03 Apr 2003 14:19:13 +0200
Hey,
On Thu, 2003-04-03 at 14:06, francex tiscali it wrote:
> gchar **options;
>
> options [0] = "/usr/bin/gcc";
> options [1] = "-v";
> options [2] = NULL;
You're expecting this to work? ;-).
gchar *options[3];
options[0] = "/usr/bin/gcc";
options[1] = "-v";
options[2] = NULL;
You're accessing a pointer as if it were allocated, but it isn't.
> When I launch it, program crash with a "seg fault". This is strace output:
Try to use a debugger such as gdb.
Ronald
--
Ronald Bultje <rbultje ronald bitfreak net>
Linux Video/Multimedia developer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]