[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: An Obscure Bug
- To: Shlomi Fish <shlomif(at-nospam)techst02.technion.ac.il>
- Subject: Re: An Obscure Bug
- From: mulix <mulix(at-nospam)actcom.co.il>
- Date: Tue, 4 Dec 2001 23:09:13 +0200 (IST)
- Cc: <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <Pine.GSO.4.33.0112041734350.25960-100000@techst02.technion.ac.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Tue, 4 Dec 2001, Shlomi Fish wrote:
> I discovered an obscure bug which I am able to reproduce only under very
> rare circumctances. Here are the instructions for re-producing it:
>
> Download
> http://vipe.technion.ac.il/~shlomif/obscure-bug.tar.gz
>
> Unpack and type make. Then type "source test.sh" at the command line and
> press enter. Voila - a segfault.
>
> Now, "./test.sh" doesn't cause it.
this is imperative - 'source test.sh' causes it, but './test.sh'
doesn't?
> The program in question was written by
> me (it's version 1.11.24 of Freecell Solver), and is compiled with the
> "-O3" flag by gcc. If it's compiled with "-O2" it doesn't segfault.
> Nor does it when compiled with kgcc. Moreover, after I made a very small
> change in the program, it did not segfault either. Finally, running it
> under gdb cause it not to crash either.
>
> I'm using Mandrake 8.1 with KDE 2.2.1 and all of the up-to-current
> updates. My kernel is 2.4.13-12mdk from cooker.
which gcc?
it ran fine with gcc2.91.66, gcc2.95.2 and gcc3.0 (using 'source
test.sh'). .
--
mulix
http://www.pointer.co.il/~mulix/
http://syscalltrack.sf.net/
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il