Segmentation fault

Bug #1698090 reported by Ubuntu Report on 2017-06-15
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snoopy (Ubuntu)
Undecided
Unassigned

Bug Description

DISTRIB_RELEASE=16.04
snoopy 2.3.1-2 amd64

/lib/libsnoopy.so.0.0.0 -> Segmentation fault (core dumped)
/lib/snoopy.so -> Segmentation fault (core dumped)

tags: added: xenial
Ubuntu Report (ubuntureport) wrote :

We found the bug. The problem was the syslog-ng configuration file.

/etc/syslog-ng/syslog-ng.conf
14.04:
unix-stream("/dev/log");
16.04:
unix-dgram("/dev/log");

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snoopy (Ubuntu):
status: New → Confirmed
Thayne (thayne-u) wrote :
Download full text (3.2 KiB)

I'm not sure if this is the same issue. But while running BitBucket we got a segfault about once a day (and had to restart bitbucket), until we figured out it was coming from snoopy code and disabled snoopy on the host.

The relevant part of the backtrace:

#1236 0x00007fa0e54ac746 in strlen () at ../sysdeps/x86_64/strlen.S:106
#1237 0x00007fa0e59fd0fd in snoopy_datasource_cmdline () at /lib/snoopy.so
#1238 0x00007fa0e59fcdc4 in snoopy_message_generateFromFormat () at /lib/snoopy.so
#1239 0x00007fa0e59fcc6b in snoopy_log_syscall () at /lib/snoopy.so
#1240 0x00007fa0e59fca45 in execve () at /lib/snoopy.so
#1241 0x00007fa0e2fd8284 in execve_with_shell_fallback (mode=<optimized out>, file=0x7fa081e75d60 "/usr/bin/git", argv=0x7fa080bfd5e0, envp=0x7fa081316ad0)
    at /build/openjdk-8-W2Qe27/openjdk-8-8u151-b12/src/jdk/src/solaris/native/java/lang/childproc.c:213
#1242 0x00007fa0e2fd86a9 in childProcess (arg=arg@entry=0x7fa0808e4ee0) at /build/openjdk-8-W2Qe27/openjdk-8-8u151-b12/src/jdk/src/solaris/native/java/lang/childproc.c:365
#1243 0x00007fa0e2fd5114 in vforkChild (c=c@entry=0x7fa0808e4ee0) at /build/openjdk-8-W2Qe27/openjdk-8-8u151-b12/src/jdk/src/solaris/native/java/lang/UNIXProcess_md.c:434
#1244 0x00007fa0e2fd580d in Java_java_lang_UNIXProcess_forkAndExec (env=0x7fa09c73f9e0, process=<optimized out>, helperpath=<optimized out>, c=0x7fa0808e4ee0)
    at /build/openjdk-8-W2Qe27/openjdk-8-8u151-b12/src/jdk/src/solaris/native/java/lang/UNIXProcess_md.c:552
#1245 0x00007fa0e2fd580d in Java_java_lang_UNIXProcess_forkAndExec (env=0x7fa09c73f9e0, process=<optimized out>, mode=3, helperpath=0x7fa03276cef0, prog=0x7fa03276cef8, argBlock=0x7fa03276cf00, argc=2, envBlock=0x7fa03276cf30, envc=21, dir=0x7fa03276cf40, std_fds=0x7fa03276cf48, redirectErrorStream=0 '\000') at /build/openjdk-8-W2Qe27/openjdk-8-8u151-b12/src/jdk/src/solaris/native/java/lang/UNIXProcess_md.c:645
#1246 0x00007fa0cf948ac9 in [native offset=0x149] java.lang.UNIXProcess.forkAndExec(int,byte,byte,byte,int,byte,int,byte,int,boolean) () at java/lang/UNIXProcess.java
#1247 0x00007fa0d43e3394 in [inlined] java.lang.StringCoding.encode(char,int,int) () at java/lang/StringCoding.java:388
0x00007fa0d43e3394 in [inlined] java.lang.String.getBytes() () at java/lang/String.java:958
0x00007fa0d43e3394 in [inlined] java.lang.ProcessImpl.toCString(java.lang.String) () at java/lang/ProcessImpl.java:51
0x00007fa0d43e3394 in [compiled offset=0x834] java.lang.ProcessImpl.start(java.lang.String,java.util.Map,java.lang.String,java.lang.ProcessBuilder$Redirect,boolean) () at java/lang/ProcessImpl.java:134
#1248 0x00007fa0d3745548 in [inlined] com.atlassian.utils.process.ExternalProcessImpl.createDefaultProcess(java.util.List,java.util.Map,java.io.File) () at com/atlassian/utils/process/ExternalProcessImpl.java:376
0x00007fa0d3745548 in [compiled offset=0x7c8] com.atlassian.utils.process.ExternalProcessImpl.createProcess(java.util.List,java.util.Map,java.io.File) () at com/atlassian/utils/process/ExternalProcessImpl.java:387
#1249 0x00007fa0d52478cc in [inlined] com.atlassian.utils.process.ExternalProcessBuilder.build() () at com/atlassian/utils/process/ExternalProcessBuilder.java:55

May be relat...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.