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

Segmentation Fault when running on Manjaro with glibc 2.25-7 #15

Open
recyclojunk opened this issue Sep 26, 2017 · 1 comment
Open

Segmentation Fault when running on Manjaro with glibc 2.25-7 #15

recyclojunk opened this issue Sep 26, 2017 · 1 comment

Comments

@recyclojunk
Copy link

Firstly to get it to compile I had to remove the -Werror flag and remove the space in
(pthread_t)NULL; on line 216.

When I compile:

Usage: ./compile.sh [i386]
Add the i386 option to compile for 32-bit (i386) architectures on a 64-bit machine
Using sdl-config.
Converting built-in images to XPM format with imagemagick's 'mogrify' tool...
Converting other built-in files to .h file format with the xxd tool...
GNU/Linux detected.
Compiling...media.c: In function ‘get_image_from_file’:
media.c:292:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
   g_print("Failed to pause the file\n");
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
media.c:294:2: note: here
  case GST_STATE_CHANGE_NO_PREROLL:
  ^~~~
done.
Now run the 3D File System Browser with ./3dfsb

When I run it however, I get a segmentation fault:

Reading /home/josh/.3dfsb ...                                                                                                                                                                                                                                                                                                
 * Read "20" for BallDetail                                                                                                                                                                                                                                                                                                  
 * Read "/" for StartDir                                                                                                                                                                                                                                                                                                     
 * Read "0" for MaxTexSize                                                                                                                                                                                                                                                                                                   
 * Read "1024" for WindowWidth                                                                                                                                                                                                                                                                                               
 * Read "768" for WindowHeight                                                                                                                                                                                                                                                                                               
 * Read "1024" for FullscreenWidth                                                                                                                                                                                                                                                                                           
 * Read "768" for FullscreenHeight                                                                                                                                                                                                                                                                                           
 * Read "0" for FullscreenDepth                                                                                                                                                                                                                                                                                              
 * Read "0.200000" for GridRed                                                                                                                                                                                                                                                                                               
 * Read "0.200000" for GridGreen                                                                                                                                                                                                                                                                                             
 * Read "0.600000" for GridBlue                                                                                                                                                                                                                                                                                              
 * Read "1" for ImageBricks                                                                                                                                                                                                                                                                                                  
 * Read "0" for ShowDotFiles                                                                                                                                                                                                                                                                                                 
 * Read "1" for AlphaSort                                                                                                                                                                                                                                                                                                    
 * Read "0.000000" for BGRed                                                                                                                                                                                                                                                                                                 
 * Read "0.000000" for BGGreen                                                                                                                                                                                                                                                                                               
 * Read "0.000000" for BGBlue                                                                                                                                                                                                                                                                                                
 * Read "1" for FullScreen                                                                                                                                                                                                                                                                                                   
 * Read "1" for ShowCrossHair                                                                                                                                                                                                                                                                                                
 * Read "0" for ShowGroundCross                                                                                                                                                                                                                                                                                              
 * Read "0" for ClassicNavigation                                                                                                                                                                                                                                                                                            
 * Read "1" for FlyingMode                                                                                                                                                                                                                                                                                                   
 * Read "0" for MaxFPS                                                                                                                                                                                                                                                                                                       
 * Read "2.000000" for MoveVelocity                                                                                                                                                                                                                                                                                          
 * Read "1.300000" for LookVelocity                                                                                                                                                                                                                                                                                          
 * Read "1.000000" for NameRed                                                                                                                                                                                                                                                                                               
 * Read "1.000000" for NameGreen                                                                                                                                                                                                                                                                                             
 * Read "1.000000" for NameBlue                                                                                                                                                                                                                                                                                              
 * Read "1" for LiftSteps                                                                                                                                                                                                                                                                                                    
 * Read "cd "%%s"; x-terminal-emulator &" for CustomExecuteString                                                                                                                                                                                                                                                            
 * Read "h" for KeyHelp                                                                                                                                                                                                                                                                                                      
 * Read "0" for KeyJumpHome                                                                                                                                                                                                                                                                                                  
 * Read "f" for KeyFullScreen                                                                                                                                                                                                                                                                                                
 * Read "." for KeyDotFilter                                                                                                                                                                                                                                                                                                 
 * Read "r" for KeyMouseRelease                                                                                                                                                                                                                                                                                              
 * Read "l" for KeyReload                                                                                                                                                                                                                                                                                                    
 * Read "u" for KeyCDup                                                                                                                                                                                                                                                                                                      
 * Read "b" for KeyImageBricks                                                                                                                                                                                                                                                                                               
 * Read "i" for KeyGLInfo                                                                                                                                                                                                                                                                                                    
 * Read "y" for KeyDisplay                                                                                                                                                                                                                                                                                                   
 * Read "c" for KeyCrossHair                                                                                                                                                                                                                                                                                                 
 * Read "p" for KeyFPS                                                                                                                                                                                                                                                                                                       
 * Read "g" for KeyGrndCross                                                                                                                                                                                                                                                                                                 
 * Read "m" for KeyShadeMode                                                                                                                                                                                                                                                                                                 
 * Read "t" for KeyFileNames                                                                                                                                                                                                                                                                                                 
 * Read "n" for KeyAlphaSort                                                                                                                                                                                                                                                                                                 
 * Read "o" for KeyClassicNav                                                                                                                                                                                                                                                                                                
 * Read "w" for KeyForward
 * Read "s" for KeyBackward
 * Read "1" for KeyUp
 * Read "3" for KeyDown
 * Read "a" for KeyLeft
 * Read "d" for KeyRight
 * Read "x" for KeySaveConfig
 * some values may be truncated later if out of range
------------------DIRECTORY /

(3dfsb:25764): GLib-CRITICAL **: g_async_queue_unref: assertion 'queue' failed
sh: line 0: kill: (996) - Operation not permitted
Sorting...
Loading: .. No match of /..
Loading: bin LINK: /bin -> usr/bin  mode: 0x21 No match of /usr/bin
Loading: boot No match of /boot
Loading: boot_backup2 No match of /boot_backup2
Loading: boot_backup3 No match of /boot_backup3
Loading: dev No match of /dev
Loading: etc No match of /etc
Loading: home No match of /home
Loading: kde-image-pkgs.txt Loading: kdeinit5__0 Loading: lib LINK: /lib -> usr/lib  mode: 0x21 No match of /usr/lib
Loading: lib64 LINK: /lib64 -> usr/lib  mode: 0x21 No match of /usr/lib
Loading: lost+found No match of /lost+found
Loading: media No match of /media
Loading: mnt No match of /mnt
Loading: opt No match of /opt
Loading: proc No match of /proc
Loading: root No match of /root
Loading: root-image-pkgs.txt Loading: run No match of /run
Loading: sbin LINK: /sbin -> usr/bin  mode: 0x21 No match of /usr/bin
Loading: srv No match of /srv
Loading: sys No match of /sys
Loading: tmp No match of /tmp
Loading: usr No match of /usr
Loading: var No match of /var
GRIDCELLSIZE: 2.946484|2.578106
Segmentation fault (core dumped)

Any ideas of what I might be able to try to get it to work?

@tomvanbraeckel
Copy link
Contributor

tomvanbraeckel commented Sep 26, 2017

Strange, I did not have compilation issues due to the space or the -Werror. I'm using glib version 2.48.2-0ubuntu1...

I'm not sure what causes the segfault. It seems to be listing the files in / so you could try another folder with just one or 2 files in it, to check whether it's related to one of the files or folders it encounters.

More debugging, like adding some printf's in the code after that GRIDCELLSIZE output statement or running it with gdb (more advanced) should show you where it's crashing. It's probably a buffer overflow but hard to say where exactly at this point.

In any case, thank you for testing and creating this issue!

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