[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] uisp with segmentation fault
From: |
Christoph Plattner |
Subject: |
Re: [avr-gcc-list] uisp with segmentation fault |
Date: |
Tue, 20 Nov 2001 21:15:39 +0100 |
I have not seen it from the strace, but have you thouht about the fact,
that you MUST be `root' !!
The uisp uses the `ioperm' call to get access to the io-ports. This call
need's root priviledges. From strace I see, that you are the user "500"
not "0" !! (getuid !)
Switch to the user root and uisp will work.
With friendly regards
Christoph P.
Klaus Rudolph wrote:
>
> Hi all,
>
> i have a system with an older linux installation (suse 6.x) where a
> gcc 2.91 is installed. On an other linux box i have installed a
> 2.92.2 compiler. Here i compiled the uisp with the
> --static option to link it staticly. I copied this static uisp to
> my old box and there it crashes with segmentation fault.
>
> with:
> strace -fo dump uisp -dstk200 --erase
> i got:
> 1419 execve("./uisp", ["uisp", "-dstk200", "--erase"], [/* 68 vars */])
> = 0
> 1419 fcntl(0, F_GETFD) = 0
> 1419 fcntl(1, F_GETFD) = 0
> 1419 fcntl(2, F_GETFD) = 0
> 1419 geteuid() = 500
> 1419 getuid() = 500
> 1419 getegid() = 100
> 1419 getgid() = 100
> 1419 brk(0) = 0x80a49d4
> 1419 brk(0x80a49f4) = 0x80a49f4
> 1419 brk(0x80a5000) = 0x80a5000
> 1419 getpid() = 1419
> 1419 --- SIGSEGV (Speicherzugriffsfehler) ---
> 1419 +++ killed by SIGSEGV +++
> ~
>
> Any ideas? Is it not possible to link a source static and use it on an
> older box?
>
> bye
> Klaus
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list
--
-------------------------------------------------------
private: address@hidden
company: address@hidden