why would I get a segmentation fault on one system but not the other?

jd1008 jd1008 at gmail.com
Mon Feb 23 00:31:53 UTC 2015


On 02/22/2015 04:48 PM, David Benfell wrote:
> I hope I did this right. It's the first time I've tried working with
> the debugger. If I did this right, then ick:
>
> vegan# gdb /usr/local/sbin/php-fpm
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 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 "amd64-marcel-freebsd"...(no debugging
> symbols found)...
> (gdb) break main
> Breakpoint 1 at 0x648214
> (gdb) run
> Starting program: /usr/local/sbin/php-fpm
> (no debugging symbols found)...(no debugging symbols found)...(no
> debugging symbols found)...(no debugging symbols found)...(no
> debugging symbols found)...(no debugging symbols found)...[New LWP
> 100184]
> (no debugging symbols found)...(no debugging symbols found)...(no
> debugging symbols found)...[New Thread 802806400 (LWP 100184/php-fpm)]
> [Switching to Thread 802806400 (LWP 100184/php-fpm)]
>
> Breakpoint 1, 0x0000000000648214 in main ()
> (gdb) attach 1458
> A program is being debugged already.  Kill it? (y or n) n
> Not killed.
> (gdb) n
> Single stepping until exit from function main,
> which has no line number information.
> (no debugging symbols found)...(no debugging symbols found)...(no
> ....Snipped.....
> debugging symbols found)...(no debugging symbols found)...(no
> debugging symbols found)...(no debugging symbols found)...(no
> debugging symbols found)...(no debugging symbols found)...(no
> debugging symbols found)...
> Program received signal SIGSEGV, Segmentation fault.
> 0x000000080a9903e8 in hash_lookup () from
> /usr/local/lib/libc-client4.so.9
Are your binaries in /usr//local?




More information about the freebsd-questions mailing list