You are not logged in.

#1 2009-05-20 04:14:54

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

[WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

Is there ANY reason this would happen? Things have been really out of control lately it seems and I've got no idea what's up.

[crew@myhost ~]$ leafpad
Segmentation fault
[crew@myhost ~]$

Last edited by SomeGuyDude (2009-05-21 03:28:56)


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#2 2009-05-20 04:30:30

pharcyde
Member
From: Connecticut
Registered: 2009-03-13
Posts: 88

Re: [WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

This happened to me awhile ago. I don't know how I fixed it but it works now.

Offline

#3 2009-05-20 04:31:29

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

Try running it under GDB and see where it's segfaulting.

Offline

#4 2009-05-20 04:35:44

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: [WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

I have no clue how to use GDB and its documentation is impenetrable at 12:30am.  What the hell do I type into this thing?


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#5 2009-05-20 05:14:16

Statix
Member
From: Hangzhou, China
Registered: 2008-02-16
Posts: 240

Re: [WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

Not sure if it'll give you the details you need, but you can run:

gdb leafpad

Then in gdb's interactive command line:

run


Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.

Offline

#6 2009-05-20 05:16:56

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

gdb leafpad

When it gets to the prompt, type 'run'. You'll probably get a bunch of stuff about 'no debugging symbols found'. Just hit return. Keep doing that until leafpad starts. After it segfaults, type 'where'. That'll give you a stack trace.

This is a good reference to have around:

http://live.gnome.org/GettingTraces

Offline

#7 2009-05-20 13:27:45

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: [WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

Hokay, that got me this:

Program received signal SIGSEGV, Segmentation fault.
0x00007fad372ef112 in ____strtoll_l_internal () from /lib/libc.so.6
(gdb) where
#0  0x00007fad372ef112 in ____strtoll_l_internal () from /lib/libc.so.6
#1  0x000000000040825e in ?? ()
#2  0x00000000004086e3 in ?? ()
#3  0x00007fad372d79ed in __libc_start_main () from /lib/libc.so.6
#4  0x0000000000408109 in ?? ()
#5  0x00007fff41e5e658 in ?? ()
#6  0x000000000000001c in ?? ()
#7  0x0000000000000001 in ?? ()
#8  0x00007fff41e5ead9 in ?? ()
#9  0x0000000000000000 in ?? ()
(gdb)

Anything I can actually DO with this?


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#8 2009-05-20 20:33:59

jorpheus
Member
Registered: 2008-11-07
Posts: 98

Re: [WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

pharcyde wrote:

This happened to me awhile ago. I don't know how I fixed it but it works now.

Same here. It died when I installed SciTE, but didn't come to life when I tried removing it. Reinstallation didn't work either. If I remember correctly, there was a problem with one of the (Murrina) themes, but Leafpad didn't report it, some other program did (console output). Oddly enough, everything else worked perfectly, so I didn't think it was a big deal. But it's possible it was really magic.

Last edited by jorpheus (2009-05-20 20:34:41)

Offline

#9 2009-05-21 03:17:29

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: [WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

...I deleted the ~/.config/leafpad

It works again as USER, but not as ROOT.

Last edited by SomeGuyDude (2009-05-21 03:28:32)


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#10 2009-05-21 04:00:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: [WAIT NOT SOLVED] Leafpad is segfaulting, but only when run as root.

There is probably a config needing delete in your root's home directory

Offline

Board footer

Powered by FluxBB