Skip to content
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

segfault in bladeRF-cli when compiled from latest master (2fbae2c38b377cfbee98c281789cd43d1f1b55e4) #966

Closed
XenoKovah opened this issue May 1, 2024 · 1 comment

Comments

@XenoKovah
Copy link

Host Ubuntu 22.04.4 LTS

Reproduction steps:

sudo apt-get remove libbladerf-dev
git checkout https://github.com/Nuand/bladeRF.git
cd bladeRF/host
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig

Result: segfault when trying to use bladeRF-cli -l

sudo bladeRF-cli -l ~/hostedxA9-latest.rbf
Loading FPGA...
Segmentation fault

GDB shows the fault occurring here in bladerf2_load_fpga():

   0x00007ffff7f4abc4 <+148>:	js     0x7ffff7f4ac60 <bladerf2_load_fpga+304>
   0x00007ffff7f4abca <+154>:	xor    %r12d,%r12d
   0x00007ffff7f4abcd <+157>:	pop    %rbx
   0x00007ffff7f4abce <+158>:	mov    %r12d,%eax
   0x00007ffff7f4abd1 <+161>:	pop    %rbp
   0x00007ffff7f4abd2 <+162>:	pop    %r12
   0x00007ffff7f4abd4 <+164>:	pop    %r13
   0x00007ffff7f4abd6 <+166>:	pop    %r14
   0x00007ffff7f4abd8 <+168>:	ret    
   0x00007ffff7f4abd9 <+169>:	nopl   0x0(%rax)
   0x00007ffff7f4abe0 <+176>:	mov    0x310(%rbx),%rax
   0x00007ffff7f4abe7 <+183>:	mov    %rbp,%rdi
=> 0x00007ffff7f4abea <+186>:	call   *0x28(%rax)
   0x00007ffff7f4abed <+189>:	mov    %eax,%r12d
   0x00007ffff7f4abf0 <+192>:	test   %eax,%eax
   0x00007ffff7f4abf2 <+194>:	jns    0x7ffff7f4ab97 <bladerf2_load_fpga+103>

I can confirm I can compile and run sudo bladeRF-cli -l ~/hostedxA9-latest.rbf without a segfault from the 2023.02 tag. The current HEAD is 2fbae2c38b377cfbee98c281789cd43d1f1b55e4 at the time of writing.

@XenoKovah XenoKovah changed the title segfault in bladeRF-cli when compiled from latest master () segfault in bladeRF-cli when compiled from latest master (2fbae2c38b377cfbee98c281789cd43d1f1b55e4) May 1, 2024
@rghilduta
Copy link
Collaborator

Temporarily fixed by b40cd82 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants