Displaying 20 results from an estimated 32 matches for "__stack_chk_fail".
2016 Jun 30
2
Implementing stack probes
I am trying to implement stack probes for our SHAVE target, and I see that
the compiler injects references to '__stack_chk_guard' and
'__stack_chk_fail'. The code that gets generated is horribly wrong, but in
order to understand how to fix it I was wondering if there is a clear
statement of how the mechanism is supposed to work?
The variable '__stack_chk_guard' appears to be a pointer to an unsigned
integer. Where is this suppose...
2006 Nov 20
1
compilation bug
..._in.o
/home/test1/xen-unstable/xen/drivers/built_in.o
/home/test1/xen-unstable/xen/arch/x86/built_in.o -o
/home/test1/xen-unstable/xen/xen-syms
/home/test1/xen-unstable/xen/common/built_in.o: In function `do_domctl'':
/home/test1/xen-unstable/xen/common/domctl.c:656: undefined reference
to `__stack_chk_fail''
/home/test1/xen-unstable/xen/common/domctl.c:656: relocation truncated
to fit: R_X86_64_PLT32 against undefined symbol `__stack_chk_fail''
/home/test1/xen-unstable/xen/common/built_in.o: In function `cmdline_parse'':
/home/test1/xen-unstable/xen/common/kernel.c:84: undefin...
2015 Jul 27
0
R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'
...-libgcc -o MyPi.dll tmp.def Fpi.o
> -Ld:/RCompile/r-compiling/local/local320/lib/x64
> -Ld:/RCompile/r-compiling/local/local320/lib
> -LC:/Users/IMARTI~1/DOCUME~1/R/R-32~1.1/bin/x64 -lR
> Fpi.o: In function `__fortranpi_MOD_dboard':
> Fpi.f90:(.text+0xd7): undefined reference to `__stack_chk_fail'
> Fpi.o: In function `pi_':
> Fpi.f90:(.text+0x249): undefined reference to `__stack_chk_fail'
> collect2: ld returned 1 exit status
> no DLL was created
> ERROR: compilation failed for package 'MyPi'* removing
> 'C:/Users/IMartinez/Documents/R/R-3.2.1/lib...
2016 Jun 30
1
Implementing stack probes
On Thu, Jun 30, 2016 at 8:29 AM, Martin J. O'Riordan via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I am trying to implement stack probes for our SHAVE target, and I see that
> the compiler injects references to ‘__stack_chk_guard’ and
> ‘__stack_chk_fail’. The code that gets generated is horribly wrong, but in
> order to understand how to fix it I was wondering if there is a clear
> statement of how the mechanism is supposed to work?
>
__stack_chk_guard is loaded and the resulting value is stored on the
stack. The location on the stack...
2015 Jul 27
2
R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'
...n -m64 -shared -s -static-libgcc -o MyPi.dll tmp.def Fpi.o
-Ld:/RCompile/r-compiling/local/local320/lib/x64
-Ld:/RCompile/r-compiling/local/local320/lib
-LC:/Users/IMARTI~1/DOCUME~1/R/R-32~1.1/bin/x64 -lR
Fpi.o: In function `__fortranpi_MOD_dboard':
Fpi.f90:(.text+0xd7): undefined reference to `__stack_chk_fail'
Fpi.o: In function `pi_':
Fpi.f90:(.text+0x249): undefined reference to `__stack_chk_fail'
collect2: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'MyPi'* removing
'C:/Users/IMartinez/Documents/R/R-3.2.1/library/MyPi'
Exited with st...
2013 Mar 09
1
Can't cross-compile from git now.
On 3/9/2013 06:20, Erik de Castro Lopo wrote:
> bat guano wrote:
>
>>
>> Hi
>> I have a problem now cross-compiling FLAC from latest git.
>> With Ubuntu 12.04 and g++-mingw-w64-i686 (4.6.3-1ubuntu5+5ubuntu1).
>>
>> I think that the problem might have been introduced on 5 Mar 2013
>> with commit 05609d5 (configure.ac : Add hardening compile options.)
2013 Mar 09
4
Can't cross-compile from git now.
...case below will trigger ___stack_chk_guard to emit.
int main(){
int i = 0;
char a[1000];
while(1){
a[i] = 0;
i++;
}
}
"i686-w64-mingw32-gcc -D_FORTIFY_SOURCE=2 -fstack-protector --param
ssp-buffer-size=4 -v" shows that libssp is already added.
Alternatively, to include __stack_chk_fail, use:
extern void __stack_chk_guard();
extern void __stack_chk_fail();
int main(){
void (*ssp[]) = {
__stack_chk_guard,
__stack_chk_fail
};
return 0;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size:...
2013 Mar 08
6
Can't cross-compile from git now.
...k_chk_guard'
/home/user/FLAC_build/flac-05609d5/src/libFLAC/.libs/libFLAC.a(ogg_helper.o):ogg_helper.c:(.text+0x45c): undefined reference to `___stack_chk_guard'
/home/user/FLAC_build/flac-05609d5/src/libFLAC/.libs/libFLAC.a(ogg_helper.o):ogg_helper.c:(.text+0x463): undefined reference to `___stack_chk_fail'
collect2: ld returned 1 exit status
make[3]: *** [test_libFLAC++.exe] Error 1
make[3]: Leaving directory `/home/user/FLAC_build/flac-05609d5/src/test_libFLAC++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/FLAC_build/flac-05609d5/src'
make[1]: *** [all-re...
2006 Oct 31
0
problem of installing tpm emulator in Xen
I want to install tpm emulator simulating the TPM hardware in Xen platform. But compiling tpm emulator brings such error.My kernel is 2.6.16.
#make ; make install
.........
Building modules, stage 2.
MODPOST
*** Warning: "__stack_chk_fail" [/root/xen-3.0.2/tools/vtpm/tpm_emulator/tpm_emulator.ko] undefined!
CC /root/xen-3.0.2/tools/vtpm/tpm_emulator/tpm_emulator.mod.o
LD [M] /root/xen-3.0.2/tools/vtpm/tpm_emulator/tpm_emulator.ko
inserting module into linux kernel have following errors:
#modprobe tpm_emulator startup...
2006 Mar 06
1
Unable to start Asterisk 1.2.5 with Asterisk-Addons 1.2.1
...[res_crypto.so] => (Cryptographic Digital Signatures)
-- Loaded PUBLIC key 'iaxtel'
-- Loaded PUBLIC key 'freeworlddialup'
[res_config_mysql.so]Mar 6 05:18:23 WARNING[12779]: loader.c:325
__load_resource: /usr/lib/asterisk/modules/res_config_mysql.so: undefined
symbol: __stack_chk_fail
Mar 6 05:18:23 WARNING[12779]: loader.c:554 load_modules: Loading module
res_config_mysql.so failed!
End===================================
Can someone suggest a solution.
Regards,
Sharath Chandra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium...
2013 Feb 20
3
[LLVMdev] Is va_arg correct on Mips backend?
...$BB0_1
nop
$BB0_6:
lw $1, 0($3)
lw $3, 56($sp)
bne $1, $3, $BB0_8
lw $2, 40($sp)
# BB#7: # %SP_return
lw $ra, 60($sp) # 4-byte Folded Reload
jr $ra
addiu $sp, $sp, 64
$BB0_8: # %CallStackCheckFailBlk
lw $25, %call16(__stack_chk_fail)($gp)
jalr $25
nop
.set at
.set macro
.set reorder
.end _Z5sum_iiz
$tmp4:
.size _Z5sum_iiz, ($tmp4)-_Z5sum_iiz
.cfi_endproc
.globl main
.align 2
.type main, at function
.set nomips16 # @main
.ent main
main:
.cfi_startproc
.frame $sp,48,$ra
.mask 0x80000000,-4
.fmas...
2013 Feb 20
0
[LLVMdev] Is va_arg correct on Mips backend?
...lw $3, 56($sp)
> bne $1, $3, $BB0_8
> lw $2, 40($sp)
> # BB#7: # %SP_return
> lw $ra, 60($sp) # 4-byte Folded Reload
> jr $ra
> addiu $sp, $sp, 64
> $BB0_8: # %CallStackCheckFailBlk
> lw $25, %call16(__stack_chk_fail)($gp)
> jalr $25
> nop
> .set at
> .set macro
> .set reorder
> .end _Z5sum_iiz
> $tmp4:
> .size _Z5sum_iiz, ($tmp4)-_Z5sum_iiz
> .cfi_endproc
>
> .globl main
> .align 2
> .type main, at function
> .set nomips16 # @main
> .ent main
> mai...
2007 Nov 02
4
Should I report my problem in Bugzilla? Outcast problem.
Hello everybody!
I'm trying to play Outast with wine 0.9.48 and wine fails with :
Can't find master volume control
fixme:win:EnumDisplayDevicesW ((null),0,0x34f820,0x00000000), stub!
fixme:d3d:IWineD3DDeviceImpl_Release (0x1352c0) Device released with
resources still bound, acceptable but unexpected
fixme:d3d:dumpResources Leftover resource 0x134748 with type
1,WINED3DRTYPE_SURFACE
2009 Mar 10
2
[LLVMdev] Stack smashing
...80cd430 in __kernel_vsyscall ()
#1 0xb7df28a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7df4268 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7e3016d in ?? () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7ec16d8 in __fortify_fail () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7ec1690 in __stack_chk_fail () from /lib/tls/i686/cmov/libc.so.6
#6 0x0852f7d3 in llvm::JIT::runFunction ()
*
Unfortunately, I am completely unfamiliar with stack smashing. Has anyone seen
anything like this before in the context of LLVM and can they shed any light
on this issue?
Many thanks,
--
Dr Jon Harrop, Flying Fr...
2018 Jan 27
0
[RFC] Improving compact x86-64 compact unwind descriptors
Hi John & Ron, I read through the proposal and had a couple of quick observations.
1. The proposed encoding assumes that the epilogue instructions always come at the end of the function -- or rather, just before the next function. If there is a stack protector __stack_chk_fail sequence, or there is NOP padding between functions, then the epilogue cannot be expressed. The proposed encoding allows for instructions scheduled before the prologue, as long as they're guaranteed to never throw an exception or spill registers, but there's no similar affordance for after...
2018 Dec 27
1
FreeBSD, Libmd5, samba 4.9.4 & "smbclient -L" (using password) -> core dump
...so.0
> libwwwcache.so.0
> Annotations :
> FreeBSD_version: 1102000
> repo_type : binary
> repository : FreeBSD
GDB backtrace:
(gdb) bt
#0 0x000000080495898a in kill () from /lib/libc.so.7
#1 0x0000000804958940 in ?? () from /lib/libc.so.7
#2 0x00000008049588b0 in __stack_chk_fail () from /lib/libc.so.7
#3 0x000000080314572b in hmac_md5_final (digest=digest at entry=0x7fffffffd320 "\a\203f\243y6f\331\063$\027\004 at CD\252\005\226\263\003\b", ctx=0x7fffffffd190,
ctx at entry=0x0) at ../lib/crypto/hmacmd5.c:101
#4 0x00000008092a01a0 in ntv2_owf_gen (owf=owf at...
2009 Apr 12
4
Problem to compile wine on hardened sources
....28-hardened-r7 #1 SMP Mon Apr 6 17:41:50 CEST 2009 x86_64
gcc -> x86_64-pc-linux-gnu-3.4.6-hardened
Code:
__bb_init_func':
preloader.c:(.text+0x4f): undefined reference to `__guard'
preloader.c:(.text+0x70): undefined reference to `__stack_smash_handler'
preloader.o: In function `__stack_chk_fail_local':
preloader.c:(.text+0x8e): undefined reference to `__guard'
preloader.c:(.text+0xaf): undefined reference to `__stack_smash_handler'
preloader.o: In function `__stack_chk_fail':
preloader.c:(.text+0xcd): undefined reference to `__guard'
preloader.c:(.text+0xee): undefined...
2013 Oct 08
1
OT: errors compiling kernel module as a rpm package
...a_put) = 0x3e2e6f8c kernel(__nla_reserve) =
0x391515a6 kernel(__per_cpu_offset) = 0x32047ad5
kernel(__pskb_pull_tail) = 0xaa1b9b4e kernel(__put_net) = 0xcb27f3de
kernel(__secpath_destroy) = 0x430555cc kernel(__skb_checksum_complete)
= 0xcf0b750c kernel(__skb_warn_lro_forwarding) = 0x4d288688
kernel(__stack_chk_fail) = 0xf0fdf6cb kernel(__wake_up) = 0x642e54ac
kernel(_read_lock) = 0x1a75caa3 kernel(_spin_lock) = 0x973873ab
kernel(_spin_lock_bh) = 0x93cbd1ec kernel(_spin_lock_irq) = 0xecde1418
kernel(_spin_lock_irqsave) = 0x712aa29b kernel(_spin_unlock_bh) =
0x3aa1dbcf kernel(_spin_unlock_irqrestore) = 0x4b07e7...
2012 Mar 27
1
[PATCH] tools/configure: add options to pass EXTRA_CLFAGS
# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# Date 1332851995 -7200
# Node ID 9c6337771520b390ed624fa6b6b2f2edc8042701
# Parent d9e6e8632bb6b9a2144e7e148bc7ea53ea4933fd
tools/configure: add options to pass EXTRA_CLFAGS
Currently qemu-xen will be compiled with CFLAGS only if CFLAGS was
already in the environment during make invocation. If CFLAGS is in
environment then make will
2009 Mar 10
0
[LLVMdev] Stack smashing
...all ()
> #1 0xb7df28a0 in raise () from /lib/tls/i686/cmov/libc.so.6
> #2 0xb7df4268 in abort () from /lib/tls/i686/cmov/libc.so.6
> #3 0xb7e3016d in ?? () from /lib/tls/i686/cmov/libc.so.6
> #4 0xb7ec16d8 in __fortify_fail () from /lib/tls/i686/cmov/libc.so.6
> #5 0xb7ec1690 in __stack_chk_fail () from /lib/tls/i686/cmov/libc.so.6
> #6 0x0852f7d3 in llvm::JIT::runFunction ()
> *
>
> Unfortunately, I am completely unfamiliar with stack smashing. Has anyone seen
> anything like this before in the context of LLVM and can they shed any light
> on this issue?
>
> Many...