DBG-CLI (2.11) on x86_64 systems? |
|
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? |
||||||||||||
|
Site Admin
|
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. |
||||||||||||
|
|
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) |
||||||||||||
|
Site Admin
|
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. |
||||||||||||
|
|
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 |
||||||||||||
|
Site Admin
|
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 |
||||||||||||||
|
DBG-CLI (2.11) on x86_64 systems? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by