This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIG32/SIGTRAP issues


Hi,

On Tue, 2002-12-03 at 18:24, Daniel Jacobowitz wrote:
> Funny, no one reports this for months and this is the third report I've
> seen in a week...  At the bottom of this message is a workaround.  I'm
> not proposing it be committed, since it's obviously pretty gross.  The
> real issue is the concept of thread_stratum and core_stratum as
> separate from process_stratum.  I don't think it's appropriate - if we
> are debugging a core and process at the same time this isn't how it
> should work.  This ties in to all the make-targets-a-real-stack thing -
> I'm not entirely convinced on that score either.

Okay, making progress. This takes care of the SIG32/SIGTRAP issues,
though now it looks like PPC is stuck on SIG33 issues.

Running the same test-case from yesterday, if I run the shared version
twice in a row, gdb segfaults. If I run the shared or static version of
the app under gdb under gdb, I get SIG33 (which occurs in different
locations per-thread if its static).

For shared, I see the following:

bash-2.05# ./gdb
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "powerpc-linux".
(gdb) set prompt (top-gdb)
(top-gdb) set verbose
(top-gdb) file ./gdb
Reading symbols from ./gdb...done.
(top-gdb) run
Starting program: /home/root/gdb
Reading symbols from /usr/lib/libncurses.so.5...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld.so.1...done.
Reading in symbols for dl-debug.c... and rtld.c... and
../sysdeps/generic/dl-cache.c... and dl-init.c...done.
Reading symbols from /lib/libthread_db.so.1...done.
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "powerpc-linux".
(gdb) set verbose
(gdb) file ./test-static
Reading symbols from ./test-static...done.
(gdb) run
Starting program: /home/root/test-static
Reading in symbols for soinit.c...done.
[New Thread 1024 (LWP 729)]
Enter the number of threads reqd(<=1024): 2
Starting thread 0
[New Thread 2049 (LWP 730)]
Reading in symbols for events.c... and init.c... and join.c... and
signals.c... and errno.c... and manager.c... and specific.c... and
pthread.c...done.
[New Thread 1026 (LWP 731)]
Starting real thread 0
created thread 0
Starting thread 1
[New Thread 2051 (LWP 732)]
Ending thread
Starting real thread 1
created thread 1
Reading in symbols for ../../package/gdb/lin-lwp.c... and
../../package/gdb/main.c... and init.c... and
../../package/gdb/values.c... and
../../package/gdb/source.c... and ../../package/gdb/infrun.c... and
../../package/gdb/valops.c... and ../../package/gdb/eval.c... and
../../package/gdb/symfile.c... and ../../package/gdb/printcmd.c... and
../../package/gdb/valprint.c...done.

Program received signal SIG33, Real-time event 33.
sigchld_handler (signo=17) at ../../package/gdb/lin-lwp.c:1450
1450    ../../package/gdb/lin-lwp.c: No such file or directory.
        in ../../package/gdb/lin-lwp.c
(top-gdb) Ending thread
(top-gdb) bt
Reading in symbols for ../sysdeps/unix/sysv/linux/sigsuspend.c... and
../sysdeps/unix/sysv/linux/powerpc/sysdep.c... and
../sysdeps/unix/sysv/linux/init-first.c... and
../sysdeps/powerpc/elf/libc-start.c... and
../sysdeps/generic/sigjmp.c... and iconv.c... and iconv_open.c...
and ../sysdeps/unix/sysv/linux/signal.c... and
../sysdeps/posix/raise.c... and
../sysdeps/unix/sysv/linux/sigprocmask.c...done.
Reading in symbols for ../../package/gdb/thread-db.c... and
../../package/gdb/solib-legacy.c... and
../../package/gdb/rs6000-tdep.c... and
../../package/gdb/gdbarch.c... and ../../package/gdb/proc-service.c...
and ../../package/gdb/core-regset.c... and ../../package/gdb/remote.c...
and
../../package/gdb/inf-loop.c... and ../../package/gdb/infcmd.c... and
../../package/gdb/linux-proc.c... and ../../package/gdb/utils.c... and
../../package/gdb/event-top.c... and
../../package/gdb/linespec.c...done.
Reading in symbols for ../../package/gdb/inftarg.c...done.
Reading in symbols for ../../package/gdb/cli/cli-decode.c... and
../../package/gdb/top.c... and ../../package/gdb/symtab.c... and
../../package/gdb/arch-utils.c... and ../../package/gdb/gcore.c...done.
Reading in symbols for ../../package/readline/callback.c... and
../../package/readline/readline.c... and targ-map.c... and
../../package/gdb/stack.c... and
../../../package/sim/ppc/sim_calls.c... and
../../../package/sim/ppc/../common/callback.c... and
../../package/gdb/infptrace.c... and
../../package/gdb/inflow.c... and
../../../package/sim/ppc/psim.c...done.
Reading in symbols for ../../package/gdb/event-loop.c...done.
#0  sigchld_handler (signo=17) at ../../package/gdb/lin-lwp.c:1450
#1  <signal handler called>
#2  0x0fdbf3b4 in __syscall_rt_sigsuspend () from /lib/libc.so.6
#3  0x0fdbdffc in __sigsuspend (set=0x103d81fc) at
../sysdeps/unix/sysv/linux/sigsuspend.c:54
#4  0x1009b02c in lin_lwp_wait (ptid={pid = -1, lwp = 0, tid = 0},
ourstatus=0x7ffff128) at ../../package/gdb/lin-lwp.c:1183
#5  0x100ee000 in thread_db_wait (ptid={pid = 2147479840, lwp =
269410304, tid = -1}, ourstatus=0x7ffff128) at
../../package/gdb/thread-db.c:751
#6  0x1007540c in wait_for_inferior () at
../../package/gdb/infrun.c:1238
#7  0x10075194 in proceed (addr=1, siggnal=TARGET_SIGNAL_0, step=0) at
../../package/gdb/infrun.c:1037
#8  0x100e872c in child_create_inferior (exec_file=0xfffffffc <Address
0xfffffffc out of bounds>, allargs=0x8 <Address 0x8 out of bounds>,
env=0x1)
    at ../../package/gdb/inftarg.c:474
#9  0x1009b664 in lin_lwp_create_inferior (exec_file=0xfffffffc <Address
0xfffffffc out of bounds>, allargs=0x8 <Address 0x8 out of bounds>,
env=0x1)
    at ../../package/gdb/lin-lwp.c:1330
#10 0x100ee8e0 in thread_db_create_inferior (exec_file=0x10412b78
"/home/root/test-static", allargs=0x104e0510 "", env=0x103f8330)
    at ../../package/gdb/thread-db.c:901
#11 0x10071884 in run_command (args=0x0, from_tty=273548560) at
../../package/gdb/infcmd.c:463
#12 0x1013d9ac in do_cfunc (c=0xfffffffc, args=0x8 <Address 0x8 out of
bounds>, from_tty=1) at ../../package/gdb/cli/cli-decode.c:50
#13 0x100c9940 in execute_command (p=0x103ee1d3 "", from_tty=1) at
../../package/gdb/top.c:715
#14 0x100817bc in command_handler (command=0x103ee1d0 "") at
../../package/gdb/event-top.c:504
#15 0x10081f68 in command_line_handler (rl=0x103d68e8 "") at
../../package/gdb/event-top.c:802
#16 0x102f3008 in rl_callback_read_char () at
../../package/readline/callback.c:114
#17 0x10080b08 in rl_callback_read_char_wrapper (client_data=0xfffffffc)
at ../../package/gdb/event-top.c:168
#18 0x10081624 in stdin_event_handler (error=-4, client_data=0xfffffffc)
at ../../package/gdb/event-top.c:418
#19 0x100e4158 in handle_file_event (event_file_desc=-4) at
../../package/gdb/event-loop.c:714
#20 0x100e39b4 in process_event () at ../../package/gdb/event-loop.c:335
#21 0x100e3a0c in gdb_do_one_event (data=0xfffffffc) at
../../package/gdb/event-loop.c:372
#22 0x100c9424 in do_catch_errors (uiout=Reading in symbols for
../../package/gdb/ui-out.c...done.
0xfffffffc, data=0x8) at ../../package/gdb/top.c:491
#23 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff6c8, func_val=0x7ffff6d0,
func_caught=0x7ffff6d4,
    errstring=0x1059a350 "", mask=6) at ../../package/gdb/top.c:423
#24 0x100c9470 in catch_errors (func=0xfffffffc, func_args=0x8,
errstring=0x1059a350 "", mask=272564224) at ../../package/gdb/top.c:503
#25 0x100e3a74 in start_event_loop () at
../../package/gdb/event-loop.c:416
#26 0x10080c24 in cli_command_loop () at
../../package/gdb/event-top.c:200
#27 0x100465b4 in captured_command_loop (data=0xfffffffc) at
../../package/gdb/main.c:94
#28 0x100c9424 in do_catch_errors (uiout=0xfffffffc, data=0x8) at
../../package/gdb/top.c:491
#29 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff968, func_val=0x7ffff970,
func_caught=0x7ffff974,
    errstring=0x1059a350 "", mask=6) at ../../package/gdb/top.c:423
#30 0x100c9470 in catch_errors (func=0xfffffffc, func_args=0x8,
errstring=0x1059a350 "", mask=272564224) at ../../package/gdb/top.c:503
#31 0x10047100 in captured_main (data=0xfffffffc) at
../../package/gdb/main.c:723
#32 0x100c9424 in do_catch_errors (uiout=0xfffffffc, data=0x8) at
../../package/gdb/top.c:491
#33 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x103ade60, func_args=0x7ffffd38, func_val=0x7ffffd40,
func_caught=0x7ffffd44,
    errstring=0x1059a350 "", mask=6) at ../../package/gdb/top.c:423
#34 0x100c9470 in catch_errors (func=0xfffffffc, func_args=0x8,
errstring=0x1059a350 "", mask=272564224) at ../../package/gdb/top.c:503
#35 0x10047134 in main (argc=-4, argv=0x8) at
../../package/gdb/main.c:734
#36 0x0fda9e74 in __libc_start_main (argc=1, ubp_av=0x7ffffdc4,
ubp_ev=0x1, auxvec=0x7ffffe0c, rtld_fini=0xfffffffc, stinfo=0x10047104,
    stack_on_entry=0xfdbdfe8) at ../sysdeps/powerpc/elf/libc-start.c:119
(top-gdb) c
Continuing.

Program received signal SIG33, Real-time event 33.
sigchld_handler (signo=17) at ../../package/gdb/lin-lwp.c:1450
1450    in ../../package/gdb/lin-lwp.c
(top-gdb) c
Continuing.

Program exited with code 02.
(gdb) run
Starting program: /home/root/test-static
[New Thread 1024 (LWP 733)]
Enter the number of threads reqd(<=1024): 2
Starting thread 0
[New Thread 2049 (LWP 734)]
[New Thread 1026 (LWP 735)]
Starting real thread 0
created thread 0
Starting thread 1
[New Thread 2051 (LWP 736)]
Ending thread

Program received signal SIG33, Real-time event 33.
0x0fe59d44 in __syscall_ptrace () from /lib/libc.so.6
(top-gdb) bt
Reading in symbols for ../sysdeps/unix/sysv/linux/ptrace.c... and
vfprintf.c... and strfmon.c... and gconv_trans.c... and
gconv_simple.c... and gconv_open.c...
 and gconv_conf.c... and gconv_db.c... and gconv_builtin.c... and
gconv_close.c... and gconv.c... and setlocale.c... and version.c... and
lc-time.c... and
duplocale.c... and mb_cur_max.c... and localeconv.c... and
findlocale.c... and ../sysdeps/generic/abort.c... and
../sysdeps/unix/sysv/linux/sigaction.c... and
../sysdeps/generic/check_fds.c... and
../sysdeps/unix/sysv/linux/sigqueue.c... and
../sysdeps/posix/cuserid.c... and ../sysdeps/posix/ctermid.c... and
bindtextdom.c... and assert.c... and ../sysdeps/generic/getenv.c... and
_itoa.c... and strtof.c... and erand48_r.c... and ctype-info.c... and
lc-ctype.c...
and ../sysdeps/ieee754/dbl-64/s_isinf.c... and
../sysdeps/generic/strtol.c...done.
#0  0x0fe59d44 in __syscall_ptrace () from /lib/libc.so.6
#1  0x0fe53ab4 in ptrace (request=PTRACE_CONT) at
../sysdeps/unix/sysv/linux/ptrace.c:107
#2  0x100e7a4c in child_resume (ptid=Cannot access memory at address 0x0
) at ../../package/gdb/infptrace.c:270
#3  0x100997a8 in resume_callback (lp=0x104bc380, data=0x2df) at
../../package/gdb/lin-lwp.c:553
#4  0x10098b44 in iterate_over_lwps (callback=0x1009973c
<resume_callback>, data=0x0) at ../../package/gdb/lin-lwp.c:288
#5  0x10099990 in lin_lwp_resume (ptid={pid = 734, lwp = 0, tid = 0},
step=0, signo=TARGET_SIGNAL_0) at ../../package/gdb/lin-lwp.c:624
#6  0x100edcd4 in thread_db_resume (ptid={pid = 2147479552, lwp =
269409492, tid = 734}, step=0, signo=TARGET_SIGNAL_0) at
../../package/gdb/thread-db.c:668
#7  0x10074ef8 in resume (step=0, sig=TARGET_SIGNAL_0) at
../../package/gdb/infrun.c:889
#8  0x10077be0 in keep_going (ecs=0x7ffff128) at
../../package/gdb/infrun.c:3226
#9  0x1007735c in handle_inferior_event (ecs=0x7ffff128) at
../../package/gdb/infrun.c:2870
#10 0x1007542c in wait_for_inferior () at
../../package/gdb/infrun.c:1241
#11 0x10075194 in proceed (addr=1, siggnal=TARGET_SIGNAL_0, step=0) at
../../package/gdb/infrun.c:1037
#12 0x100e872c in child_create_inferior (exec_file=0x0, allargs=0x2df
<Address 0x2df out of bounds>, env=0x1) at
../../package/gdb/inftarg.c:474
#13 0x1009b664 in lin_lwp_create_inferior (exec_file=0x0, allargs=0x2df
<Address 0x2df out of bounds>, env=0x1) at
../../package/gdb/lin-lwp.c:1330
#14 0x100ee8e0 in thread_db_create_inferior (exec_file=0x10412b78
"/home/root/test-static", allargs=0x104e0510 "", env=0x103f8330)
    at ../../package/gdb/thread-db.c:901
#15 0x10071884 in run_command (args=0x0, from_tty=273548560) at
../../package/gdb/infcmd.c:463
#16 0x1013d9ac in do_cfunc (c=0x0, args=0x2df <Address 0x2df out of
bounds>, from_tty=1) at ../../package/gdb/cli/cli-decode.c:50
#17 0x100c9940 in execute_command (p=0x103ee1d3 "", from_tty=1) at
../../package/gdb/top.c:715
#18 0x100817bc in command_handler (command=0x103ee1d0 "") at
../../package/gdb/event-top.c:504
#19 0x10081f68 in command_line_handler (rl=0x103d68e8 "") at
../../package/gdb/event-top.c:802
#20 0x102f3008 in rl_callback_read_char () at
../../package/readline/callback.c:114
#21 0x10080b08 in rl_callback_read_char_wrapper (client_data=0x0) at
../../package/gdb/event-top.c:168
#22 0x10081624 in stdin_event_handler (error=0, client_data=0x0) at
../../package/gdb/event-top.c:418
#23 0x100e4158 in handle_file_event (event_file_desc=0) at
../../package/gdb/event-loop.c:714
#24 0x100e39b4 in process_event () at ../../package/gdb/event-loop.c:335
#25 0x100e3a0c in gdb_do_one_event (data=0x0) at
../../package/gdb/event-loop.c:372
#26 0x100c9424 in do_catch_errors (uiout=0x0, data=0x2df) at
../../package/gdb/top.c:491
#27 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff6c8, func_val=0x7ffff6d0,
func_caught=0x7ffff6d4,
    errstring=0x0, mask=6) at ../../package/gdb/top.c:423
#28 0x100c9470 in catch_errors (func=0, func_args=0x2df, errstring=0x0,
mask=4) at ../../package/gdb/top.c:503
#29 0x100e3a74 in start_event_loop () at
../../package/gdb/event-loop.c:416
#30 0x10080c24 in cli_command_loop () at
../../package/gdb/event-top.c:200
#31 0x100465b4 in captured_command_loop (data=0x0) at
../../package/gdb/main.c:94
#32 0x100c9424 in do_catch_errors (uiout=0x0, data=0x2df) at
../../package/gdb/top.c:491
#33 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff968, func_val=0x7ffff970,
func_caught=0x7ffff974,
    errstring=0x0, mask=6) at ../../package/gdb/top.c:423
#34 0x100c9470 in catch_errors (func=0, func_args=0x2df, errstring=0x0,
mask=4) at ../../package/gdb/top.c:503
#35 0x10047100 in captured_main (data=0x0) at
../../package/gdb/main.c:723
#36 0x100c9424 in do_catch_errors (uiout=0x0, data=0x2df) at
../../package/gdb/top.c:491
#37 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x103ade60, func_args=0x7ffffd38, func_val=0x7ffffd40,
func_caught=0x7ffffd44,
    errstring=0x0, mask=6) at ../../package/gdb/top.c:423
#38 0x100c9470 in catch_errors (func=0, func_args=0x2df, errstring=0x0,
mask=4) at ../../package/gdb/top.c:503
#39 0x10047134 in main (argc=0, argv=0x2df) at
../../package/gdb/main.c:734
#40 0x0fda9e74 in __libc_start_main (argc=1, ubp_av=0x7ffffdc4,
ubp_ev=0x1, auxvec=0x7ffffe0c, rtld_fini=0, stinfo=0x10047104,
stack_on_entry=0xc)
    at ../sysdeps/powerpc/elf/libc-start.c:119
(top-gdb) c
Continuing.
Starting real thread 1
created thread 1
Ending thread

Program received signal SIG33, Real-time event 33.
sigchld_handler (signo=17) at ../../package/gdb/lin-lwp.c:1450
1450    in ../../package/gdb/lin-lwp.c
(top-gdb) c
Continuing.

Program exited with code 02.
(gdb) quit

Program exited normally.
(top-gdb) quit

and for static, the segfault is avoided, but SIG33 still happens:

bash-2.05# ./gdb
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "powerpc-linux".
(gdb) set prompt (top-gdb)
(top-gdb) set verbose
(top-gdb) file ./gdb
Reading symbols from ./gdb...done.
(top-gdb) run
Starting program: /home/root/gdb
Reading symbols from /usr/lib/libncurses.so.5...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld.so.1...done.
Reading in symbols for dl-debug.c... and rtld.c... and
../sysdeps/generic/dl-cache.c... and dl-init.c...done.
Reading symbols from /lib/libthread_db.so.1...done.
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "powerpc-linux".
(gdb) set verbose
(gdb) file ./test-shared
Reading symbols from ./test-shared...done.
(gdb) run
Starting program: /home/root/test-shared
Reading in symbols for soinit.c...done.
Reading symbols from /lib/libpthread.so.0...done.
[New Thread 1024 (LWP 715)]
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld.so.1...done.
Reading in symbols for dl-debug.c... and rtld.c... and
../sysdeps/generic/dl-cache.c... and dl-init.c...done.
Enter the number of threads reqd(<=1024): 2
Starting thread 0
[New Thread 2049 (LWP 716)]
Reading in symbols for events.c... and attr.c... and join.c... and
cancel.c...done.
[New Thread 1026 (LWP 717)]
Starting real thread 0
created thread 0
Starting thread 1
[New Thread 2051 (LWP 718)]
Ending thread
Starting real thread 1
created thread 1
Reading in symbols for ../../package/gdb/lin-lwp.c... and
../../package/gdb/main.c... and init.c... and
../../package/gdb/values.c... and
../../package/gdb/source.c... and ../../package/gdb/infrun.c... and
../../package/gdb/valops.c... and ../../package/gdb/eval.c... and
../../package/gdb/symfile.c... and ../../package/gdb/printcmd.c... and
../../package/gdb/valprint.c...done.

Program received signal SIG33, Real-time event 33.
sigchld_handler (signo=17) at ../../package/gdb/lin-lwp.c:1450
1450    ../../package/gdb/lin-lwp.c: No such file or directory.
        in ../../package/gdb/lin-lwp.c
(top-gdb) Ending thread
(top-gdb) bt
Reading in symbols for ../sysdeps/unix/sysv/linux/sigsuspend.c... and
../sysdeps/unix/sysv/linux/powerpc/sysdep.c... and
../sysdeps/unix/sysv/linux/init-first.c... and
../sysdeps/powerpc/elf/libc-start.c... and
../sysdeps/generic/sigjmp.c... and iconv.c... and iconv_open.c...
and ../sysdeps/unix/sysv/linux/signal.c... and
../sysdeps/posix/raise.c... and
../sysdeps/unix/sysv/linux/sigprocmask.c...done.
Reading in symbols for ../../package/gdb/thread-db.c... and
../../package/gdb/solib-legacy.c... and
../../package/gdb/rs6000-tdep.c... and
../../package/gdb/gdbarch.c... and ../../package/gdb/proc-service.c...
and ../../package/gdb/core-regset.c... and ../../package/gdb/remote.c...
and
../../package/gdb/inf-loop.c... and ../../package/gdb/infcmd.c... and
../../package/gdb/linux-proc.c... and ../../package/gdb/utils.c... and
../../package/gdb/event-top.c... and
../../package/gdb/linespec.c...done.
Reading in symbols for ../../package/gdb/inftarg.c...done.
Reading in symbols for ../../package/gdb/target.c...done.
Reading in symbols for ../../package/gdb/cli/cli-decode.c... and
../../package/gdb/top.c... and ../../package/gdb/symtab.c... and
../../package/gdb/arch-utils.c... and ../../package/gdb/gcore.c...done.
Reading in symbols for ../../package/readline/callback.c... and
../../package/readline/readline.c... and targ-map.c... and
../../package/gdb/stack.c... and
../../../package/sim/ppc/sim_calls.c... and
../../../package/sim/ppc/../common/callback.c... and
../../package/gdb/infptrace.c... and
../../package/gdb/inflow.c... and
../../../package/sim/ppc/psim.c...done.
Reading in symbols for ../../package/gdb/event-loop.c...done.
#0  sigchld_handler (signo=17) at ../../package/gdb/lin-lwp.c:1450
#1  <signal handler called>
#2  0x0fdbf3b4 in __syscall_rt_sigsuspend () from /lib/libc.so.6
#3  0x0fdbdffc in __sigsuspend (set=0x103d81fc) at
../sysdeps/unix/sysv/linux/sigsuspend.c:54
#4  0x1009b02c in lin_lwp_wait (ptid={pid = -1, lwp = 0, tid = 0},
ourstatus=0x7ffff138) at ../../package/gdb/lin-lwp.c:1183
#5  0x100ee000 in thread_db_wait (ptid={pid = 2147479856, lwp =
269410304, tid = -1}, ourstatus=0x7ffff138) at
../../package/gdb/thread-db.c:751
#6  0x1007540c in wait_for_inferior () at
../../package/gdb/infrun.c:1238
#7  0x10075194 in proceed (addr=0, siggnal=TARGET_SIGNAL_0, step=0) at
../../package/gdb/infrun.c:1037
#8  0x100e872c in child_create_inferior (exec_file=0xfffffffc <Address
0xfffffffc out of bounds>, allargs=0x8 <Address 0x8 out of bounds>,
env=0x1)
    at ../../package/gdb/inftarg.c:474
#9  0x100a98c4 in find_default_create_inferior (exec_file=0x10412b78
"/home/root/test-shared", allargs=0x10425720 "", env=0x103f8330)
    at ../../package/gdb/target.c:1216
#10 0x10071884 in run_command (args=0x0, from_tty=272783136) at
../../package/gdb/infcmd.c:463
#11 0x1013d9ac in do_cfunc (c=0xfffffffc, args=0x8 <Address 0x8 out of
bounds>, from_tty=1) at ../../package/gdb/cli/cli-decode.c:50
#12 0x100c9940 in execute_command (p=0x103ee1d3 "", from_tty=1) at
../../package/gdb/top.c:715
#13 0x100817bc in command_handler (command=0x103ee1d0 "") at
../../package/gdb/event-top.c:504
#14 0x10081f68 in command_line_handler (rl=0x103d68e8 "") at
../../package/gdb/event-top.c:802
#15 0x102f3008 in rl_callback_read_char () at
../../package/readline/callback.c:114
#16 0x10080b08 in rl_callback_read_char_wrapper (client_data=0xfffffffc)
at ../../package/gdb/event-top.c:168
#17 0x10081624 in stdin_event_handler (error=-4, client_data=0xfffffffc)
at ../../package/gdb/event-top.c:418
#18 0x100e4158 in handle_file_event (event_file_desc=-4) at
../../package/gdb/event-loop.c:714
#19 0x100e39b4 in process_event () at ../../package/gdb/event-loop.c:335
#20 0x100e3a0c in gdb_do_one_event (data=0xfffffffc) at
../../package/gdb/event-loop.c:372
#21 0x100c9424 in do_catch_errors (uiout=Reading in symbols for
../../package/gdb/ui-out.c...done.
0xfffffffc, data=0x8) at ../../package/gdb/top.c:491
#22 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff6c8, func_val=0x7ffff6d0,
func_caught=0x7ffff6d4,
    errstring=0x1076f0d0 "", mask=6) at ../../package/gdb/top.c:423
#23 0x100c9470 in catch_errors (func=0xfffffffc, func_args=0x8,
errstring=0x1076f0d0 "", mask=272564224) at ../../package/gdb/top.c:503
#24 0x100e3a74 in start_event_loop () at
../../package/gdb/event-loop.c:416
#25 0x10080c24 in cli_command_loop () at
../../package/gdb/event-top.c:200
#26 0x100465b4 in captured_command_loop (data=0xfffffffc) at
../../package/gdb/main.c:94
#27 0x100c9424 in do_catch_errors (uiout=0xfffffffc, data=0x8) at
../../package/gdb/top.c:491
#28 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff968, func_val=0x7ffff970,
func_caught=0x7ffff974,
    errstring=0x1076f0d0 "", mask=6) at ../../package/gdb/top.c:423
#29 0x100c9470 in catch_errors (func=0xfffffffc, func_args=0x8,
errstring=0x1076f0d0 "", mask=272564224) at ../../package/gdb/top.c:503
#30 0x10047100 in captured_main (data=0xfffffffc) at
../../package/gdb/main.c:723
#31 0x100c9424 in do_catch_errors (uiout=0xfffffffc, data=0x8) at
../../package/gdb/top.c:491
#32 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x103ade60, func_args=0x7ffffd38, func_val=0x7ffffd40,
func_caught=0x7ffffd44,
    errstring=0x1076f0d0 "", mask=6) at ../../package/gdb/top.c:423
#33 0x100c9470 in catch_errors (func=0xfffffffc, func_args=0x8,
errstring=0x1076f0d0 "", mask=272564224) at ../../package/gdb/top.c:503
#34 0x10047134 in main (argc=-4, argv=0x8) at
../../package/gdb/main.c:734
#35 0x0fda9e74 in __libc_start_main (argc=1, ubp_av=0x7ffffdc4,
ubp_ev=0x1, auxvec=0x7ffffe0c, rtld_fini=0xfffffffc, stinfo=0x10047104,
    stack_on_entry=0xfdbdfe8) at ../sysdeps/powerpc/elf/libc-start.c:119
(top-gdb) c
Continuing.

Program received signal SIG33, Real-time event 33.
sigchld_handler (signo=17) at ../../package/gdb/lin-lwp.c:1450
1450    in ../../package/gdb/lin-lwp.c
(top-gdb) bt
#0  sigchld_handler (signo=17) at ../../package/gdb/lin-lwp.c:1450
#1  <signal handler called>
#2  0x0fdbf3b4 in __syscall_rt_sigsuspend () from /lib/libc.so.6
#3  0x0fdbdffc in __sigsuspend (set=0x103d81fc) at
../sysdeps/unix/sysv/linux/sigsuspend.c:54
#4  0x1009b02c in lin_lwp_wait (ptid={pid = -1, lwp = 0, tid = 0},
ourstatus=0x7ffff138) at ../../package/gdb/lin-lwp.c:1183
#5  0x100ee000 in thread_db_wait (ptid={pid = 2147479856, lwp =
269410304, tid = -1}, ourstatus=0x7ffff138) at
../../package/gdb/thread-db.c:751
#6  0x1007540c in wait_for_inferior () at
../../package/gdb/infrun.c:1238
#7  0x10075194 in proceed (addr=0, siggnal=TARGET_SIGNAL_0, step=0) at
../../package/gdb/infrun.c:1037
#8  0x100e872c in child_create_inferior (exec_file=0xfffffffc <Address
0xfffffffc out of bounds>, allargs=0x8 <Address 0x8 out of bounds>,
env=0x1)
    at ../../package/gdb/inftarg.c:474
#9  0x100a98c4 in find_default_create_inferior (exec_file=0x10412b78
"/home/root/test-shared", allargs=0x10425720 "", env=0x103f8330)
    at ../../package/gdb/target.c:1216
#10 0x10071884 in run_command (args=0x0, from_tty=272783136) at
../../package/gdb/infcmd.c:463
#11 0x1013d9ac in do_cfunc (c=0xfffffffc, args=0x8 <Address 0x8 out of
bounds>, from_tty=1) at ../../package/gdb/cli/cli-decode.c:50
#12 0x100c9940 in execute_command (p=0x103ee1d3 "", from_tty=1) at
../../package/gdb/top.c:715
#13 0x100817bc in command_handler (command=0x103ee1d0 "") at
../../package/gdb/event-top.c:504
#14 0x10081f68 in command_line_handler (rl=0x103d68e8 "") at
../../package/gdb/event-top.c:802
#15 0x102f3008 in rl_callback_read_char () at
../../package/readline/callback.c:114
#16 0x10080b08 in rl_callback_read_char_wrapper (client_data=0xfffffffc)
at ../../package/gdb/event-top.c:168
#17 0x10081624 in stdin_event_handler (error=-4, client_data=0xfffffffc)
at ../../package/gdb/event-top.c:418
#18 0x100e4158 in handle_file_event (event_file_desc=-4) at
../../package/gdb/event-loop.c:714
#19 0x100e39b4 in process_event () at ../../package/gdb/event-loop.c:335
#20 0x100e3a0c in gdb_do_one_event (data=0xfffffffc) at
../../package/gdb/event-loop.c:372
#21 0x100c9424 in do_catch_errors (uiout=0xfffffffc, data=0x8) at
../../package/gdb/top.c:491
#22 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff6c8, func_val=0x7ffff6d0,
func_caught=0x7ffff6d4,
    errstring=0x1076f0d0 "", mask=6) at ../../package/gdb/top.c:423
#23 0x100c9470 in catch_errors (func=0xfffffffc, func_args=0x8,
errstring=0x1076f0d0 "", mask=272564224) at ../../package/gdb/top.c:503
#24 0x100e3a74 in start_event_loop () at
../../package/gdb/event-loop.c:416
#25 0x10080c24 in cli_command_loop () at
../../package/gdb/event-top.c:200
#26 0x100465b4 in captured_command_loop (data=0xfffffffc) at
../../package/gdb/main.c:94
#27 0x100c9424 in do_catch_errors (uiout=0xfffffffc, data=0x8) at
../../package/gdb/top.c:491
#28 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff968, func_val=0x7ffff970,
func_caught=0x7ffff974,
    errstring=0x1076f0d0 "", mask=6) at ../../package/gdb/top.c:423
#29 0x100c9470 in catch_errors (func=0xfffffffc, func_args=0x8,
errstring=0x1076f0d0 "", mask=272564224) at ../../package/gdb/top.c:503
#30 0x10047100 in captured_main (data=0xfffffffc) at
../../package/gdb/main.c:723
#31 0x100c9424 in do_catch_errors (uiout=0xfffffffc, data=0x8) at
../../package/gdb/top.c:491
#32 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x103ade60, func_args=0x7ffffd38, func_val=0x7ffffd40,
func_caught=0x7ffffd44,
    errstring=0x1076f0d0 "", mask=6) at ../../package/gdb/top.c:423
#33 0x100c9470 in catch_errors (func=0xfffffffc, func_args=0x8,
errstring=0x1076f0d0 "", mask=272564224) at ../../package/gdb/top.c:503
#34 0x10047134 in main (argc=-4, argv=0x8) at
../../package/gdb/main.c:734
#35 0x0fda9e74 in __libc_start_main (argc=1, ubp_av=0x7ffffdc4,
ubp_ev=0x1, auxvec=0x7ffffe0c, rtld_fini=0xfffffffc, stinfo=0x10047104,
    stack_on_entry=0xfdbdfe8) at ../sysdeps/powerpc/elf/libc-start.c:119
(top-gdb) c
Continuing.

Program exited with code 02.
(gdb) run
Starting program: /home/root/test-shared
Reading symbols from /lib/libpthread.so.0...
Program received signal SIGSEGV, Segmentation fault.
0x0fe04b08 in strchr () from /lib/libc.so.6
(top-gdb) bt
Reading in symbols for ../../package/gdb/dbxread.c...done.
Reading in symbols for ../../package/gdb/elfread.c... and
../../package/gdb/solib-svr4.c...done.
Reading in symbols for ../../package/gdb/solib.c...done.
#0  0x0fe04b08 in strchr () from /lib/libc.so.6
#1  0x1010597c in end_psymtab (pst=0x106f5ea0, include_list=0x7fffe910,
num_includes=1, capping_symbol_offset=-16843009,
capping_text=2139062143,
    dependency_list=0x7fffe880, number_dependencies=0,
textlow_not_set=1) at ../../package/gdb/dbxread.c:2253
#2  0x10104a40 in read_dbx_symtab (objfile=0x104e4a88) at
../../package/gdb/dbxread.c:1524
#3  0x101033c4 in dbx_symfile_read (objfile=0x104e4a88, mainline=0) at
../../package/gdb/dbxread.c:601
#4  0x10107404 in elfstab_build_psymtabs (objfile=0x104e4a88,
mainline=976894522, staboffset=180223, stabsize=273566376,
stabstroffset=259116,
    stabstrsize=180222) at ../../package/gdb/dbxread.c:3460
#5  0x1010b4f8 in elf_symfile_read (objfile=0x104e4a88, mainline=0) at
../../package/gdb/elfread.c:613
#6  0x10069168 in syms_from_objfile (objfile=0x104e4a88,
addrs=0x1070a9e0, mainline=0, verbo=0) at
../../package/gdb/symfile.c:759
#7  0x10069410 in symbol_file_add (name=0x104eac28
"/lib/libpthread.so.0", from_tty=0, addrs=0x1070a9e0, mainline=0,
flags=8)
    at ../../package/gdb/symfile.c:888
#8  0x10096b14 in symbol_add_stub (arg=0x302174cd) at
../../package/gdb/solib.c:341
#9  0x100c9424 in do_catch_errors (uiout=0x302174cd, data=0x3a3a3a3a) at
../../package/gdb/top.c:491
#10 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff008, func_val=0x7ffff010,
func_caught=0x7ffff014,
    errstring=0x302174cc <Address 0x302174cc out of bounds>, mask=6) at
../../package/gdb/top.c:423
#11 0x100c9470 in catch_errors (func=0x302174cd, func_args=0x3a3a3a3a,
errstring=0x302174cc <Address 0x302174cc out of bounds>, mask=272433152)
    at ../../package/gdb/top.c:503
#12 0x10096e68 in solib_add (pattern=0x0, from_tty=0, target=0x104eaa20,
readsyms=671360066) at ../../package/gdb/solib.c:568
#13 0x10076e2c in handle_inferior_event (ecs=0x7ffff128) at
../../package/gdb/infrun.c:2439
#14 0x1007542c in wait_for_inferior () at
../../package/gdb/infrun.c:1241
#15 0x10075194 in proceed (addr=0, siggnal=TARGET_SIGNAL_0, step=0) at
../../package/gdb/infrun.c:1037
#16 0x100e872c in child_create_inferior (exec_file=0x302174cd <Address
0x302174cd out of bounds>, allargs=0x3a3a3a3a <Address 0x3a3a3a3a out of
bounds>,
    env=0x1) at ../../package/gdb/inftarg.c:474
#17 0x1009b664 in lin_lwp_create_inferior (exec_file=0x302174cd <Address
0x302174cd out of bounds>, allargs=0x3a3a3a3a <Address 0x3a3a3a3a out of
bounds>,
    env=0x1) at ../../package/gdb/lin-lwp.c:1330
#18 0x100ee8e0 in thread_db_create_inferior (exec_file=0x10412b78
"/home/root/test-shared", allargs=0x10425720 "", env=0x103f8330)
    at ../../package/gdb/thread-db.c:901
#19 0x10071884 in run_command (args=0x0, from_tty=272783136) at
../../package/gdb/infcmd.c:463
#20 0x1013d9ac in do_cfunc (c=0x302174cd, args=0x3a3a3a3a <Address
0x3a3a3a3a out of bounds>, from_tty=1) at
../../package/gdb/cli/cli-decode.c:50
#21 0x100c9940 in execute_command (p=0x103ee1d3 "", from_tty=1) at
../../package/gdb/top.c:715
#22 0x100817bc in command_handler (command=0x103ee1d0 "") at
../../package/gdb/event-top.c:504
#23 0x10081f68 in command_line_handler (rl=0x103d68e8 "") at
../../package/gdb/event-top.c:802
#24 0x102f3008 in rl_callback_read_char () at
../../package/readline/callback.c:114
#25 0x10080b08 in rl_callback_read_char_wrapper (client_data=0x302174cd)
at ../../package/gdb/event-top.c:168
#26 0x10081624 in stdin_event_handler (error=807498957,
client_data=0x302174cd) at ../../package/gdb/event-top.c:418
#27 0x100e4158 in handle_file_event (event_file_desc=807498957) at
../../package/gdb/event-loop.c:714
#28 0x100e39b4 in process_event () at ../../package/gdb/event-loop.c:335
#29 0x100e3a0c in gdb_do_one_event (data=0x302174cd) at
../../package/gdb/event-loop.c:372
#30 0x100c9424 in do_catch_errors (uiout=0x302174cd, data=0x3a3a3a3a) at
../../package/gdb/top.c:491
#31 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff6c8, func_val=0x7ffff6d0,
func_caught=0x7ffff6d4,
    errstring=0x302174cc <Address 0x302174cc out of bounds>, mask=6) at
../../package/gdb/top.c:423
#32 0x100c9470 in catch_errors (func=0x302174cd, func_args=0x3a3a3a3a,
errstring=0x302174cc <Address 0x302174cc out of bounds>, mask=272433152)
    at ../../package/gdb/top.c:503
#33 0x100e3a74 in start_event_loop () at
../../package/gdb/event-loop.c:416
#34 0x10080c24 in cli_command_loop () at
../../package/gdb/event-top.c:200
#35 0x100465b4 in captured_command_loop (data=0x302174cd) at
../../package/gdb/main.c:94
#36 0x100c9424 in do_catch_errors (uiout=0x302174cd, data=0x3a3a3a3a) at
../../package/gdb/top.c:491
#37 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x1040b4a8, func_args=0x7ffff968, func_val=0x7ffff970,
func_caught=0x7ffff974,
    errstring=0x302174cc <Address 0x302174cc out of bounds>, mask=6) at
../../package/gdb/top.c:423
#38 0x100c9470 in catch_errors (func=0x302174cd, func_args=0x3a3a3a3a,
errstring=0x302174cc <Address 0x302174cc out of bounds>, mask=272433152)
    at ../../package/gdb/top.c:503
#39 0x10047100 in captured_main (data=0x302174cd) at
../../package/gdb/main.c:723
#40 0x100c9424 in do_catch_errors (uiout=0x302174cd, data=0x3a3a3a3a) at
../../package/gdb/top.c:491
#41 0x100c9298 in catcher (func=0x100c9408 <do_catch_errors>,
func_uiout=0x103ade60, func_args=0x7ffffd38, func_val=0x7ffffd40,
func_caught=0x7ffffd44,
    errstring=0x302174cc <Address 0x302174cc out of bounds>, mask=6) at
../../package/gdb/top.c:423
#42 0x100c9470 in catch_errors (func=0x302174cd, func_args=0x3a3a3a3a,
errstring=0x302174cc <Address 0x302174cc out of bounds>, mask=272433152)
    at ../../package/gdb/top.c:503
#43 0x10047134 in main (argc=807498957, argv=0x3a3a3a3a) at
../../package/gdb/main.c:734
#44 0x0fda9e74 in __libc_start_main (argc=1, ubp_av=0x7ffffdc4,
ubp_ev=0x1, auxvec=0x7ffffe0c, rtld_fini=0x302174cd, stinfo=0x10047104,
    stack_on_entry=0xffffffff) at
../sysdeps/powerpc/elf/libc-start.c:119
(top-gdb) quit

This problem seems to be isolated to PPC specifically.. when running
your patch on x86, everything behaves just fine.

Running this through strace, I see the following on the open() for
libpthread:

open("/lib/libpthread.so.0", O_RDONLY)  = 9
lstat64(0x7fffcf30, 0x7fffdf40)         = 0
lstat64(0x7fffcf30, 0x7fffdf40)         = 0
readlink("/lib/libpthread.so.0", "libpthread-0.9.so", 4095) = 17
lstat64(0x7fffcf30, 0x7fffdf40)         = 0
fcntl64(9, F_GETFL)                     = 0 (flags O_RDONLY)
fcntl64(9, F_GETFL)                     = 0 (flags O_RDONLY)
fstat64(0x9, 0x7fffefc8)                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x3001f000
_llseek(0x9, 0, 0, 0x7ffff038, 0x1)     = 0
read(9, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0B\214"...,
4096) = 4096
_llseek(0x9, 0, 0x6b000, 0x7fffee78, 0) = 0
read(9, "_minfo:14,ns_t_mx:15,ns_t_txt:16"..., 4096) = 4096
_llseek(0x9, 0, 0x6c000, 0x7fffede8, 0) = 0
_llseek(0x9, 0, 0, 0x7fffee78, 0)       = 0
read(9, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0B\214"...,
4096) = 4096
fstat(9, {st_mode=S_IFREG|0755, st_size=479636, ...}) = 0
_llseek(0x9, 0, 0x6f000, 0x7fffeb98, 0) = 0
read(9, "\0\2C\324\0\0\0\26\0\0\345\30\0\2D\4\0\0\0\26\0\0\345,"...,
4096) = 4096
read(9, "\0\0\10\0\0\0\0\0\0\0\0\0\4\0\377\361\0\0\10\t\0\0\0\0"...,
8192) = 8192
read(9, "\0\0.V\0\0q\250\0\0\0@\22\0\0\v\0\0.i\0\0\304\300\0\0\0"...,
4096) = 4096
read(9, "_restfpr_21\0_restfpr_14_x\0_restg"..., 8192) = 8192
read(9, "tex_init\0lseek64\0open\0__fcntl\0ge"..., 4096) = 404
_llseek(0x9, 0, 0x3000, 0x7fffeb28, 0)  = 0
read(9, "bc_pause\0__libc_pread\0__libc_pre"..., 4096) = 4096
_llseek(0x9, 0, 0x2000, 0x7fffeac8, 0)  = 0
read(9, "\0\0\0\0\0\0\0\354\"\0\0\0\0\0\2\243\0\0\0\0\0\0\0\20\22"...,
4096) = 4096
read(9, "bc_pause\0__libc_pread\0__libc_pre"..., 4096) = 4096
_llseek(0x9, 0, 0x4000, 0x7fffeb28, 0)  = 0
_llseek(0x9, 0, 0, 0x7fffeb98, 0)       = 0
read(9, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0B\214"...,
4096) = 4096
read(9, "\0\0006\264\0\0\0\0\3\0\0\6\0\0\0\0\0\0007\240\0\0\0\0"...,
4096) = 4096
read(9, "\0\0\0\0\0\0\0\354\"\0\0\0\0\0\2\243\0\0\0\0\0\0\0\20\22"...,
4096) = 4096
_llseek(0x9, 0, 0x3000, 0x7fffeb98, 0)  = 0
read(9, "bc_pause\0__libc_pread\0__libc_pre"..., 4096) = 4096
fstat(9, {st_mode=S_IFREG|0755, st_size=479636, ...}) = 0
_llseek(0x9, 0, 0x3f000, 0x7fffec68, 0) = 0
read(9, "\0\0\201\340\302\0\0\0\0\0\0\0\0\0A\303\302\0\0\0\0\0\0"...,
4096) = 4096
read(9, "(14,49)=(14,5)\0__fsfilcnt_t:t(14"..., 176128) = 176128
read(9, "_minfo:14,ns_t_mx:15,ns_t_txt:16"..., 4096) = 4096
_llseek(0x9, 0, 0x15000, 0x7fffec48, 0) = 0
read(9, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
4096) = 4096
read(9, "\200\0\0;\0\0\0\0\0\0\10\257\200\0\0=\0\0\0\0\0\0\10\307"...,
45056) = 45056
read(9, "\0\0\0\0D\0\2\26\0\0\0\200\0\0\0\0D\0\2\25\0\0\0\204\0"...,
4096) = 4096
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

whereas when it does it the first time around, it subsequently calls
brk() numerous times:

brk(0x1049b000)                         = 0x1049b000
brk(0x1049c000)                         = 0x1049c000
...

Comments?

Regards,

-- 
Paul Mundt <paul.mundt@timesys.com>
TimeSys Corporation

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]