[TAG] segmentation fault

Mike Orr mso at oz.net
Wed Sep 28 02:06:28 MSD 2005


Brian Bilbrey wrote:

>j.bakshi wrote:
> [snipped]
>  
>
>>but there is no error . what may be the reason of this segmentation-fault
>>?
>>    
>>
>
>My best guess is that you're trying to run a GUI tool as root when your
>xauthority is only for the user that's logged in. I would imagine that if
>you logged in as root, started X and run these programs, they would work
>fine for you. One possible solution to your problem would be using xhost
>to allow other users (including root on the local machine) to connect with
>your X session. Type 'man xhost' to learn more.
>  
>


This could be, but if so it indicates a bug in the program.  Programs 
should never segfault.  If they lack a required resource, they should 
report an error and quit.  Most X programs would say "Cannot open 
DISPLAY" in this circumstance.

I should have mentioned bugs as the other main reason for segfaults.

-- Mike







More information about the TAG mailing list