[
https://issues.apache.org/jira/browse/TS-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903831#action_12903831
]
Igor Galić commented on TS-427:
-------------------------------
I have confirmed the segmentation fault with GCC on trafficserver trunk with
--enable-debug, so I guess I can exclude my patchset as suspect, also, this
should probably be a separate defect?
r...@phoenix:~# /opt/ats-vanilla-gcc/bin/traffic_server -R 1
Layout configuration
--prefix = '/opt/ats-vanilla-gcc'
--exec_prefix = '/opt/ats-vanilla-gcc'
--bindir = '/opt/ats-vanilla-gcc/bin'
--sbindir = '/opt/ats-vanilla-gcc/sbin'
--sysconfdir = '/etc/opt/ats-vanilla-gcc'
--datadir = '/opt/ats-vanilla-gcc/share'
--includedir = '/opt/ats-vanilla-gcc/include'
--libdir = '/opt/ats-vanilla-gcc/lib'
--libexecdir = '/opt/ats-vanilla-gcc/libexec'
--localstatedir = '/var/opt/ats-vanilla-gcc'
--sharedstatedir = '/opt/ats-vanilla-gcc'
--runtimedir = '/var/opt/ats-vanilla-gcc/run'
--logdir = '/var/opt/ats-vanilla-gcc/logs'
--mandir = '/opt/ats-vanilla-gcc/man'
--infodir = '/opt/ats-vanilla-gcc/info'
--cachedir = '/var/opt/ats-vanilla-gcc/cache'
[TrafficServer] using root directory '/opt/ats-vanilla-gcc'
[Aug 28 16:42:57.423] {140617315079968} STATUS: opened
/var/opt/ats-vanilla-gcc/logs/diags.log
[Aug 28 16:42:57.777] Server {140617315079968} ERROR: Could not bind or listen
to port 8080 (error: -1)
[Aug 28 16:42:57.779] Server {140617191810832} FATAL: <HttpAccept.cc:98
(mainEvent)> HTTP accept received fatal error: errno = 9
FATAL: UnixUDPNet.cc:295: failed assert `event != NULL`
/opt/ats-vanilla-gcc/bin/traffic_server - STACK TRACE:
NOTE: Traffic Server received Sig 11: Segmentation fault
/opt/ats-vanilla-gcc/bin/traffic_server - STACK TRACE:
/opt/ats-vanilla-gcc/bin/traffic_server(ink_fatal_va+0xd4)[0x7fe4055cec18]
/opt/ats-vanilla-gcc/bin/traffic_server(ink_fatal+0xc9)[0x7fe4055ced04]
/opt/ats-vanilla-gcc/bin/traffic_server(_ink_assert+0xd1)[0x7fe4055cddb1]
/opt/ats-vanilla-gcc/bin/traffic_server(_ZN19UDPReadContinuationD1Ev+0x46)[0x7fe4055a4fb0]
/opt/ats-vanilla-gcc/bin/traffic_server(_ZN14ClassAllocatorI19UDPReadContinuationE6_protoD1Ev+0x18)[0x7fe4055abe4e]
/opt/ats-vanilla-gcc/bin/traffic_server(_ZN14ClassAllocatorI19UDPReadContinuationED1Ev+0x1c)[0x7fe4055ac55a]
/opt/ats-vanilla-gcc/bin/traffic_server(+0x1b0082)[0x7fe4053b1082]
/lib/libc.so.6(exit+0xe2)[0x7fe402cba262]
/lib/libpthread.so.0(+0xf8f0)[0x7fe404dd08f0]
/opt/ats-vanilla-gcc/bin/traffic_server(+0x136cb9)[0x[0xffffffff7fe405337cb9]
]
Segmentation fault (core dumped)
Produced with:
CC="gcc"; export CC
CXX="g++"; export CXX
CFLAGS="-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2"; export CFLAGS
CXXFLAGS="-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2"; export CXXFLAGS
LDFLAGS="-Wl,--as-needed -Wl,--warn-common"; export LDFLAGS
"./configure" \
"--prefix=/opt/ats-vanilla-gcc" \
"--enable-layout=opt" \
"--with-user=proxy" \
"--with-group=proxy" \
"--enable-debug" \
"CC=$CC" \
"CXX=$CXX" \
"CFLAGS=$CFLAGS" \
"CXXFLAGS=$CFLAGS" \
"LDFLAGS=$LDFLAGS" \
"$@"
Once the regression test on the clang patchset is done, I'll test for the
abort() -- then run the regression test with GCC compiled clang-patchset.
> Build ATS with clang
> --------------------
>
> Key: TS-427
> URL: https://issues.apache.org/jira/browse/TS-427
> Project: Traffic Server
> Issue Type: Improvement
> Components: Build
> Affects Versions: 2.1.3
> Environment: OS: Any; Clang --version:
> clang version 1.1 (branches/release_27)
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> Reporter: Igor Galić
> Attachments: ats.clang.compile.patch, ats.clang.patch, ats.clang.patch
>
>
> I've started compiling, and cleaning up traffic-server from trunk with clang,
> with this config:
> i.ga...@phoenix ~/Projects/asf/trafficserver (svn)-[trunk:989985] % cat
> config.notnice
> #! /bin/sh
> #
> # Created by configure
> CC="clang"; export CC
> CXX="clang"; export CXX
> CFLAGS="-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2"; export CFLAGS
> CXXFLAGS="-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2"; export CXXFLAGS
> LDFLAGS="-Wl,--as-needed -Wl,--warn-common"; export LDFLAGS
> "./configure" \
> "--enable-layout=opt" \
> "--with-user=proxy" \
> "--with-group=proxy" \
> "CC=clang" \
> "CFLAGS=-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2" \
> "LDFLAGS=-Wl,--as-needed" \
> "CXX=clang" \
> "$@"
> i.ga...@phoenix ~/Projects/asf/trafficserver (svn)-[trunk:989985] %
> Until I hit errors that seemed to include templates.
> I'm uploading the current patch for you to sanity-check and review. If it
> makes sense, I suppose it does a bit of a clean-up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.