This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: zsh and status access violation


Earnie Boyd wrote:
> You'll have to look at the values of synch[0] and dummy.  My guess is that
> dummy has a 0x0 value which means that your trying to access an invalid memory
> location.  You'll then have to determine why it has the value 0x0 and either
> resolve that or condition the read so that it is called only if dummy has a
> value.

-- sync is two-int array with filedescriptors 
(filled by a pipe statement: "pipe(synch);")
sync[0] = 3
sync[1] = 4


-- dummy is a function-local variable, 
defined as "char dummy;" (one-byte-buffer)

Allocating heap memory instead of using this local-one-byte-buffer
yields the same symptoms.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]