Opened 9 years ago

Closed 8 years ago

#1131 closed defect (worksforme)

TRACE debug doesn't work

Reported by: Dimitar Misev Owned by: bbell
Priority: major Milestone: 9.4
Component: rasserver Version: development
Keywords: Cc:
Complexity: Medium

Description (last modified by Dimitar Misev)

Configure rasdaman with option —enable-debug, and enabling TRACE in etc/log-server.conf seems to be not working at all.

Change History (4)

comment:1 by Dimitar Misev, 8 years ago

Component: undecidedrasserver
Description: modified (diff)
Milestone: 9.29.3
Owner: changed from Vlad Zamfir to drusu
Status: newassigned

comment:2 by Dimitar Misev, 8 years ago

Milestone: 9.39.4

comment:3 by Dimitar Misev, 8 years ago

Owner: changed from drusu to bbell

comment:4 by bbell, 8 years ago

Resolution: worksforme
Status: assignedclosed

try setting it in etc/log-client.conf as well, for arbitrary queries. Also, check that debugging has the line:

TO_STANDARD_OUTPUT = true

otherwise, you might only see the debug+trace output in the log files.

the use of autotools for configuring rasdaman is, as far as I know, deprecated. For debugging, at least, when using cmake (v3+), you can include

-DCMAKE_CXX_FLAGS=" -O0 -g3 -gdwarf-2 -rdynamic"

for debugging, however, if you want to do what "—enable-debug" used to do, then you should use

-DENABLE_DEBUG

which also sets CMAKE_CXX_FLAGS to the above.

example:

[bbell@localhost rasdaman]$ rasql -q 'select csv(1)' —out string
rasql: rasdaman query tool v1.0, rasdaman 9.4.0.
opening database RASBASE at localhost:7001...[DEBUG] - 08/03/2017 11:30:48.309373, /home/bbell/projects/rasdaman/applications/rasql/rasql.cc:478: database was closed, opening database=RASBASE, server=localhost, port=7001, user=rasguest, passwd=rasguest…
[DEBUG] - 08/03/2017 11:30:48.310765, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:245: Stopping rasmgr keep alive.
[DEBUG] - 08/03/2017 11:30:48.310781, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2038: Joining rasmgr keep alive management thread.
[DEBUG] - 08/03/2017 11:30:48.310792, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2040: Joined rasmgr keep alive management thread.
[DEBUG] - 08/03/2017 11:30:48.311102, /home/bbell/projects/rasdaman/applications/rasql/rasql.cc:480: ok
ok
[TRACE] - 08/03/2017 11:30:48.311115, /home/bbell/projects/rasdaman/rasodmg/ref.cc:345: r_Ref( const T* )
[DEBUG] - 08/03/2017 11:30:48.311122, /home/bbell/projects/rasdaman/applications/rasql/rasql.cc:865: query is: select csv(1)
[DEBUG] - 08/03/2017 11:30:48.311130, /home/bbell/projects/rasdaman/applications/rasql/rasql.cc:511: transaction was closed, opening ro…
[DEBUG] - 08/03/2017 11:30:48.311811, /home/bbell/projects/rasdaman/applications/rasql/rasql.cc:513: ok
Executing retrieval query…[TRACE] - 08/03/2017 11:30:48.312527, /home/bbell/projects/rasdaman/rasodmg/ref.cc:305: r_Ref()
[TRACE] - 08/03/2017 11:30:48.312759, /home/bbell/projects/rasdaman/rasodmg/ref.cc:345: r_Ref( const T* )
[TRACE] - 08/03/2017 11:30:48.312771, /home/bbell/projects/rasdaman/rasodmg/ref.cc:305: r_Ref()
[TRACE] - 08/03/2017 11:30:48.312978, /home/bbell/projects/rasdaman/rasodmg/ref.cc:354: r_Ref( const r_OId &oid, const T* )
[TRACE] - 08/03/2017 11:30:48.312990, /home/bbell/projects/rasdaman/rasodmg/ref.cc:376: operator r_Ref_Any()
[TRACE] - 08/03/2017 11:30:48.312997, /home/bbell/projects/rasdaman/rasodmg/ref.cc:103: r_Ref_Any( const r_OId &oid, const r_Object* )
[TRACE] - 08/03/2017 11:30:48.313003, /home/bbell/projects/rasdaman/rasodmg/ref.cc:62: r_Ref_Any
ok
Query result collection has 1 element(s):
[TRACE] - 08/03/2017 11:30:48.313271, /home/bbell/projects/rasdaman/rasodmg/ref.cc:69: r_Ref_Any( const r_Ref_Any& )
[TRACE] - 08/03/2017 11:30:48.313281, /home/bbell/projects/rasdaman/rasodmg/ref.cc:333: r_Ref( const r_Ref_Any& )
[TRACE] - 08/03/2017 11:30:48.313287, /home/bbell/projects/rasdaman/rasodmg/ref.cc:503: operator→()
[TRACE] - 08/03/2017 11:30:48.313292, /home/bbell/projects/rasdaman/rasodmg/ref.cc:69: r_Ref_Any( const r_Ref_Any& )
[TRACE] - 08/03/2017 11:30:48.313297, /home/bbell/projects/rasdaman/rasodmg/ref.cc:333: r_Ref( const r_Ref_Any& )
[TRACE] - 08/03/2017 11:30:48.313301, /home/bbell/projects/rasdaman/rasodmg/ref.cc:503: operator→()

Result object 1: {1}

[DEBUG] - 08/03/2017 11:30:48.313309, /home/bbell/projects/rasdaman/applications/rasql/rasql.cc:527: transaction was open, committing it…
[DEBUG] - 08/03/2017 11:30:48.313315, /home/bbell/projects/rasdaman/rasodmg/transaction.cc:122: Commit Log:
[TRACE] - 08/03/2017 11:30:48.313322, /home/bbell/projects/rasdaman/rasodmg/ref.cc:313: r_Ref( const r_Ref<T>& )
[TRACE] - 08/03/2017 11:30:48.313328, /home/bbell/projects/rasdaman/rasodmg/ref.cc:503: operator→()
[DEBUG] - 08/03/2017 11:30:48.313332, /home/bbell/projects/rasdaman/rasodmg/transaction.cc:170: Object with no oid, state TRANSIENT query result
[TRACE] - 08/03/2017 11:30:48.313338, /home/bbell/projects/rasdaman/rasodmg/ref.cc:313: r_Ref( const r_Ref<T>& )
[TRACE] - 08/03/2017 11:30:48.313343, /home/bbell/projects/rasdaman/rasodmg/ref.cc:503: operator→()
[TRACE] - 08/03/2017 11:30:48.313348, /home/bbell/projects/rasdaman/rasodmg/ref.cc:313: r_Ref( const r_Ref<T>& )
[TRACE] - 08/03/2017 11:30:48.313352, /home/bbell/projects/rasdaman/rasodmg/ref.cc:503: operator→()
[TRACE] - 08/03/2017 11:30:48.313358, /home/bbell/projects/rasdaman/rasodmg/ref.cc:313: r_Ref( const r_Ref<T>& )
[TRACE] - 08/03/2017 11:30:48.313363, /home/bbell/projects/rasdaman/rasodmg/ref.cc:503: operator→()
[TRACE] - 08/03/2017 11:30:48.313367, /home/bbell/projects/rasdaman/rasodmg/ref.cc:313: r_Ref( const r_Ref<T>& )
[TRACE] - 08/03/2017 11:30:48.313372, /home/bbell/projects/rasdaman/rasodmg/ref.cc:305: r_Ref()
[DEBUG] - 08/03/2017 11:30:48.313554, /home/bbell/projects/rasdaman/applications/rasql/rasql.cc:529: ok
[DEBUG] - 08/03/2017 11:30:48.313568, /home/bbell/projects/rasdaman/applications/rasql/rasql.cc:491: database was open, closing it
[DEBUG] - 08/03/2017 11:30:48.313859, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2141: Joining rasserver keep alive management thread.
[DEBUG] - 08/03/2017 11:30:48.313869, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2143: Joined rasserver keep alive management thread.
[DEBUG] - 08/03/2017 11:30:48.313953, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2044: Interrupting rasmgr keep alive management thread.
[DEBUG] - 08/03/2017 11:30:48.313963, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2046: Interrupted rasmgr keep alive management thread.
[DEBUG] - 08/03/2017 11:30:48.314010, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2044: Interrupting rasmgr keep alive management thread.
[DEBUG] - 08/03/2017 11:30:48.314018, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2046: Interrupted rasmgr keep alive management thread.
[DEBUG] - 08/03/2017 11:30:48.314023, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2147: Interrupting rasserver keep alive management thread.
[DEBUG] - 08/03/2017 11:30:48.314028, /home/bbell/projects/rasdaman/rasnetprotocol/rasnetclientcomm.cc:2149: Interrupted rasserver keep alive management thread.
rasql done.

Note: See TracTickets for help on using tickets.