|
From: Lauren A <mus...@ya...> - 2004-01-13 20:48:21
|
Hi. I'm having a strange problem, and I was wondering if you had any ideas about it. My program, written in OCaml and C, has a seg fault in it. But when I run the program under Valgrind, there's no seg fault. Any ideas on why that would happen? Thanks very much, Lauren __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: David E. <tw...@us...> - 2004-01-14 05:22:44
|
On Tue, 2004-01-13 at 21:48, Lauren A wrote:
> Hi. I'm having a strange problem, and I was wondering
> if you had any ideas about it. My program, written in
> OCaml and C, has a seg fault in it. But when I run the
> program under Valgrind, there's no seg fault. Any
> ideas on why that would happen?
Is your program threaded with pthreads? Could be a race condition in
that case.
--
Regards,
-\- David Eriksson -/-
SynCE - http://synce.sourceforge.net
CalcEm - http://calcem.sourceforge.net
Desquirr - http://desquirr.sourceforge.net
SetiWrapper - http://setiwrapper.sourceforge.net
|
|
From: Lauren A <mus...@ya...> - 2004-01-14 16:20:20
|
Nope, it's sequential. --- David Eriksson <tw...@us...> wrote: > On Tue, 2004-01-13 at 21:48, Lauren A wrote: > > Hi. I'm having a strange problem, and I was > wondering > > if you had any ideas about it. My program, written > in > > OCaml and C, has a seg fault in it. But when I run > the > > program under Valgrind, there's no seg fault. Any > > ideas on why that would happen? > > Is your program threaded with pthreads? Could be a > race condition in > that case. > > -- > Regards, > -\- David Eriksson -/- > > SynCE - http://synce.sourceforge.net > CalcEm - http://calcem.sourceforge.net > Desquirr - http://desquirr.sourceforge.net > SetiWrapper - http://setiwrapper.sourceforge.net > __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |
|
From: Nicholas N. <nj...@ca...> - 2004-01-18 17:56:02
|
On Tue, 13 Jan 2004, Lauren A wrote: > Hi. I'm having a strange problem, and I was wondering > if you had any ideas about it. My program, written in > OCaml and C, has a seg fault in it. But when I run the > program under Valgrind, there's no seg fault. Any > ideas on why that would happen? Programs run under Valgrind have their memory laid out in somewhat different ways to normal running, this can hide/unhide seg faults. If everything is working properly, Valgrind should give some kind of error message just before the seg fault happens. If this isn't the case, do you know what could be causing the error? N |