RedHat5 ,  glibc version is 2.5
is that matter?

在 2012年8月15日星期三UTC+8上午10时22分32秒,TZ写道:
>
> *[root@etone46 ~]# gdb --args node `which npm` list*
> GNU gdb Red Hat Linux (6.5-25.el5rh)
> Copyright (C) 2006 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 "x86_64-redhat-linux-gnu"...Using host 
> libthread_db library "/lib64/libthread_db.so.1".
>
> *(gdb) run*
> Starting program: /usr/local/bin/node /usr/local/bin/npm list
> [Thread debugging using libthread_db enabled]
> [New Thread 46912496273456 (LWP 9663)]
> [New Thread 1073809728 (LWP 9666)]
> [New Thread 1074075968 (LWP 9667)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1074075968 (LWP 9667)]
> 0x00000000005d4d3d in uv_async_send (handle=0xe02368)
>     at ../deps/uv/src/unix/async.c:56
> 56      ../deps/uv/src/unix/async.c: No such file or directory.
>         in ../deps/uv/src/unix/async.c
> *(gdb) backtrace full*
> #0  0x00000000005d4d3d in uv_async_send (handle=0xe02368)
>     at ../deps/uv/src/unix/async.c:56
> No locals.
> #1  0x00000000005d6baf in etp_proc (thr_arg=<value optimized out>)
>     at ../deps/uv/src/unix/eio/eio.c:2094
>         req = (eio_req *) 0x17948510
>         ts = {tv_sec = 0, tv_nsec = 46874976}
>         self = (etp_worker *) 0x17980030
> #2  0x00000037080062e7 in start_thread () from /lib64/libpthread.so.0
> No symbol table info available.
> #3  0x00000037074ce3bd in clone () from /lib64/libc.so.6
> No symbol table info available.
>
> 在 2012年8月15日星期三UTC+8上午9时44分16秒,Nathan Rajlich写道:
>>
>> Try it like: 
>>
>>   gdb --args node `which npm` list 
>>
>> On Tue, Aug 14, 2012 at 6:37 PM, TZ <[email protected]> wrote: 
>> > [root@etone46 opt]# pwd 
>> > /opt 
>> > [root@etone46 opt]# gdb --args node npm list 
>> > GNU gdb Red Hat Linux (6.5-25.el5rh) 
>> > Copyright (C) 2006 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 "x86_64-redhat-linux-gnu"...Using host 
>> > libthread_db library "/lib64/libthread_db.so.1". 
>> > 
>> > (gdb) run 
>> > Starting program: /usr/local/bin/node npm list 
>> > [Thread debugging using libthread_db enabled] 
>> > [New Thread 46912496273456 (LWP 8690)] 
>> > [New Thread 1073809728 (LWP 8693)] 
>> > 
>> > module.js:340 
>> >     throw err; 
>> >           ^ 
>> > Error: Cannot find module '/opt/npm' 
>> >     at Function.Module._resolveFilename (module.js:338:15) 
>> >     at Function.Module._load (module.js:280:25) 
>> >     at Module.runMain (module.js:492:10) 
>> >     at process.startup.processNextTick.process._tickCallback 
>> (node.js:244:9) 
>> > 
>> > Program exited with code 01. 
>> > (gdb) backtrace full 
>> > No stack. 
>> > (gdb) 
>> > [2]+  Stopped                 gdb --args node npm list 
>> > [root@etone46 opt]# which npm 
>> > /usr/local/bin/npm 
>> > [root@etone46 opt]# ll /usr/local/bin/npm 
>> > lrwxrwxrwx 1 root root 38 Aug 14 09:14 /usr/local/bin/npm -> 
>> > ../lib/node_modules/npm/bin/npm-cli.js 
>> > 
>> > 
>> > 在 2012年8月14日星期二UTC+8下午5时58分02秒,Ben Noordhuis写道: 
>> >> 
>> >> On Tue, Aug 14, 2012 at 6:15 AM, Mihamina Rakotomandimby 
>> >> <[email protected]> wrote: 
>> >> > On 08/14/2012 04:31 AM, TZ wrote: 
>> >> >> 
>> >> >> [root@etone231 opt]# gdb --args npm 
>> >> > 
>> >> > 
>> >> > Re-read carefully. 
>> >> > 
>> >> > He told you: 
>> >> > gdb --args npm list 
>> >> 
>> >> And if that doesn't work, try `gdb --args node npm list` 
>> > 
>> > -- 
>> > Job Board: http://jobs.nodejs.org/ 
>> > Posting guidelines: 
>> > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines 
>> > You received this message because you are subscribed to the Google 
>> > Groups "nodejs" group. 
>> > To post to this group, send email to [email protected] 
>> > To unsubscribe from this group, send email to 
>> > [email protected] 
>> > For more options, visit this group at 
>> > http://groups.google.com/group/nodejs?hl=en?hl=en 
>>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to