-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault in subroutine get #13
Comments
I think this segmentation fault is because state inbound_buffer bytes is 0x0. memcpy is done to that null address. #1 0x00007ffff6db2c0d in amqp_handle_input (state=0x7bc8a0, |
I upgraded Net::RabbitMQ with the newest librabbitmq (rabbitmq-c-fb6fca832fd2) and the segmentation fault no longer appeared. I was thinking I could upload a fixed version of Net::RabbitMQ to CPAN unless you object. |
I made a pull request #14 that fixes this segmentation fault. |
Hi!
I reported a segmentation fault in CPAN:
https://rt.cpan.org/Public/Bug/Display.html?id=76205
I got a segmentation fault in subroutine get. I think it is because memory allocation failed.
I have Net::RabbitMQ version 0.2.2. I got a similar bug in Net::RabbitMQ version 0.2.0, too: https://rt.cpan.org/Public/Bug/Display.html?id=76156
This is perl, v5.10.0 built for x86_64-linux-thread-multi
Linux pmc-inst-test 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff724fa41 in memcpy () from /lib64/libc.so.6
(gdb) bt
#0 0x00007ffff724fa41 in memcpy () from /lib64/libc.so.6
#1 0x00007ffff6db2c0d in amqp_handle_input (state=0x7bc8a0,
#2 0x00007ffff6dbbeec in wait_frame_inner (state=0x7bc8a0,
#3 0x00007ffff6dbc489 in amqp_simple_rpc (state=0x7bc8a0, channel=3,
#4 0x00007ffff6db156c in amqp_basic_get (state=0x7bc8a0, channel=7,
#5 0x00007ffff6da7432 in XS_Net__RabbitMQ_get (my_perl=,
#6 0x000000000047e115 in Perl_pp_entersub ()
#7 0x0000000000455ad3 in Perl_runops_debug ()
#8 0x000000000047a005 in perl_run ()
#9 0x000000000042172c in main ()
(gdb)
regards, Matti Linnanvuori
The text was updated successfully, but these errors were encountered: