[systemd-devel] SegFaults?!
Sven Anders
anders at anduras.de
Thu May 3 09:14:00 PDT 2012
Hello!
I'm getting some SegFaults, which I can not explain. I think the problem
lies somewhere in my configuration or systemd makes some assumptions and
my system does not fulfill these requirements.
Nevertheless, I think the tools should not SegFault but issue an error
instead. By now I have no real idea where the problem lies.
If I run the tool in valgrind, they work.
Do you have any idea?
Regards
Sven
root at system:/var/tmp/systemd-44 # gdb systemd-cgls
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/systemd-cgls...Reading symbols from /usr/lib/debug/usr/bin/systemd-cgls.dbgsym...done.
done.
(gdb) run
Starting program: /usr/bin/systemd-cgls
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x000000a2 in ?? ()
(gdb) up
#1 0x40127282 in pipe () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
in ../sysdeps/unix/syscall-template.S
(gdb) up
#2 0x80004210 in pager_open () at src/pager.c:66
66 if (pipe(fd) < 0) {
(gdb) print fd
$1 = {1, -1073743132}
(gdb) up
#3 0x80002dee in main (argc=1, argv=0xbffffae4) at src/cgls.c:108
108 pager_open();
root at system# gdb systemd-loginctl
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /bin/systemd-loginctl...Reading symbols from /usr/lib/debug/bin/systemd-loginctl.dbgsym...done.
done.
(gdb) run
Starting program: /bin/systemd-loginctl
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x000000a2 in ?? ()
(gdb) bt
#0 0x000000a2 in ?? ()
#1 0x40194282 in pipe () at ../sysdeps/unix/syscall-template.S:82
#2 0x8000cea0 in pager_open () at src/pager.c:66
#3 0x8000a22e in pager_open_if_enabled (bus=0x80018710, args=0xbffffae8, n=0) at src/login/loginctl.c:72
#4 list_sessions (bus=0x80018710, args=0xbffffae8, n=0) at src/login/loginctl.c:86
#5 0x8000ab16 in loginctl_main (argc=1, argv=0xbffffae4) at src/login/loginctl.c:1878
#6 main (argc=1, argv=0xbffffae4) at src/login/loginctl.c:1908
(gdb) up
#1 0x40194282 in pipe () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
in ../sysdeps/unix/syscall-template.S
(gdb) up
#2 0x8000cea0 in pager_open () at src/pager.c:66
66 if (pipe(fd) < 0) {
(gdb) print fd
$1 = {22, 0}
(gdb) up
#3 0x8000a22e in pager_open_if_enabled (bus=0x80018710, args=0xbffffae8, n=0) at src/login/loginctl.c:72
72 pager_open();
root at system # gdb systemd-loginctl
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /bin/systemd-loginctl...Reading symbols from /usr/lib/debug/bin/systemd-loginctl.dbgsym...done.
done.
(gdb) run
Starting program: /bin/systemd-loginctl
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x000000a2 in ?? ()
(gdb) bt
#0 0x000000a2 in ?? ()
#1 0x40194282 in pipe () at ../sysdeps/unix/syscall-template.S:82
#2 0x8000cea0 in pager_open () at src/pager.c:66
#3 0x8000a22e in pager_open_if_enabled (bus=0x80018710, args=0xbffffae8, n=0) at src/login/loginctl.c:72
#4 list_sessions (bus=0x80018710, args=0xbffffae8, n=0) at src/login/loginctl.c:86
#5 0x8000ab16 in loginctl_main (argc=1, argv=0xbffffae4) at src/login/loginctl.c:1878
#6 main (argc=1, argv=0xbffffae4) at src/login/loginctl.c:1908
(gdb) up
#1 0x40194282 in pipe () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
in ../sysdeps/unix/syscall-template.S
(gdb) up
#2 0x8000cea0 in pager_open () at src/pager.c:66
66 if (pipe(fd) < 0) {
(gdb) print fd
$1 = {22, 0}
(gdb) up
#3 0x8000a22e in pager_open_if_enabled (bus=0x80018710, args=0xbffffae8, n=0) at src/login/loginctl.c:72
72 pager_open();
My processes:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.5 9204 4520 ? Ss 14:19 0:00 /sbin/init
root 2 0.0 0.0 0 0 ? S 14:19 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 14:19 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S 14:19 0:12 [kworker/0:0]
root 5 0.0 0.0 0 0 ? S 14:19 0:00 [kworker/u:0]
root 6 0.0 0.0 0 0 ? S 14:19 0:00 [migration/0]
root 7 0.0 0.0 0 0 ? S< 14:19 0:00 [cpuset]
root 8 0.0 0.0 0 0 ? S< 14:19 0:00 [khelper]
root 9 0.0 0.0 0 0 ? S 14:19 0:00 [kdevtmpfs]
root 10 0.0 0.0 0 0 ? S 14:19 0:00 [sync_supers]
root 11 0.0 0.0 0 0 ? S 14:19 0:00 [bdi-default]
root 12 0.0 0.0 0 0 ? S< 14:19 0:00 [kintegrityd]
root 13 0.0 0.0 0 0 ? S< 14:19 0:00 [kblockd]
root 14 0.0 0.0 0 0 ? S< 14:19 0:00 [ata_sff]
root 15 0.0 0.0 0 0 ? S 14:19 0:00 [khubd]
root 16 0.0 0.0 0 0 ? S< 14:19 0:00 [md]
root 19 0.0 0.0 0 0 ? S 14:19 0:00 [kswapd0]
root 20 0.0 0.0 0 0 ? S 14:19 0:00 [fsnotify_mark]
root 21 0.0 0.0 0 0 ? S< 14:19 0:00 [crypto]
root 26 0.0 0.0 0 0 ? S 14:19 0:00 [scsi_eh_0]
root 27 0.0 0.0 0 0 ? S 14:19 0:00 [scsi_eh_1]
root 30 0.0 0.0 0 0 ? S< 14:19 0:00 [kpsmoused]
root 31 0.0 0.0 0 0 ? S 14:19 0:00 [kworker/0:2]
root 32 0.0 0.0 0 0 ? S 14:19 0:00 [kworker/u:3]
root 79 0.0 0.0 0 0 ? S 14:19 0:00 [kjournald]
root 126 0.0 0.0 0 0 ? S 14:19 0:00 [kjournald]
root 127 0.0 0.0 0 0 ? S< 14:19 0:00 [loop0]
root 131 0.0 0.0 0 0 ? S< 14:19 0:00 [loop1]
root 134 0.0 0.0 0 0 ? S< 14:19 0:00 [loop2]
root 159 0.0 0.2 3264 1800 ? Ss 14:19 0:00 /lib/udev/udevd
root 164 0.0 0.4 10612 3248 ? Ss 14:19 0:01 /lib/systemd/systemd-journald
root 165 0.0 0.0 0 0 ? S 14:19 0:00 [kauditd]
4 222 0.0 0.2 6652 2124 ? Ss 14:19 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --systemd-activation
root 285 0.0 0.0 3180 668 ? S 14:19 0:00 /lib/udev/udevd
root 286 0.0 0.0 3180 668 ? S 14:19 0:00 /lib/udev/udevd
root 290 0.0 0.2 6716 2132 tty1 Ss 14:19 0:00 /bin/login --
root 291 0.0 0.0 4000 708 tty2 Ss+ 14:19 0:00 /sbin/agetty tty2 38400
root 294 0.0 0.0 0 0 ? S 14:19 0:00 [vballoon]
root 299 0.0 0.2 5640 2180 tty1 S+ 14:20 0:00 -bash
root 335 0.0 0.3 6076 2412 ? Ss 14:25 0:00 /usr/sbin/sshd -D
root 370 0.0 0.3 8636 2580 ? Rs 14:26 0:01 sshd: root at pts/0
root 372 0.0 0.3 5764 2368 pts/0 Ss 14:26 0:01 -bash
root 673 0.0 0.0 0 0 ? S 17:58 0:00 [flush-8:0]
root 744 0.0 0.1 3436 888 pts/0 R+ 18:10 0:00 ps axuw
--
Sven Anders <anders at anduras.de> () UTF-8 Ribbon Campaign
/\ Support plain text e-mail
ANDURAS intranet security AG
Messestrasse 3 - 94036 Passau - Germany
Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anders.vcf
Type: text/x-vcard
Size: 352 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120503/a9039e68/attachment-0001.vcf>
More information about the systemd-devel
mailing list