You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/10 21:33:20 UTC
[jira] [Work logged] (TS-4728) Null pointer error in LogHost.cc.
[ https://issues.apache.org/jira/browse/TS-4728?focusedWorklogId=26301&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-26301 ]
ASF GitHub Bot logged work on TS-4728:
--------------------------------------
Author: ASF GitHub Bot
Created on: 10/Aug/16 21:32
Start Date: 10/Aug/16 21:32
Worklog Time Spent: 10m
Work Description: GitHub user jpeach opened a pull request:
https://github.com/apache/trafficserver/pull/850
TS-4728: Remove invalid LogHost assertion.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jpeach/trafficserver fix/4728
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/850.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #850
----
commit 0a12b2682cc718057ee33d0642dfe009c5574004
Author: James Peach <jp...@apache.org>
Date: 2016-08-10T21:10:17Z
TS-4728: Return bool from LogHost boolean functions.
commit f502718abc09c66830d9dececf596e039daec422
Author: James Peach <jp...@apache.org>
Date: 2016-08-10T21:16:16Z
TS-4728: Remove invalid LogHost assertion.
----
Issue Time Tracking
-------------------
Worklog Id: (was: 26301)
Time Spent: 10m
Remaining Estimate: 0h
> Null pointer error in LogHost.cc.
> ---------------------------------
>
> Key: TS-4728
> URL: https://issues.apache.org/jira/browse/TS-4728
> Project: Traffic Server
> Issue Type: Bug
> Components: Logging
> Affects Versions: 7.0.0
> Reporter: Peter Chou
> Assignee: James Peach
> Time Spent: 10m
> Remaining Estimate: 0h
>
> [~jpeach@apache.org] I am getting a null pointer access error with the following assertion at the time of traffic_server start-up with log collation enabled (client-side). I was able to get around it by just commenting it out, but perhaps a better fix is required.
> {noformat}
> LogHost::create_orphan_LogFile_object()
> {
> // We expect that no-one else is holding any refcounts on the
> // orphan file so that is will be releases when we replace it
> // below.
> ink_assert(m_orphan_file->refcount() == 1);
> {noformat}
> Back-trace --
> {noformat}
> #0 0x000000000053e772 in RefCountObj::refcount (this=0x8) at ../lib/ts/Ptr.h:80
> #1 0x0000000000692f9f in LogHost::create_orphan_LogFile_object (this=0x2268d80) at LogHost.cc:235
> #2 0x0000000000692a45 in LogHost::set_ipstr_port (this=0x2268d80, ipstr=0x2265d40 "127.0.0.1", pt=8085) at LogHost.cc:135
> #3 0x0000000000692b92 in LogHost::set_name_or_ipstr (this=0x2268d80, name_or_ip=0x2265d40 "127.0.0.1") at LogHost.cc:155
> #4 0x0000000000684046 in LogConfig::read_xml_log_config (this=0x21e4110) at LogConfig.cc:1472
> #5 0x000000000067ff73 in LogConfig::setup_log_objects (this=0x21e4110) at LogConfig.cc:510
> #6 0x000000000067f858 in LogConfig::init (this=0x21e4110, prev_config=0x0) at LogConfig.cc:395
> #7 0x00000000006721fe in Log::init (flags=0) at Log.cc:925
> #8 0x0000000000542552 in main (argv=0x7ffcc853abd8) at Main.cc:1828
> {noformat}
> I made minimal changes to logs_xml.config to set as client --
> {noformat}
> <LogFormat>
> <Name = "minimal"/>
> <Format = "%<chi> : %<cqu> : %<pssc>"/>
> </LogFormat>
> <LogObject>
> <Format = "minimal"/>
> <Filename = "minimal_remote"/>
> <CollationHosts = "127.0.0.1:8085"/>
> </LogObject>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)