NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DBG-CLI (2.11) on x86_64 systems?


Joined: 14 Jul 2005
Posts: 8
Location: Chicago, IL
Reply with quote
I'm trying to get DBG to work for the first time ever for me, I have a x86_64 system (Xeon) and was able to build the dbg php module, and phpinfo() reports it as loaded, but no matter what client I try (I've tried both PHPEclipse and Protoeditor (KDE DBG Client), nothing seems to work. All I ever get is things seeming to hang for forever.

Now, I'd love to try the "official" command line client, but I can't get it to build on my machine, but is there anyone out there who can verify that the dbg module works on an x86_64 machine? Any ideas about something I could be doing wrong?
View user's profileFind all posts by epchrisSend private messageAIM AddressMSN Messenger


Joined: 14 Jul 2005
Posts: 8
Location: Chicago, IL
Reply with quote
I just installed dbg on my x86 machine (32bit) and all of the clients that I tried on my 64bit machine worked there, whereas they didn't work on the 64bit one.

Is there anything else I can do to verify my question of whether or not dbg runs on 64bit platforms?
View user's profileFind all posts by epchrisSend private messageAIM AddressMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
1. run buildconf to create new configure script
2. run configure script with --with-dbg-trace=/tmp/dbg-cli.log
3. proceed with make
then run dbg-cli, try to run commands in it and let me know if it fails
or not. If it is, dbg-cli.log may help with finding the reason for failure.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Jul 2005
Posts: 8
Location: Chicago, IL
Reply with quote
Just got dbg-cli to build.

If I follow the instructions to have it be in listening mode, it segfaults as soon as I issue the "set mapurlroot" command ("set mapurlroot http://localhost/" is what I do).

If I just do "listen 7869" it doesn't wait (even if I give it a timeout), it opens the socket, and closes it right away.

Output when trying to listen:
dbg>listen 10001
ListenerBase::startJIT
dbh_create_listen_socket(, 0)
socket=3
[DBG] startJIT->1
Waiting for debug session (press Ctrl-C to stop)...
ListenerBase::stopJIT
dbh_close_socket(3)
View user's profileFind all posts by epchrisSend private messageAIM AddressMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Show me backtrace please.
run: gdb ./dbg-cli [options for dbg-cli]
then run "run" from the gdb prompt, then invoke set mapurlroot and as soon as you get segfault, run bt to see the backtrace.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Jul 2005
Posts: 8
Location: Chicago, IL
Reply with quote
Got the same thing after specifying -O0

gdb dbg-cli
GNU gdb 6.3
Copyright 2004 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 "x86_64-suse-linux"...Using host libthread_db library "/lib64/tls/libthread_db.so.1".

(gdb) run
Starting program: /home/tenharmsel/Downloads/dbg_client-2.11.32/dbg/dbg-cli
ListenerBase::ListenerBase
DBG php debugger, version 2.11.32, Copyright 2001, 2005, Dmitri Dmitrienko, www.nusphere.com
[DBG] parse_args(argc=1, argv=(null))
dbg>set mapurlroot http://localhost/

Program received signal SIGSEGV, Segmentation fault.
0x00000000004122c7 in ensure_slashes (s=@0x548b60, isbackslash=false, addlastslash=true) at dbgbase_globals.cpp:499
499 s[p] = sl;
(gdb) where
#0 0x00000000004122c7 in ensure_slashes (s=@0x548b60, isbackslash=false, addlastslash=true) at dbgbase_globals.cpp:499
#1 0x0000000000412ac1 in filemapper::modified (this=0x548b60) at dbgbase_globals.cpp:618
#2 0x0000000000409f46 in filemapper::set_url_root (this=0x548b60, s=
{static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<No data fields>}, _M_p = 0x2f <Address 0x2f out of bounds>}, static _S_empty_rep_storage = {0, 0, 3, 0}}) at dbgbase_globals.h:458
#3 0x0000000000404dd5 in handler_set_mapurlroot (argc=1, argv=0x55c890) at command.cpp:851
#4 0x0000000000403b63 in process_command (st=ssNotStarted, cmd_line=0x55c790 "set") at command.cpp:453
#5 0x0000000000403e3e in process_line (line=0x55c790 "set") at command.cpp:518
#6 0x0000000000408999 in process_loop (port=0, execarg=0x0, cgihandler=0x0, mode=-1, mapurlroot=0x0, maplocalroot=0x0,
mapremoteroot=0x0) at command.cpp:1739
#7 0x000000000040dfb3 in main (argc=1, argv=0x7fffffffee38) at main.cpp:290
View user's profileFind all posts by epchrisSend private messageAIM AddressMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
found the problem.

please apply this patch:
http://forum.nusphere.com/sshot/dbg_client-2.11.32.patch.gz
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Jul 2005
Posts: 8
Location: Chicago, IL
Reply with quote
ddmitrie wrote:
found the problem.

please apply this patch:
http://forum.nusphere.com/sshot/dbg_client-2.11.32.patch.gz


Seems to have worked, I can use the cli debugger
View user's profileFind all posts by epchrisSend private messageAIM AddressMSN Messenger
DBG-CLI (2.11) on x86_64 systems?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic