Re: [anjuta-devel] [anjuta-list] Problem starting Anjuta



Jens,

On Mon, Aug 14, 2017 at 6:01 PM, Igor Korot <ikorot01 gmail com> wrote:
Hi, Jens,

On Mon, Aug 14, 2017 at 3:42 PM, Jens Mühlenhoff <j muehlenhoff gmx de> wrote:
Hi Igor,

Am 14.08.2017 um 16:34 schrieb Igor Korot:
Hi, Jens,

So it really *is* closely related. The problem is in the symbol-db plugin:

https://github.com/GNOME/anjuta/blob/1f196dd119b41ce70f50c028946017e1c98d4d72/plugins/symbol-db/symbol-db-engine-core.c#L1561

There is a g_warning there (in fact the one you were seeing all along), but it really is a critical 
error how the code is currently written, because there is no working fallback when shm is not usable.

Ok, so `shm_open ("/dev/pts/anjuta [...]` fails on your system and that causes the segfault.

Does this mean that the plugin needs to be fixed?

It doesn't do a good job at error recovery, as it stands shm support is required for the plugin to work.

I have 2 Gentoo system:
1. Gentoo + KDE 4 with Anjuta and GTK installed. It uses OpenRC.
2. Gentoo + GNOME 3 with Anjuta. It uses OpenRC.

The interesting thing is that on the first system I don't see that crash,
only on the second one.

Have you compared /etc/fstab on both systems?


Do you have any idea why? I will try to compare the USE-flags for
Anjuta on both systems
in the meantime.

I don't think the problem is use flag related.



And shm is mounted correctly:

$ mount | grep shm
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)

I would try to comment out the last line of your fstab (and remount /dev/shm or reboot).

I can try to do that, but I want to hear your opinion on the question above.

Thank you.

I would compare fstab files and try to remove the devtmpfs line as I already wrote.

devtmpfs can be used for /dev (not /dev/shm), it is probably a typo or something.

Like I wrote before udev and the init system normally take care of mounting system filesystems like /sys, 
/proc, /dev and even /dev/shm.

Here is the "mount" from the second machine:

igor@IgorDellGentoo ~/dbhandler/Debug $ mount
/dev/sda4 on / type ext4 (rw,noatime,data=ordered)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nodev,relatime,size=201316k,mode=755)
dev on /dev type devtmpfs
(rw,nosuid,relatime,size=10240k,nr_inodes=251280,mode=755)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl
(rw,nosuid,nodev,noexec,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs
(rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup
(rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset on /sys/fs/cgroup/cpuset type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer on /sys/fs/cgroup/freezer type cgroup
(rw,nosuid,nodev,noexec,relatime,freezer)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,nosuid,nodev,noexec,relatime)
none on /run/user/1000 type tmpfs (rw,relatime,mode=700,uid=1000)
tracefs on /sys/kernel/debug/tracing type tracefs
(rw,nosuid,nodev,noexec,relatime)

and here is /etc/fstab from it:

igor@IgorDellGentoo ~/dbhandler/Debug $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>
 <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda2               /boot           ext2            noauto,noatime  0 2
/dev/sda4               /               ext4            noatime         0 1
/dev/sda3               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,user     0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

Thank you.

P.S.: I guess that was just a remnants from the old times install...
I will get rid of that and reboot.

Nevertheless I believe that the plugin should be fixed.
If the software is crashing it is a very serious bug.

Thank you.



Your current config first mounts shm on /dev/shm and then mounts a second filesystem over it (a devtmpfs) 
which looks like a mistake to me. This could cause problems with other software as well that expects shm 
to work.

--
Mit freundlichen Grüßen
Jens Mühlenhoff


_______________________________________________
anjuta-list mailing list
anjuta-list gnome org
https://mail.gnome.org/mailman/listinfo/anjuta-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]