Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@localhost:~# gdb ./test_egl core
- GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
- Copyright (C) 2012 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "arm-linux-gnueabi".
- For bug reporting instructions, please see:
- <http://bugs.launchpad.net/gdb-linaro/>...
- Reading symbols from /root/test_egl...done.
- [New LWP 1506]
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/lib/arm-linux-gnueabi/libthread_db.so.1".
- Core was generated by `./test_egl'.
- Program terminated with signal 11, Segmentation fault.
- #0 memset () at ../ports/sysdeps/arm/memset.S:42
- 42 ../ports/sysdeps/arm/memset.S: No such file or directory.
- (gdb) bt
- #0 memset () at ../ports/sysdeps/arm/memset.S:42
- #1 0x400366c8 in allocate_stack (stack=<synthetic pointer>,
- pdp=<synthetic pointer>, attr=0xbed5efb4) at allocatestack.c:397
- #2 __pthread_create_2_1 (newthread=0xbed5efcc, attr=0xbed5efb4,
- start_routine=0x402b79ad, arg=0x9ee830) at pthread_create.c:462
- #3 0x402b7ec8 in ?? ()
- #4 0x402b7ec8 in ?? ()
- Backtrace stopped: previous frame identical to this frame (corrupt stack?)
- (gdb)
- static int my_pthread_attr_destroy(pthread_attr_t *__attr)
- {
- pthread_attr_t *realattr = (pthread_attr_t *) *(int *) __attr;
- realattr = malloc(sizeof(pthread_attr_t));
- *((int *)__attr) = (int) realattr;
- return pthread_attr_destroy(realattr);
- }
- static int my_pthread_attr_setdetachstate(pthread_attr_t *__attr, int detachstate)
- {
- pthread_attr_t *realattr = (pthread_attr_t *) *(int *) __attr;
- realattr = malloc(sizeof(pthread_attr_t));
- *((int *)__attr) = (int) realattr;
- return pthread_attr_setdetachstate(realattr, detachstate);
- }
- static int my_pthread_attr_setstacksize(pthread_attr_t *__attr, size_t stacksize)
- {
- pthread_attr_t *realattr = (pthread_attr_t *) *(int *) __attr;
- realattr = malloc(sizeof(pthread_attr_t));
- *((int *)__attr) = (int) realattr;
- return pthread_attr_setstacksize (realattr,stacksize);
- }
- static int my_pthread_attr_init(pthread_attr_t *__attr)
- {
- pthread_attr_t *realattr = (pthread_attr_t *) *(int *) __attr;
- realattr = malloc(sizeof(pthread_attr_t));
- *((int *)__attr) = (int) realattr;
- return pthread_attr_init(realattr);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement