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 while upgrading using 0.9.20 #179

Closed
schancel opened this issue Nov 30, 2013 · 6 comments
Closed

Segfault while upgrading using 0.9.20 #179

schancel opened this issue Nov 30, 2013 · 6 comments

Comments

@schancel
Copy link

dub upgrade
Upgrading project in /Users/xxx/xxxx
The following changes will be performed:
Fetch vibe-d ~master, userWide
Fetch msgpack-d ~master, userWide
Fetch libevent ~master, userWide
Fetch mysql-native ~master, userWide
Fetch openssl ~master, userWide
Fetch libev ~master, userWide
Fetching vibe-d ~master...
Placing vibe-d ~master to /Users/xxx/.dub/packages/...
Segmentation fault: 11

Downgrading to 19 fixed it?

@s-ludwig
Copy link
Member

Can you post the package description file? I can't reproduce the crash on my projects.

@schancel
Copy link
Author

Mine, or vibe-d's? Mine is here: https://github.com/schancel/gameserver/blob/master/package.json

@s-ludwig
Copy link
Member

Yours

@s-ludwig
Copy link
Member

Alternatively, getting the stack trace using GDB, may be enough to find the cause.

@schancel
Copy link
Author

Never used GDB before. Is this what you need?

#0  0x00007fff8f57a020 in _platform_memmove$VARIANT$Nehalem ()
#1  0x00000001000fa8b4 in _d_arraycatnT ()
#2  0x0000000100050fb6 in D3dub8internal10vibecompat4data4json4Json8opAssignMFHAyaS3dub8internal10vibecompat4data4json4JsonZHAyaS3dub8internal10vibecompat4data4json4Json17__foreachbody6456MFKAyaKS3dub8internal10vibecompat4data4json4JsonZi ()
#3  0x00000001000f4086 in _aaApply2 ()
#4  0x0000000100050f43 in D3dub8internal10vibecompat4data4json4Json8opAssignMFHAyaS3dub8internal10vibecompat4data4json4JsonZHAyaS3dub8internal10vibecompat4data4json4Json ()
#5  0x0000000100017dff in D3dub14packagemanager7Journal9serializeMxFZS3dub8internal10vibecompat4data4json4Json ()
#6  0x0000000100017ba0 in D3dub14packagemanager7Journal4saveMFS3dub8internal10vibecompat4inet4path4PathZv ()
#7  0x0000000100013af0 in D3dub14packagemanager14PackageManager3getMFS3dub8internal10vibecompat4inet4path4PathS3dub8internal10vibecompat4data4json4JsonS3dub8internal10vibecompat4inet4path4PathZC3dub8package_7Package ()
#8  0x000000010000f388 in D3dub3dub3Dub5fetchMFAyaxS3dub10dependency10DependencyE3dub7project17PlacementLocationbbZC3dub8package_7Package ()
#9  0x000000010000e7f0 in D3dub3dub3Dub6updateMFE3dub7project13UpdateOptionsZv ()
#10 0x000000010000303d in D3dub11commandline17runDubCommandLineFAAyaZi ()
#11 0x00000001000016b0 in _Dmain ()
#12 0x00000001000f604d in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7runMainMFZv ()
#13 0x00000001000f5b99 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7tryExecMFMDFZvZv ()
#14 0x00000001000f6099 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi6runAllMFZv ()
#15 0x00000001000f5b99 in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZi7tryExecMFMDFZvZv ()
#16 0x00000001000f5b4d in _d_run_main ()
#17 0x00000001000f597c in main ()

@s-ludwig
Copy link
Member

Okay, I finally managed to reproduce it. It's caused by one of the many associative array bugs in DMD. But it's possible to work around it.

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