You are not logged in.

#1 2009-01-28 23:32:58

peabrain
Member
Registered: 2005-08-08
Posts: 42

xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

After system uprage xpdf stopped working.

If you're using KDE 4.2., please read: http://bbs.archlinux.org/viewtopic.php? … 04#p489504


If run as a normal user xpdf opens up the window, immediately closes it and just prints "Aborted" in the terminal. Happens with every normal user.

If it's run as root with sudo, then it opens up normally.

That's everything I can squeeze out of it. I don't see any messages about this in the logs or elsewhere. Reinstalling xpdf did not help, but I guess that's no surprise as it seems to be a permission problem.

Last edited by peabrain (2009-01-30 02:27:37)

Offline

#2 2009-01-28 23:55:10

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

What groups is your user in? 'groups' command I believe.

Offline

#3 2009-01-29 00:19:45

peabrain
Member
Registered: 2005-08-08
Posts: 42

Re: xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

audio optical storage scanner

Offline

#4 2009-01-29 00:25:29

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

Try adding the video, lp, or power group. Also, perhaps check the permissions of files in the xpdf package.

Offline

#5 2009-01-29 00:34:37

peabrain
Member
Registered: 2005-08-08
Posts: 42

Re: xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

Ranguvar wrote:

Try adding the video, lp, or power group.

No effect.

Also, perhaps check the permissions of files in the xpdf package.

They seem to be ok. A normal user can execute /usr/bin/xpdf and read all the other files.

Offline

#6 2009-01-30 01:18:59

peabrain
Member
Registered: 2005-08-08
Posts: 42

Re: xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

Any ideas, anyone?

I did a strace on xpdf, with an without sudo. Here's where they seem to differ:

sudo strace -o output_root /usr/bin/xpdf

output_root

select(4, [3], [3], NULL, NULL)         = 1 (out [3])
writev(3, [{"5\30\4\0w\0\200\3O\0\200\0030\0000\0007\30\6\0x\0\200\3w\0\200\3\f\0\0\0\1"..., 40}, {"H\2\6\tw\0\200\3x\0\200\0030\0000\0\0\0\0\0\0\30\0\0\0\0\0\0\0\0\0\0\0"..., 9240}], 2) = 9280
select(4, [3], [3], NULL, NULL)         = 1 (out [3])
writev(3, [{"<\2\2\0x\0\200\3\22\0\17\0O\0\200\3#\0\0\0#\0\0\0 \0\0\0\t\0\0\0\7"..., 472}], 1) = 472
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "\34\247\262\2O\0\200\3#\0\0\0\224\246\336\2\0\0\0\0\0\0\0\0\t\0\0\0\0\0\0\0\1"..., 4096) = 64
read(3, 0x1257874, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], [3], NULL, NULL)         = 1 (out [3])
writev(3, [{"\f\0\4\0v\0\200\3\4\0\200\3$\0\0\0\f\0\4\0u\0\200\3\1\0\200\3$\0\0\0\f"..., 648}], 1) = 648
select(4, [3], [], NULL, NULL)          = 1 (in [3])

strace -o output_user /usr/bin/xpdf

output_user

select(4, [3], [3], NULL, NULL)         = 1 (out [3])
writev(3, [{"5\30\4\0\310\0\200\3\240\0\200\0030\0000\0007\30\6\0\311\0\200\3\310\0\200\3\f\0\0\0\1"..., 40}, {"H\2\6\t\310\0\200\3\311\0\200\0030\0000\0\0\0\0\0\0\30\0\0\0\0\0\0\0\0\0\0\0"..., 9240}], 2) = 9280
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
gettid()                                = 6315
tgkill(6315, 6315, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++

For some reason, earliel on in the trace log, xpdf tries to access stuff in my normal home directory even when started with sudo.

Edit:

gdb says:

Warning: Cannot convert string "-*-times-medium-r-normal--16-*-*-*-*-*-iso8859-1" to type FontStruct

---Type <return> to continue, or q <return> to quit---
Program received signal SIGABRT, Aborted.
0x00007fb08ea3c0c5 in raise () from /lib/libc.so.6

But that warning about converting string is shown with sudo also, but xpdf keeps on runing despite the warning, so I guess it's not a font issue?

Last edited by peabrain (2009-01-30 01:32:03)

Offline

#7 2009-01-30 01:23:31

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

Re: xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

Not to hijack the thread, but I have had similiar problems with other programs, but these are mostly games.


Somewhere, just out of sight, the Penguins are gathering!

Offline

#8 2009-01-30 02:23:14

peabrain
Member
Registered: 2005-08-08
Posts: 42

Re: xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

I don't know about Slammer64's situation, but the thing here seems to be that this happens only in KDE 4.2.

I tried to run xpdf in fvwm and twm as a normal user, and everything worked. In KDE 4.2. I have to 'sudo xpdf', or else it aborts.

Also, it's not related to my settings in KDE. I created a new user with an empty home directory, and xpdf aborted.

Anyhow seems to be a solely KDE related issue.

Could anyone else with an up-to-date KDE 4.2. installation test whether or not xpdf works?

Last edited by peabrain (2009-01-30 02:28:34)

Offline

#9 2009-01-30 02:41:37

Slammer64
Member
From: Ozark Mountains of Missouri
Registered: 2007-07-28
Posts: 113

Re: xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

Same here, KDE 4.2 on x86_64

Last edited by Slammer64 (2009-01-30 02:41:51)


Somewhere, just out of sight, the Penguins are gathering!

Offline

#10 2009-01-30 02:48:54

peabrain
Member
Registered: 2005-08-08
Posts: 42

Re: xpdf aborts unless sudoed (KDE only? Anyone else with KDE 4.2. ?)

Thanks for the answer.

x86_64 here too.

Offline

Board footer

Powered by FluxBB