[Tinymux] Segmentation Faults 2.6
Stephen Dennis
brazilofmux at gmail.com
Tue Aug 15 14:33:45 EDT 2006
Fixed in svdhash.cpp. Local variable was hiding a class member variable.
Thanks for catching that.
The bug was introduced before I started the Firan work.
VS 2003 uses a 'throwing new' for the STL library as the standard template
library relies on throwing behavior. STL probably carries the same
assumptions across every platform, but I don't know for certain. VS 2005
goes further and uses the throwing new for the standard C++ library. TinyMUX
doesn't use STL, but obviously, it uses the standard C++ library. The
pre-built TinyMUX executables use the Intel 9.1 C++ compiler, but at some
point, someone will start using VS 2005 either for 32-bit or 64-bit.
So, I'm forced to change everywhere I use the new operator. Thank you very
much, VS 2005.
Brazil
On 8/15/06, Stephen Dennis <brazilofmux at gmail.com> wrote:
>
> I see it.
>
> I've been working in TinyMUX 2.6 recently to add Firan's mods. In
> re-working some of that code, I probably introduced something in the default
> build. The crash repros easily, so it should be easy to find.
>
> Brazil
>
>
> On 8/15/06, Worldgate <worldgate at amber.org.uk> wrote:
> >
> > At 09:00 AM 8/15/2006, you wrote:
> > >Do you mean 2.6? I assume Unix. What were your configuration
> > >switches? If you changed the switches between builds, did you
> > >remember to 'make clean'? Do the logs contain anything?
> > >
> > >Brazil
> >
> > I did indeed mean 2.6
> >
> > I erased everything in the TinyMUX26 directory and did a clean
> > compile fresh from cvs and it still does the same thing. I checked
> > to make sure i didnt upload as text by accident and re-uploaded the
> > .tgz file to the directory and unpacked it, still same thing. i also
> > tried to use one from a win32 version prior to this one, and the
> > ./Startmux does this.
> >
> > 2006.0815:170851 AnonymousMUX CNF/NFND : include: Config file
> > site.conf not found
> > 2006.0815:170851 AnonymousMUX HLP/RINDX: Can't open text/magic.txt for
> > reading.
> > 2006.0815:170851 AnonymousMUX INI/LOAD : Using game db files:
> > (data/netmux.dir,data/netmux.pag).
> > 2006.0815 :170851 AnonymousMUX INI/LOAD : Loading: data/netmux.db
> >
> > I know there is two files i dont have, thats because i didnt upload
> > them, however it usually keeps going and doesnt explain the seg fault.
> >
> > It also does seg fault when you try and make a flatfile.
> >
> > _______________________________________________
> > Tinymux mailing list
> > Tinymux at tinymux.org
> > http://www.tinymux.org/mailman/listinfo/tinymux
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.tinymux.org/pipermail/tinymux/attachments/20060815/022210f2/attachment-0001.htm
More information about the Tinymux
mailing list