I just did, and I used the following commands. The program is crashing
as soon as I enter run though... could it be because some library is
not properly hooked (see the warning)

Thanks, this really helps.
-Francois

PS: "export LD_LIBRARY_PATH=." is what I use in the makefile so that
the linking works fine with the folders I got.

[EMAIL PROTECTED]:/home/frank/srcds_l# export LD_LIBRARY_PATH=.
[EMAIL PROTECTED]:/home/frank/srcds_l# gdb --directory=/home/frank/srcds_l/
--args /home/frank/srcds_l/troydp/bin/server_i486.so -game troydp
-console +map troy7 -maxplayers 16
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /home/frank/srcds_l/troydp/bin/server_i486.so -game
troydp -console +map troy7 -maxplayers 16
warning: shared library handler failed to enable breakpoint

Program received signal SIGSEGV, Segmentation fault.
0x00000008 in ?? ()
(gdb)

On 5/5/06, Jeff Fearn <[EMAIL PROTECTED]> wrote:
Have you checked out the bottom of this page?

http://www.sourcewiki.org/wiki/index.php/Linux_SDK

On 5/6/06, Kiroke . <[EMAIL PROTECTED]> wrote:
> --
> [ Picked text/plain from multipart/alternative ]
> Thank you ;)
>
> I will try that tonight, but it would surprise me if that was the issue -
> the game runs without any problem for other maps, it just has a problem
with
> that particular entity. It is probably not something you guys can fix
> without having the entire code, but it would help me if you could give me
> any tips on how to debug other than using the -debug flag.
>
> Thanks!
> -Francois
>
> On 5/5/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> >
> > --
> > [ Picked text/plain from multipart/alternative ]
> > mp_templay set to 0 on Linux servers when depending on how your code is
> > setup it needs to be set to 1.
> >
> > Good luck on the mod BTW, just looked at the gameplay videos and it
looks
> > kickass :D
> >
> > On 5/5/06, Kiroke . <[EMAIL PROTECTED]> wrote:
> > >
> > > --
> > > [ Picked text/plain from multipart/alternative ]
> > > What do you mean by "teamplay being enabled"?
> > >
> > > On 5/5/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> > > >
> > > > --
> > > > [ Picked text/plain from multipart/alternative ]
> > > > Just a stab in the dark, my mod relies heavily on teamplay being
> > enabled
> > > > now
> > > > for some reason it was enabled on the windowssrcds but on the linux
> > > server
> > > > it turned itself off, causing anybody to join to crash the server.
> > > >
> > > > That might help, but it might not.
> > > >
> > > > On 5/5/06, Kiroke . <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > --
> > > > > [ Picked text/plain from multipart/alternative ]
> > > > > Hey,
> > > > >
> > > > > I am trying this distribution list, see message below :)
> > > > > -Francois
> > > > >
> > > > > ---------- Forwarded message ----------
> > > > > From: kama <[EMAIL PROTECTED]>
> > > > > Date: May 5, 2006 1:50 AM
> > > > > Subject: Re: [hlds_linux] Source mod server crash
> > > > > To: hlds_linux@list.valvesoftware.com
> > > > >
> > > > >
> > > > > I think you will hit more responses if you subscribes and mail
> > > hlcoders
> > > > > instead.
> > > > >
> > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > > >
> > > > > Most of us here are just 'lame' serveradmins, with no real skill
of
> > > > coding
> > > > > mods.
> > > > >
> > > > > /Bjorn
> > > > >
> > > > > On Thu, 4 May 2006, Kiroke . wrote:
> > > > >
> > > > > > --
> > > > > > [ Picked text/plain from multipart/alternative ]
> > > > > > Hi,
> > > > > >
> > > > > > I am trying to create a working linux version of our mod, since
we
> > > are
> > > > > > really close to release. I compiled the mod and played simple
maps
> > > > with
> > > > > it
> > > > > > without any problems. When playing with maps that include
specific
> > > > > entities
> > > > > > that we coded though, the server crashes as soon as somebody
joins
> > > the
> > > > > game.
> > > > > >
> > > > > > The reason I am emailing here is because I am running out of
> > options
> > > > to
> > > > > > debug this crash.
> > > > > >
> > > > > > So here is the big question: how can I get more information
about
> > > the
> > > > > > crash, like a call stack or at least the line and file where the
> > > crash
> > > > > > occurred?
> > > > > >
> > > > > > Here is what I tried:
> > > > > > - The srcds runs fine under windows, with the same entity/code
> > that
> > > > > crashes
> > > > > > under linux
> > > > > > - Add -debug flag to ./srcds_run. The debug.log produced file is
> > > > really
> > > > > not
> > > > > > helping much:
> > > > > > ----------------------------------------------
> > > > > > CRASH: Fri May  5 20:00:54 PDT 2006
> > > > > > Start Line: ./srcds_i486 -console -game
/home/frank/srcds_l/troydp
> > > > +map
> > > > > > troy7 -maxplayers 16 -debug
> > > > > > End of Source crash report
> > > > > > ----------------------------------------------
> > > > > >
> > > > > > -Compiling the mod with a -g flag, so that I would have symbols
> > > within
> > > > > the
> > > > > > server_i486.so file. I didn't get more info in the debug.log
> > > > > >
> > > > > > - Compiling the mod with a debug target, in an attempt to get
more
> > > > > > information. Unfortunately the code doesn't compile because the
> > > debug
> > > > > > version of the SDK uses a different mmaloc, which is included in
> > > > Windows
> > > > > > only. I could not get around it and compile the mod in debug
> > without
> > > > > using
> > > > > > that
> > > > > > memory allocation.
> > > > > >
> > > > > > Any help appreciated, thank you!
> > > > > > -Francois
> > > > > > PS: I have a limited understanding of linux, but can understand
> > most
> > > > of
> > > > > the
> > > > > > c++ related stuff
> > > > > > --
> > > > > > Kiroke
> > > > > > Lead Game Designer
> > > > > > Troy : Divine Playground
> > > > > > http://www.troymod.com
> > > > > > --
> > > > > >
> > > > > > _______________________________________________
> > > > > > To unsubscribe, edit your list preferences, or view the list
> > > archives,
> > > > > please visit:
> > > > > > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > To unsubscribe, edit your list preferences, or view the list
> > archives,
> > > > > please visit:
> > > > > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> > > > >
> > > > >
> > > > > --
> > > > > Kiroke
> > > > > Lead Game Designer
> > > > > Troy : Divine Playground
> > > > > http://www.troymod.com
> > > > > --
> > > > >
> > > > > _______________________________________________
> > > > > To unsubscribe, edit your list preferences, or view the list
> > archives,
> > > > > please visit:
> > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > - Benjamin Davison
> > > > --
> > > >
> > > > _______________________________________________
> > > > To unsubscribe, edit your list preferences, or view the list
archives,
> > > > please visit:
> > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > >
> > > >
> > >
> > >
> > > --
> > > Kiroke
> > > Lead Game Designer
> > > Troy : Divine Playground
> > > http://www.troymod.com
> > > --
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> >
> >
> > --
> > - Benjamin Davison
> > --
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
>
>
> --
> Kiroke
> Lead Game Designer
> Troy : Divine Playground
> http://www.troymod.com
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


--
Jeff Fearn

"Postmodernism: Once more without feeling." -- Geoffrey Nunberg

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




--
Kiroke
Lead Game Designer
Troy : Divine Playground
http://www.troymod.com

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to